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
31 changes: 1 addition & 30 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,8 @@ jobs:
- name: Install dependencies
run: yarn

- name: Check formatting
run: yarn format:check

- name: Run lint-lockfile
run: yarn lint-lockfile

- name: Build CI
run: yarn buildci
run: yarn lage buildci

android:
name: Android PR
Expand Down Expand Up @@ -305,28 +299,6 @@ jobs:
- name: Validate changesets
run: yarn changeset:validate

publish-dry-run:
name: NPM Publish Dry Run
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up toolchain
uses: microsoft/react-native-test-app/.github/actions/setup-toolchain@5.0.14
with:
node-version: 22

- name: Install dependencies
run: yarn

- name: Build packages
run: yarn build

- name: Simulate publish
run: yarn lage publish-dry-run --verbose --grouped

test-links:
name: Test repo links
runs-on: ubuntu-latest
Expand Down Expand Up @@ -358,7 +330,6 @@ jobs:
- windows
- win32
- check-changesets
- publish-dry-run
- test-links
steps:
- name: All required jobs passed
Expand Down
942 changes: 0 additions & 942 deletions .yarn/releases/yarn-4.12.0.cjs

This file was deleted.

940 changes: 940 additions & 0 deletions .yarn/releases/yarn-4.13.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,4 @@ plugins:
path: .yarn/plugins/@rnx-kit/yarn-plugin-dynamic-extensions.cjs
spec: "https://raw.githubusercontent.com/microsoft/rnx-kit/main/incubator/yarn-plugin-dynamic-extensions/index.js"

yarnPath: .yarn/releases/yarn-4.12.0.cjs
yarnPath: .yarn/releases/yarn-4.13.0.cjs
6 changes: 6 additions & 0 deletions apps/tester-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@
},
"@types/react": {
"optional": true
},
"react-native-macos": {
"optional": true
},
"react-native-windows": {
"optional": true
}
},
"jest": {
Expand Down
5 changes: 3 additions & 2 deletions apps/win32-81/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@fluentui-react-native/tester-win32-81",
"version": "0.38.70",
"version": "0.1.0",
"private": true,
"description": "Fluent UI React Native Win32 Tester App for RN 0.81",
"repository": {
"type": "git",
Expand All @@ -26,9 +27,9 @@
"bundle-dev": "rnx-cli bundle",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"format": "fluentui-scripts format",
"lint": "fluentui-scripts eslint",
"lint-package": "fluentui-scripts lint-package",
"format": "fluentui-scripts format",
"run-win32": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8",
"run-win32-dev": "rex-win32 --bundle index --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useFastRefresh",
"run-win32-devmain": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useDevMain ",
Expand Down
5 changes: 3 additions & 2 deletions apps/win32/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@fluentui-react-native/tester-win32",
"version": "0.38.70",
"version": "0.1.0",
"private": true,
"description": "Fluent UI React Native Win32 Tester App",
"repository": {
"type": "git",
Expand All @@ -26,9 +27,9 @@
"bundle-dev": "rnx-cli bundle",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"format": "fluentui-scripts format",
"lint": "fluentui-scripts eslint",
"lint-package": "fluentui-scripts lint-package",
"format": "fluentui-scripts format",
"run-win32": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8",
"run-win32-dev": "rex-win32 --bundle index --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useFastRefresh",
"run-win32-devmain": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useDevMain ",
Expand Down
30 changes: 22 additions & 8 deletions lage.config.js → lage.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const config = {
npmClient: 'yarn',
pipeline: {
// ── Per-package tasks ──────────────────────────────────────────────────
'build-cjs': {
// cjs builds need to wait for the esm builds to produce the type definitions
dependsOn: ['^build-core', '^build-cjs'],
Expand All @@ -20,7 +21,6 @@ const config = {
inputs: ['*', 'src/**/*', 'assets/**/*'],
outputs: ['lib/**/*', 'lib-commonjs/**/*'],
},
buildci: ['build-all', 'test', 'lint', 'lint-package'],
bundle: {
inputs: ['**/*', '!node_modules/**/*', '!dist/**/*', '!lib/**/*', '!lib-commonjs/**/*'],
outputs: ['dist/**/*'],
Expand All @@ -36,16 +36,30 @@ const config = {
inputs: ['**/*', '!node_modules/**/*', '!dist/**/*', '!lib/**/*', '!lib-commonjs/**/*'],
outputs: [],
},
format: {
inputs: ['*', 'src/**/*'],
outputs: [],
},
'pr-check': ['buildci', 'lint-package', 'lint-lockfile', 'format:check'],
test: {
dependsOn: ['build-all'],
inputs: [],
outputs: [],
},

// ── Root-only tasks (scripts exist only in the root package.json) ──────
// These run once for the whole repo. Sub-packages do not have these scripts,
// so lage naturally scopes them to the root workspace.
'check-publishing': {
cache: false,
},
'format:check': {
cache: false,
},
'lint-lockfile': {
cache: false,
},

// ── Pipeline aliases ───────────────────────────────────────────────────
'repo-checks': ['lint-lockfile', 'format:check', 'check-publishing'],
buildci: ['build-all', 'test', 'lint', 'lint-package', 'repo-checks'],

// ── Worker tasks ───────────────────────────────────────────────────────
publish: {
dependsOn: ['^publish'],
type: 'worker',
Expand All @@ -54,7 +68,7 @@ const config = {
},
cache: false,
},
'publish-dry-run': {
'publish:dry-run': {
dependsOn: ['^publish-dry-run'],
type: 'worker',
options: {
Expand All @@ -66,4 +80,4 @@ const config = {
},
};

module.exports = config;
export default config;
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,25 @@
"url": "https://github.com/microsoft/fluentui-react-native.git"
},
"workspaces": [
".",
"apps/*",
"packages/**",
"scripts"
],
"scripts": {
"build": "lage build-all",
"buildci": "lage buildci",
"clean-all": "node ./scripts/src/preinstall/clean-all.js",
"docs": "yarn workspace fluent-rn-website start",
"bundle": "lage bundle",
"clean": "lage clean",
"change": "changeset",
"changeset:version": "node .github/scripts/changeset-version-with-postbump.mts",
"changeset:validate": "node .github/scripts/validate-changesets.mts",
"check-publishing": "node ./scripts/src/cli.mjs check-publishing",
"lint": "lage lint",
"lint-fix": "cross-env FURN_FIX_MODE=true lage lint",
"lint-package": "lage lint-package",
"lint-package-fix": "cross-env FURN_FIX_MODE=true lage lint-package",
"pr-check": "lage pr-check",
"preinstall": "node ./scripts/src/preinstall/use-yarn-please.js",
"format": "oxfmt",
"format:check": "oxfmt --check",
"test": "lage test",
"lint-lockfile": "lint-lockfile",
"test-links": "markdown-link-check"
},
"devDependencies": {
Expand Down Expand Up @@ -62,7 +57,7 @@
"engines": {
"node": ">=22.12"
},
"packageManager": "yarn@4.12.0",
"packageManager": "yarn@4.13.0",
"rnx-kit": {
"kitType": "library"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/deprecated/theming-ramp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
},
"peerDependencies": {
"@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
"react": "18.2.0 || 19.0.0 || 19.1.0"
"react": "18.2.0 || 19.0.0 || 19.1.0",
"react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
6 changes: 6 additions & 0 deletions packages/utils/test-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@
"react-test-renderer": "19.1.0"
},
"peerDependencies": {
"@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
"react": "18.2.0 || 19.0.0 || 19.1.0",
"react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"rnx-kit": {
"kitType": "library",
"extends": "@fluentui-react-native/kit-config",
Expand Down
3 changes: 3 additions & 0 deletions scripts/src/utils/checkDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export function checkDependencies() {
}

for (const pkgName in infos) {
// App packages don't have npm consumers, so peerDependency propagation doesn't apply
if (infos[pkgName].pkgJson['rnx-kit']?.kitType === 'app') continue;

const deps = { ...infos[pkgName].dependencies, ...infos[pkgName].peerDependencies };

/** @type {{ name: string, version: string }[]} */
Expand Down
9 changes: 9 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5257,8 +5257,12 @@ __metadata:
react-native: "npm:^0.81.0"
react-test-renderer: "npm:19.1.0"
peerDependencies:
"@types/react": ~18.2.0 || ~19.0.0 || ~19.1.0
react: 18.2.0 || 19.0.0 || 19.1.0
react-native: ^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0
peerDependenciesMeta:
"@types/react":
optional: true
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -5411,6 +5415,10 @@ __metadata:
optional: true
"@types/react":
optional: true
react-native-macos:
optional: true
react-native-windows:
optional: true
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -10620,6 +10628,7 @@ __metadata:
peerDependencies:
"@types/react": ~18.2.0 || ~19.0.0 || ~19.1.0
react: 18.2.0 || 19.0.0 || 19.1.0
react-native: ^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0
peerDependenciesMeta:
"@types/react":
optional: true
Expand Down
Loading