From a971acce2d9c479d84f82d5e535d0d22bdbd702f Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Sun, 1 Mar 2026 14:29:21 -0800 Subject: [PATCH 1/6] ci: fix types of publish worker script --- lage.config.js | 4 ++-- scripts/src/worker/{publish.js => publish.mts} | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) rename scripts/src/worker/{publish.js => publish.mts} (60%) 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/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}`; -} +}; From 0d8ca23b186d232356875fdbbc68d4fcfe389716 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Sun, 1 Mar 2026 14:31:40 -0800 Subject: [PATCH 2/6] don't build packages before version bump --- .github/workflows/changesets-version.yml | 3 --- 1 file changed, 3 deletions(-) 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 From e45b45fec7c0d8a7a1f751cdd810ff7a6968d418 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Sun, 1 Mar 2026 14:55:03 -0800 Subject: [PATCH 3/6] no public dependencies for test-tools --- packages/utils/test-tools/package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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", From 3650cb265c9d456a42a7c2364ae90f2953a81449 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Sun, 1 Mar 2026 20:50:39 -0800 Subject: [PATCH 4/6] make package public --- packages/experimental/Stack/package.json | 1 - 1 file changed, 1 deletion(-) 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": "", From e5495cbafcc93f841941e80b70ce36d7eaef3ef5 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Sun, 1 Mar 2026 20:52:36 -0800 Subject: [PATCH 5/6] Add Lage to catalog --- .yarnrc.yml | 1 + package.json | 2 +- scripts/package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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/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/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", From d58556e8079213aba53ec1ccf0af66015029077f Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Mon, 2 Mar 2026 08:22:46 -0800 Subject: [PATCH 6/6] update lock --- yarn.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"