Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/changesets-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
run: |
yarn install --immutable

- name: Build packages
run: yarn buildci

- name: Generate token for version PR
uses: actions/create-github-app-token@v2
id: app-token
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ catalog:
cross-env: ^10.1.0
expect-webdriverio: ^5.6.1
knip: ^5.81.0
lage: ^2.14.19
oxc-resolver: ^11.17.0
rimraf: ^6.1.2
webdriverio: ^9.23.0
Expand Down
4 changes: 2 additions & 2 deletions lage.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ const config = {
dependsOn: ['^publish'],
type: 'worker',
options: {
worker: 'scripts/src/worker/publish.js',
worker: 'scripts/src/worker/publish.mts',
},
cache: false,
},
'publish-dry-run': {
dependsOn: ['^publish-dry-run'],
type: 'worker',
options: {
worker: 'scripts/src/worker/publish.js',
worker: 'scripts/src/worker/publish.mts',
dryRun: true,
},
cache: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"cross-env": "catalog:",
"eslint": "^9.39.2",
"eslint-plugin-import": "^2.32.0",
"lage": "^2.14.19",
"lage": "catalog:",
"markdown-link-check": "^3.8.7",
"oxfmt": "^0.35.0",
"typescript": "^5.8.0",
Expand Down
1 change: 0 additions & 1 deletion packages/experimental/Stack/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "@fluentui-react-native/experimental-stack",
"version": "0.1.0",
"private": true,
"description": "A cross-platform opinionated Fluent Text component",
"license": "MIT",
"author": "",
Expand Down
4 changes: 1 addition & 3 deletions packages/utils/test-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,14 @@
"lint-package": "fluentui-scripts lint-package",
"update-snapshots": "fluentui-scripts jest -u"
},
"dependencies": {
"@fluentui-react-native/theme-types": "workspace:*"
},
"devDependencies": {
"@babel/core": "catalog:",
"@fluentui-react-native/babel-config": "workspace:*",
"@fluentui-react-native/eslint-config-rules": "workspace:*",
"@fluentui-react-native/jest-config": "workspace:*",
"@fluentui-react-native/kit-config": "workspace:*",
"@fluentui-react-native/scripts": "workspace:*",
"@fluentui-react-native/theme-types": "workspace:*",
"@react-native/babel-preset": "^0.81.0",
"@types/jest": "^29.0.0",
"@types/react": "~19.1.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"find-up": "^5.0.0",
"jest": "^29.2.1",
"knip": "catalog:",
"lage": "catalog:",
"micromatch": "^4.0.8",
"react": "18.2.0",
"react-native": "^0.74.0",
Expand Down
11 changes: 4 additions & 7 deletions scripts/src/worker/publish.js → scripts/src/worker/publish.mts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
// @ts-check
import type { WorkerRunnerFunction } from 'lage';

import { $, fs } from 'zx';
import { join } from 'node:path';

/**
* @param {{ target: { cwd: string; label: string }, options: { dryRun?: boolean } }} data
*/
export async function run({ target, options }) {
export const run: WorkerRunnerFunction = async ({ target }) => {
const pkg = await fs.readJson(join(target.cwd, 'package.json'));

if (pkg.private) {
return;
}

const dryRun = options?.dryRun ?? false;
const dryRun = target.options?.dryRun ?? false;
const args = ['--tolerate-republish', ...(dryRun ? ['--dry-run'] : [])];

await $({ cwd: target.cwd, verbose: true })`yarn npm publish ${args}`;
}
};
Loading