Skip to content

Commit f84fadf

Browse files
authored
chore: run oxfmt from workspace root (#2685)
1 parent 96da41c commit f84fadf

3 files changed

Lines changed: 50 additions & 51 deletions

File tree

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"private": true,
32
"name": "@microsoft/root",
43
"version": "0.0.1-dev",
4+
"private": true,
55
"homepage": "https://github.com/microsoft/react-native-test-app",
66
"license": "MIT",
77
"author": {
@@ -12,10 +12,15 @@
1212
"type": "git",
1313
"url": "https://github.com/microsoft/react-native-test-app.git"
1414
},
15+
"workspaces": [
16+
".",
17+
"packages/app",
18+
"packages/app/example"
19+
],
1520
"scripts": {
1621
"format": "nx run-many --target format:c,format:js,format:swift",
1722
"lint": "nx run-many --target lint:js,lint:kt,lint:rb,lint:swift",
18-
"format:js": "oxfmt $(git ls-files '.github/*.json' '.github/*.yml' '.yarn/plugins/*' '.yarnrc.yml' 'CONTRIBUTING.md' 'README.md' 'nx.json')",
23+
"format:js": "oxfmt '**/README.md' '**/package.json' '*.{cjs,cts,js,mjs,mts,ts,tsx,yml}' '.github/**/*.json' 'CONTRIBUTING.md' 'nx.json' '!packages/app/package.json'",
1924
"lint:commit": "git log --format='%s' origin/trunk..HEAD | tail -1 | npx @rnx-kit/commitlint-lite@2.0.0",
2025
"release-notes": "node scripts/release-notes.mts",
2126
"show-affected": "node scripts/affected.mts"
@@ -31,10 +36,6 @@
3136
"oxfmt": "^0.35.0",
3237
"typescript": "^5.0.0"
3338
},
34-
"engines": {
35-
"node": ">=22.18"
36-
},
37-
"packageManager": "yarn@4.10.3",
3839
"resolutions": {
3940
"@appium/base-driver/axios": "^1.13.3",
4041
"@appium/base-driver/lodash": "^4.17.23",
@@ -87,11 +88,10 @@
8788
"simple-plist/bplist-creator": "~0.1.0",
8889
"simple-plist/bplist-parser": "~0.3.1"
8990
},
90-
"workspaces": [
91-
".",
92-
"packages/app",
93-
"packages/app/example"
94-
],
91+
"engines": {
92+
"node": ">=22.18"
93+
},
94+
"packageManager": "yarn@4.10.3",
9595
"rnx-kit": {
9696
"lint": {
9797
"lockfile": {

packages/app/package.json

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020
"name": "Microsoft Open Source",
2121
"email": "microsoftopensource@users.noreply.github.com"
2222
},
23+
"repository": {
24+
"type": "git",
25+
"url": "https://github.com/microsoft/react-native-test-app.git",
26+
"directory": "packages/app"
27+
},
28+
"bin": {
29+
"init": "scripts/init.mjs",
30+
"init-test-app": "scripts/init.mjs",
31+
"configure-test-app": "scripts/configure.mjs",
32+
"install-windows-test-app": "windows/app.mjs"
33+
},
2334
"files": [
2435
"*.md",
2536
"ReactTestApp-DevSupport.podspec",
@@ -55,20 +66,8 @@
5566
"!.clang-format"
5667
],
5768
"main": "scripts/configure-projects.js",
58-
"bin": {
59-
"init": "scripts/init.mjs",
60-
"init-test-app": "scripts/init.mjs",
61-
"configure-test-app": "scripts/configure.mjs",
62-
"install-windows-test-app": "windows/app.mjs"
63-
},
64-
"repository": {
65-
"type": "git",
66-
"url": "https://github.com/microsoft/react-native-test-app.git",
67-
"directory": "packages/app"
68-
},
6969
"scripts": {
7070
"format:c": "clang-format -i $(git ls-files '*.cpp' '*.h' '*.m' '*.mm')",
71-
"format:js": "oxfmt $(git ls-files '*.[cm][jt]s' '*.[jt]s' '*.tsx' '*.yml' 'README.md' 'test/**/*.json')",
7271
"format:swift": "swiftformat $(git ls-files '*.swift')",
7372
"generate:code": "node scripts/internal/generate-manifest.mts",
7473
"generate:docs": "node scripts/internal/generate-manifest-docs.mts",
@@ -95,28 +94,6 @@
9594
"semver": "^7.3.5",
9695
"uuid": "^11.0.0"
9796
},
98-
"peerDependencies": {
99-
"@callstack/react-native-visionos": "0.76 - 0.79",
100-
"@expo/config-plugins": ">=5.0",
101-
"react": "18.2 - 19.2",
102-
"react-native": "0.76 - 0.84 || >=0.84.0-0 <0.85.0",
103-
"react-native-macos": "^0.0.0-0 || 0.76 - 0.81",
104-
"react-native-windows": "^0.0.0-0 || 0.76 - 0.81"
105-
},
106-
"peerDependenciesMeta": {
107-
"@callstack/react-native-visionos": {
108-
"optional": true
109-
},
110-
"@expo/config-plugins": {
111-
"optional": true
112-
},
113-
"react-native-macos": {
114-
"optional": true
115-
},
116-
"react-native-windows": {
117-
"optional": true
118-
}
119-
},
12097
"devDependencies": {
12198
"@babel/core": "^7.25.2",
12299
"@babel/preset-env": "^7.25.3",
@@ -150,6 +127,28 @@
150127
"react-native-windows": "^0.81.0",
151128
"suggestion-bot": "^4.0.0"
152129
},
130+
"peerDependencies": {
131+
"@callstack/react-native-visionos": "0.76 - 0.79",
132+
"@expo/config-plugins": ">=5.0",
133+
"react": "18.2 - 19.2",
134+
"react-native": "0.76 - 0.84 || >=0.84.0-0 <0.85.0",
135+
"react-native-macos": "^0.0.0-0 || 0.76 - 0.81",
136+
"react-native-windows": "^0.0.0-0 || 0.76 - 0.81"
137+
},
138+
"peerDependenciesMeta": {
139+
"@callstack/react-native-visionos": {
140+
"optional": true
141+
},
142+
"@expo/config-plugins": {
143+
"optional": true
144+
},
145+
"react-native-macos": {
146+
"optional": true
147+
},
148+
"react-native-windows": {
149+
"optional": true
150+
}
151+
},
153152
"engines": {
154153
"node": ">=18.12"
155154
},

packages/null/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"private": true,
32
"name": "@microsoft/null",
43
"version": "0.0.1-dev",
4+
"private": true,
55
"description": "Meta package for preventing packages from being installed",
66
"homepage": "https://github.com/microsoft/react-native-test-app",
77
"license": "MIT",
88
"author": {
99
"name": "Microsoft Open Source",
1010
"email": "microsoftopensource@users.noreply.github.com"
1111
},
12-
"files": [
13-
"index.js"
14-
],
15-
"main": "index.js",
1612
"repository": {
1713
"type": "git",
1814
"url": "https://github.com/microsoft/react-native-test-app.git",
1915
"directory": "packages/null"
20-
}
16+
},
17+
"files": [
18+
"index.js"
19+
],
20+
"main": "index.js"
2121
}

0 commit comments

Comments
 (0)