diff --git a/.github/workflows/changesets-version.yml b/.github/workflows/changesets-version.yml index f9f99df2d7..5f890a4d03 100644 --- a/.github/workflows/changesets-version.yml +++ b/.github/workflows/changesets-version.yml @@ -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 diff --git a/.yarnrc.yml b/.yarnrc.yml index bb2ebf38e9..b0a33bb1df 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -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 diff --git a/lage.config.js b/lage.config.js index 52487c0f33..3fd5d25fa6 100644 --- a/lage.config.js +++ b/lage.config.js @@ -50,7 +50,7 @@ const config = { dependsOn: ['^publish'], type: 'worker', options: { - worker: 'scripts/src/worker/publish.js', + worker: 'scripts/src/worker/publish.mts', }, cache: false, }, @@ -58,7 +58,7 @@ const config = { dependsOn: ['^publish-dry-run'], type: 'worker', options: { - worker: 'scripts/src/worker/publish.js', + worker: 'scripts/src/worker/publish.mts', dryRun: true, }, cache: false, diff --git a/package.json b/package.json index 0d1417143b..ddf338c898 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/experimental/Stack/package.json b/packages/experimental/Stack/package.json index 7d8c467ab0..1828a49242 100644 --- a/packages/experimental/Stack/package.json +++ b/packages/experimental/Stack/package.json @@ -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": "", diff --git a/packages/utils/test-tools/package.json b/packages/utils/test-tools/package.json index 3058d35d8b..cfba87109a 100644 --- a/packages/utils/test-tools/package.json +++ b/packages/utils/test-tools/package.json @@ -32,9 +32,6 @@ "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:*", @@ -42,6 +39,7 @@ "@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", diff --git a/scripts/package.json b/scripts/package.json index 679fbea5c4..38ca717919 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -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", diff --git a/scripts/src/worker/publish.js b/scripts/src/worker/publish.mts similarity index 60% rename from scripts/src/worker/publish.js rename to scripts/src/worker/publish.mts index 2cdc728df2..17164ac022 100644 --- a/scripts/src/worker/publish.js +++ b/scripts/src/worker/publish.mts @@ -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}`; -} +}; diff --git a/yarn.lock b/yarn.lock index 594bb046f0..4808f6e208 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4968,7 +4968,7 @@ __metadata: cross-env: "catalog:" eslint: "npm:^9.39.2" eslint-plugin-import: "npm:^2.32.0" - lage: "npm:^2.14.19" + lage: "catalog:" markdown-link-check: "npm:^3.8.7" oxfmt: "npm:^0.35.0" typescript: "npm:^5.8.0" @@ -5000,6 +5000,7 @@ __metadata: find-up: "npm:^5.0.0" jest: "npm:^29.2.1" knip: "catalog:" + lage: "catalog:" micromatch: "npm:^4.0.8" react: "npm:18.2.0" react-native: "npm:^0.74.0"