Skip to content

Commit 229c706

Browse files
committed
fix(watch): avoid breaking error when initializing app with concurrently
Running the CLI with concurrently installed will lead to a ERR_PACKAGE_PATH_NOT_EXPORTED error again leading to a failed installation. Previously, this only lead to a warning. release-npm
1 parent 28d75b2 commit 229c706

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

template/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"app": "node create-app.js",
1414
"app:install": "npm i --no-save $(npm pack . | tail -1) --prefix app",
1515
"build": "esbuild index.tsx --outdir=dist --bundle --minify --format=esm --sourcemap --external:react-native --external:react && tsc",
16-
"watch": "concurrently --kill-others \"npm run build:watch\" \"npm run copy\"",
16+
"watch": "npm-run-all --parallel build:watch copy",
1717
"copy": "cpx 'dist/**/*' app/node_modules/<%= name %>/dist --watch",
1818
"build:watch": "esbuild index.tsx --watch --outdir=dist --bundle --format=esm --sourcemap --external:react-native --external:react",
1919
"test": "jest",
@@ -42,7 +42,8 @@
4242
"eslint": "^8.19.0",
4343
"eslint-plugin-flowtype": "^8.0.3",
4444
"jest": "^28.1.2",
45-
"metro-react-native-babel-preset": "^0.71.2",
45+
"metro-react-native-babel-preset": "^0.71.3",
46+
"npm-run-all": "^4.1.5",
4647
"prettier": "^2.7.1",
4748
"react": "^18.2.0",
4849
"react-native": "^0.69.1",

0 commit comments

Comments
 (0)