Skip to content

Commit 804a52f

Browse files
committed
fix(create-app): build before packaging to ensure contents are available
Jest 29 upgrade delayed as it currently fails. release-npm
1 parent b18c0bf commit 804a52f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

template/create-app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ rmSync('app', { recursive: true })
1919

2020
renameSync(appName, 'app')
2121

22+
// Run build to ensure distributed files for plugin exist.
23+
execSync('npm run build', {
24+
stdio: 'inherit',
25+
})
26+
2227
// Install this package locally, avoiding symlinks.
2328
execSync('npm install $(npm pack .. | tail -1) --legacy-peer-deps', {
2429
cwd: join(process.cwd(), 'app'),

template/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
},
2424
"peerDependencies": {
2525
"react": "^18.2.0",
26-
"react-native": "^0.69.4"
26+
"react-native": "^0.69.5"
2727
},
2828
"devDependencies": {
2929
"@react-native-community/eslint-config": "3.1.0",
3030
"@types/jest": "^28.1.8",
3131
"@types/react": "^18.0.17",
3232
"@types/react-native": "^0.69.5",
3333
"@types/react-test-renderer": "^18.0.0",
34-
"@typescript-eslint/eslint-plugin": "^5.34.0",
35-
"@typescript-eslint/parser": "^5.34.0",
36-
"babel-jest": "^28.1.3",
34+
"@typescript-eslint/eslint-plugin": "^5.35.1",
35+
"@typescript-eslint/parser": "^5.35.1",
36+
"babel-jest": "^29.0.0",
3737
"cpx": "^1.5.0",
3838
"esbuild": "^0.15.5",
3939
"eslint": "^8.22.0",
@@ -43,7 +43,7 @@
4343
"npm-run-all": "^4.1.5",
4444
"prettier": "^2.7.1",
4545
"react": "^18.2.0",
46-
"react-native": "^0.69.4",
46+
"react-native": "^0.69.5",
4747
"react-test-renderer": "^18.2.0",
4848
"typescript": "^4.7.4"
4949
},

0 commit comments

Comments
 (0)