Skip to content

Commit 1f50a05

Browse files
committed
Don't enforce peer deps on app pacakages, mark tester-win32 packages as private
1 parent 9f2c478 commit 1f50a05

3 files changed

Lines changed: 21 additions & 16 deletions

File tree

apps/win32-81/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
22
"name": "@fluentui-react-native/tester-win32-81",
3-
"version": "0.38.70",
3+
"version": "0.1.0",
4+
"private": true,
45
"description": "Fluent UI React Native Win32 Tester App for RN 0.81",
56
"repository": {
67
"type": "git",
78
"url": "https://github.com/microsoft/fluentui-react-native.git",
89
"directory": "apps/win32"
910
},
10-
"main": "lib-commonjs/index.js",
11-
"module": "lib/index.js",
12-
"types": "lib/index.d.ts",
1311
"exports": {
1412
".": {
1513
"types": "./lib/index.d.ts",
@@ -18,6 +16,9 @@
1816
"default": "./src/index.ts"
1917
}
2018
},
19+
"main": "lib-commonjs/index.js",
20+
"module": "lib/index.js",
21+
"types": "lib/index.d.ts",
2122
"scripts": {
2223
"build": "fluentui-scripts build",
2324
"build-cjs": "tsgo --outDir lib-commonjs",
@@ -26,15 +27,18 @@
2627
"bundle-dev": "rnx-cli bundle",
2728
"clean": "fluentui-scripts clean",
2829
"depcheck": "fluentui-scripts depcheck",
30+
"format": "fluentui-scripts format",
2931
"lint": "fluentui-scripts eslint",
3032
"lint-package": "fluentui-scripts lint-package",
31-
"format": "fluentui-scripts format",
3233
"run-win32": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8",
3334
"run-win32-dev": "rex-win32 --bundle index --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useFastRefresh",
3435
"run-win32-devmain": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useDevMain ",
3536
"run-win32-devmain-dev": "rex-win32 --bundle index --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useFastRefresh --useDevMain",
3637
"start": "rnx-cli start"
3738
},
39+
"jest": {
40+
"preset": "react-native"
41+
},
3842
"dependencies": {
3943
"@fluentui-react-native/callout": "workspace:*",
4044
"@fluentui-react-native/experimental-appearance-additions": "workspace:*",
@@ -89,9 +93,6 @@
8993
"react-test-renderer": "19.1.0",
9094
"rimraf": "catalog:"
9195
},
92-
"jest": {
93-
"preset": "react-native"
94-
},
9596
"furn": {
9697
"depcheck": {
9798
"ignoreMatches": [

apps/win32/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
22
"name": "@fluentui-react-native/tester-win32",
3-
"version": "0.38.70",
3+
"version": "0.1.0",
4+
"private": true,
45
"description": "Fluent UI React Native Win32 Tester App",
56
"repository": {
67
"type": "git",
78
"url": "https://github.com/microsoft/fluentui-react-native.git",
89
"directory": "apps/win32"
910
},
10-
"main": "lib-commonjs/index.js",
11-
"module": "lib/index.js",
12-
"types": "lib/index.d.ts",
1311
"exports": {
1412
".": {
1513
"types": "./lib/index.d.ts",
@@ -18,6 +16,9 @@
1816
"default": "./src/index.ts"
1917
}
2018
},
19+
"main": "lib-commonjs/index.js",
20+
"module": "lib/index.js",
21+
"types": "lib/index.d.ts",
2122
"scripts": {
2223
"build": "fluentui-scripts build",
2324
"build-cjs": "tsgo --outDir lib-commonjs",
@@ -26,15 +27,18 @@
2627
"bundle-dev": "rnx-cli bundle",
2728
"clean": "fluentui-scripts clean",
2829
"depcheck": "fluentui-scripts depcheck",
30+
"format": "fluentui-scripts format",
2931
"lint": "fluentui-scripts eslint",
3032
"lint-package": "fluentui-scripts lint-package",
31-
"format": "fluentui-scripts format",
3233
"run-win32": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8",
3334
"run-win32-dev": "rex-win32 --bundle index --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useFastRefresh",
3435
"run-win32-devmain": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useDevMain ",
3536
"run-win32-devmain-dev": "rex-win32 --bundle index --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useFastRefresh --useDevMain",
3637
"start": "rnx-cli start"
3738
},
39+
"jest": {
40+
"preset": "react-native"
41+
},
3842
"dependencies": {
3943
"@fluentui-react-native/callout": "workspace:*",
4044
"@fluentui-react-native/experimental-appearance-additions": "workspace:*",
@@ -84,9 +88,6 @@
8488
"react-test-renderer": "18.2.0",
8589
"rimraf": "catalog:"
8690
},
87-
"jest": {
88-
"preset": "react-native"
89-
},
9091
"furn": {
9192
"depcheck": {
9293
"ignoreMatches": [

scripts/src/utils/checkDependencies.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export function checkDependencies() {
2929
}
3030

3131
for (const pkgName in infos) {
32+
// App packages don't have npm consumers, so peerDependency propagation doesn't apply
33+
if (infos[pkgName].pkgJson['rnx-kit']?.kitType === 'app') continue;
34+
3235
const deps = { ...infos[pkgName].dependencies, ...infos[pkgName].peerDependencies };
3336

3437
/** @type {{ name: string, version: string }[]} */

0 commit comments

Comments
 (0)