diff --git a/package.json b/package.json index cd9e5498e..5b33c3e05 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "private": true, "name": "@microsoft/root", "version": "0.0.1-dev", + "private": true, "homepage": "https://github.com/microsoft/react-native-test-app", "license": "MIT", "author": { @@ -12,10 +12,15 @@ "type": "git", "url": "https://github.com/microsoft/react-native-test-app.git" }, + "workspaces": [ + ".", + "packages/app", + "packages/app/example" + ], "scripts": { "format": "nx run-many --target format:c,format:js,format:swift", "lint": "nx run-many --target lint:js,lint:kt,lint:rb,lint:swift", - "format:js": "oxfmt $(git ls-files '.github/*.json' '.github/*.yml' '.yarn/plugins/*' '.yarnrc.yml' 'CONTRIBUTING.md' 'README.md' 'nx.json')", + "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'", "lint:commit": "git log --format='%s' origin/trunk..HEAD | tail -1 | npx @rnx-kit/commitlint-lite@2.0.0", "release-notes": "node scripts/release-notes.mts", "show-affected": "node scripts/affected.mts" @@ -31,10 +36,6 @@ "oxfmt": "^0.35.0", "typescript": "^5.0.0" }, - "engines": { - "node": ">=22.18" - }, - "packageManager": "yarn@4.10.3", "resolutions": { "@appium/base-driver/axios": "^1.11.0", "@appium/base-driver/lodash": "^4.17.21", @@ -87,11 +88,10 @@ "react-native-windows/metro-source-map": "^0.83.1", "safe-buffer": "~5.2.1" }, - "workspaces": [ - ".", - "packages/app", - "packages/app/example" - ], + "engines": { + "node": ">=22.18" + }, + "packageManager": "yarn@4.10.3", "rnx-kit": { "lint": { "lockfile": { diff --git a/packages/app/package.json b/packages/app/package.json index 4c68898f9..c4fce7e2e 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -20,6 +20,17 @@ "name": "Microsoft Open Source", "email": "microsoftopensource@users.noreply.github.com" }, + "repository": { + "type": "git", + "url": "https://github.com/microsoft/react-native-test-app.git", + "directory": "packages/app" + }, + "bin": { + "init": "scripts/init.mjs", + "init-test-app": "scripts/init.mjs", + "configure-test-app": "scripts/configure.mjs", + "install-windows-test-app": "windows/app.mjs" + }, "files": [ "*.md", "ReactTestApp-DevSupport.podspec", @@ -55,20 +66,8 @@ "!.clang-format" ], "main": "scripts/configure-projects.js", - "bin": { - "init": "scripts/init.mjs", - "init-test-app": "scripts/init.mjs", - "configure-test-app": "scripts/configure.mjs", - "install-windows-test-app": "windows/app.mjs" - }, - "repository": { - "type": "git", - "url": "https://github.com/microsoft/react-native-test-app.git", - "directory": "packages/app" - }, "scripts": { "format:c": "clang-format -i $(git ls-files '*.cpp' '*.h' '*.m' '*.mm')", - "format:js": "oxfmt $(git ls-files '*.[cm][jt]s' '*.[jt]s' '*.tsx' '*.yml' 'README.md' 'test/**/*.json')", "format:swift": "swiftformat $(git ls-files '*.swift')", "generate:code": "node scripts/internal/generate-manifest.mts", "generate:docs": "node scripts/internal/generate-manifest-docs.mts", @@ -95,28 +94,6 @@ "semver": "^7.3.5", "uuid": "^11.0.0" }, - "peerDependencies": { - "@callstack/react-native-visionos": "0.76 - 0.79", - "@expo/config-plugins": ">=5.0", - "react": "18.2 - 19.2", - "react-native": "0.76 - 0.84 || >=0.84.0-0 <0.85.0", - "react-native-macos": "^0.0.0-0 || 0.76 - 0.81", - "react-native-windows": "^0.0.0-0 || 0.76 - 0.81" - }, - "peerDependenciesMeta": { - "@callstack/react-native-visionos": { - "optional": true - }, - "@expo/config-plugins": { - "optional": true - }, - "react-native-macos": { - "optional": true - }, - "react-native-windows": { - "optional": true - } - }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", @@ -150,6 +127,28 @@ "react-native-windows": "^0.81.0", "suggestion-bot": "^4.0.0" }, + "peerDependencies": { + "@callstack/react-native-visionos": "0.76 - 0.79", + "@expo/config-plugins": ">=5.0", + "react": "18.2 - 19.2", + "react-native": "0.76 - 0.84 || >=0.84.0-0 <0.85.0", + "react-native-macos": "^0.0.0-0 || 0.76 - 0.81", + "react-native-windows": "^0.0.0-0 || 0.76 - 0.81" + }, + "peerDependenciesMeta": { + "@callstack/react-native-visionos": { + "optional": true + }, + "@expo/config-plugins": { + "optional": true + }, + "react-native-macos": { + "optional": true + }, + "react-native-windows": { + "optional": true + } + }, "engines": { "node": ">=18.12" }, diff --git a/packages/null/package.json b/packages/null/package.json index 74bad803f..3d1bf8333 100644 --- a/packages/null/package.json +++ b/packages/null/package.json @@ -1,7 +1,7 @@ { - "private": true, "name": "@microsoft/null", "version": "0.0.1-dev", + "private": true, "description": "Meta package for preventing packages from being installed", "homepage": "https://github.com/microsoft/react-native-test-app", "license": "MIT", @@ -9,13 +9,13 @@ "name": "Microsoft Open Source", "email": "microsoftopensource@users.noreply.github.com" }, - "files": [ - "index.js" - ], - "main": "index.js", "repository": { "type": "git", "url": "https://github.com/microsoft/react-native-test-app.git", "directory": "packages/null" - } + }, + "files": [ + "index.js" + ], + "main": "index.js" }