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
10 changes: 2 additions & 8 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 @@ -325,7 +319,7 @@ jobs:
run: yarn build

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

test-links:
name: Test repo links
Expand Down
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
25 changes: 25 additions & 0 deletions apps/win32-81/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,31 @@
"react-test-renderer": "19.1.0",
"rimraf": "catalog:"
},
"peerDependencies": {
"@fluentui-react-native/callout": "workspace:*",
"@fluentui-react-native/experimental-appearance-additions": "workspace:*",
"@fluentui-react-native/experimental-avatar": "workspace:*",
"@fluentui-react-native/experimental-checkbox": "workspace:*",
"@fluentui-react-native/experimental-expander": "workspace:*",
"@fluentui-react-native/experimental-native-date-picker": "workspace:*",
"@fluentui-react-native/experimental-native-font-metrics": "workspace:*",
"@fluentui-react-native/experimental-shimmer": "workspace:*",
"@fluentui-react-native/focus-zone": "workspace:*",
"@fluentui-react-native/menu-button": "workspace:*",
"@fluentui-react-native/radio-group": "workspace:*",
"@fluentui-react-native/tooltip": "workspace:*",
"@fluentui-react-native/vibrancy-view": "workspace:*",
"react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
"react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
},
"peerDependenciesMeta": {
"react-native-macos": {
"optional": true
},
"react-native-windows": {
"optional": true
}
},
"jest": {
"preset": "react-native"
},
Expand Down
25 changes: 25 additions & 0 deletions apps/win32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,31 @@
"react-test-renderer": "18.2.0",
"rimraf": "catalog:"
},
"peerDependencies": {
"@fluentui-react-native/callout": "workspace:*",
"@fluentui-react-native/experimental-appearance-additions": "workspace:*",
"@fluentui-react-native/experimental-avatar": "workspace:*",
"@fluentui-react-native/experimental-checkbox": "workspace:*",
"@fluentui-react-native/experimental-expander": "workspace:*",
"@fluentui-react-native/experimental-native-date-picker": "workspace:*",
"@fluentui-react-native/experimental-native-font-metrics": "workspace:*",
"@fluentui-react-native/experimental-shimmer": "workspace:*",
"@fluentui-react-native/focus-zone": "workspace:*",
"@fluentui-react-native/menu-button": "workspace:*",
"@fluentui-react-native/radio-group": "workspace:*",
"@fluentui-react-native/tooltip": "workspace:*",
"@fluentui-react-native/vibrancy-view": "workspace:*",
"react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
"react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
},
"peerDependenciesMeta": {
"react-native-macos": {
"optional": true
},
"react-native-windows": {
"optional": true
}
},
"jest": {
"preset": "react-native"
},
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;
9 changes: 2 additions & 7 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": "zx .github/scripts/changeset-version-with-postbump.mts",
"changeset:validate": "zx .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
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
8 changes: 7 additions & 1 deletion packages/utils/test-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"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",
"update-snapshots": "fluentui-scripts jest -u"
},
"dependencies": {
Expand All @@ -51,9 +51,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
51 changes: 51 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5302,8 +5302,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 @@ -5456,6 +5460,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 @@ -5499,6 +5507,27 @@ __metadata:
react-native-test-app: "npm:^4.4.11"
react-test-renderer: "npm:19.1.0"
rimraf: "catalog:"
peerDependencies:
"@fluentui-react-native/callout": "workspace:*"
"@fluentui-react-native/experimental-appearance-additions": "workspace:*"
"@fluentui-react-native/experimental-avatar": "workspace:*"
"@fluentui-react-native/experimental-checkbox": "workspace:*"
"@fluentui-react-native/experimental-expander": "workspace:*"
"@fluentui-react-native/experimental-native-date-picker": "workspace:*"
"@fluentui-react-native/experimental-native-font-metrics": "workspace:*"
"@fluentui-react-native/experimental-shimmer": "workspace:*"
"@fluentui-react-native/focus-zone": "workspace:*"
"@fluentui-react-native/menu-button": "workspace:*"
"@fluentui-react-native/radio-group": "workspace:*"
"@fluentui-react-native/tooltip": "workspace:*"
"@fluentui-react-native/vibrancy-view": "workspace:*"
react-native-macos: ^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0
react-native-windows: ^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0
peerDependenciesMeta:
react-native-macos:
optional: true
react-native-windows:
optional: true
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -5537,6 +5566,27 @@ __metadata:
react-native-test-app: "npm:^3.9.2"
react-test-renderer: "npm:18.2.0"
rimraf: "catalog:"
peerDependencies:
"@fluentui-react-native/callout": "workspace:*"
"@fluentui-react-native/experimental-appearance-additions": "workspace:*"
"@fluentui-react-native/experimental-avatar": "workspace:*"
"@fluentui-react-native/experimental-checkbox": "workspace:*"
"@fluentui-react-native/experimental-expander": "workspace:*"
"@fluentui-react-native/experimental-native-date-picker": "workspace:*"
"@fluentui-react-native/experimental-native-font-metrics": "workspace:*"
"@fluentui-react-native/experimental-shimmer": "workspace:*"
"@fluentui-react-native/focus-zone": "workspace:*"
"@fluentui-react-native/menu-button": "workspace:*"
"@fluentui-react-native/radio-group": "workspace:*"
"@fluentui-react-native/tooltip": "workspace:*"
"@fluentui-react-native/vibrancy-view": "workspace:*"
react-native-macos: ^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0
react-native-windows: ^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0
peerDependenciesMeta:
react-native-macos:
optional: true
react-native-windows:
optional: true
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -10665,6 +10715,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