Skip to content

Commit 8a36fe1

Browse files
authored
chore: reduce install size (#36)
This pull request reduces the install size of Harness by moving certain dependencies to devDependencies or completely removing them.
1 parent 9aa6254 commit 8a36fe1

File tree

4 files changed

+7
-120
lines changed

4 files changed

+7
-120
lines changed

packages/jest/eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export default [
99
'error',
1010
{
1111
ignoredFiles: ['{projectRoot}/eslint.config.{js,cjs,mjs,ts,cts,mts}'],
12-
ignoredDependencies: ['@react-native-harness/cli'],
12+
// jest-runner: we only ingest types
13+
ignoredDependencies: ['@react-native-harness/cli', 'jest-runner'],
1314
},
1415
],
1516
},

packages/jest/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
"@react-native-harness/tools": "workspace:*",
4242
"chalk": "^4.1.2",
4343
"jest-message-util": "^30.2.0",
44-
"jest-runner": "^30.2.0",
4544
"jest-util": "^30.2.0",
4645
"p-limit": "^7.1.1",
4746
"p-retry": "^7.1.0",
4847
"tslib": "^2.3.0",
4948
"yargs": "^17.7.2"
5049
},
5150
"devDependencies": {
52-
"@types/yargs": "^17.0.32"
51+
"@types/yargs": "^17.0.32",
52+
"jest-runner": "^30.2.0"
5353
},
5454
"license": "MIT"
5555
}

packages/runtime/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@
3131
"@vitest/spy": "4.0.0-beta.8",
3232
"chai": "^5.3.1",
3333
"event-target-shim": "^6.0.2",
34-
"react-native-url-polyfill": "^2.0.0",
35-
"sinon": "^21.0.0",
3634
"use-sync-external-store": "^1.6.0",
37-
"util": "^0.12.5",
3835
"zustand": "^5.0.5"
3936
},
4037
"devDependencies": {
4138
"@types/chai": "^5.2.2",
42-
"@types/sinon": "^17.0.4",
4339
"react": "*",
4440
"react-native": "*"
4541
},

pnpm-lock.yaml

Lines changed: 3 additions & 113 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)