Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/postinstall-missing-dist-scripts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-native-ama/core': patch
---

fix: postinstall script crashed on every external install with `Cannot find module './../dist/scripts/create-config.js'`. `create-config.ts` lived outside `src/`, so `tsconfig.build.json` (which only compiles `src/**/*`) never built it into `dist/scripts/create-config.js`. Moved the script into `src/scripts/` so it's included in the normal build. Only reproduces for real external installs — the monorepo's own dev loop skips this code path via `postinstall.js`'s `isMonorepo` guard, which is why it wasn't caught before publishing `2.0.0-beta.0`.
3 changes: 1 addition & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
},
"files": [
"src",
"dist",
"dist/scripts"
"dist"
],
"scripts": {
"build": "rm -rf dist && ../../node_modules/.bin/tsc -p ./tsconfig.build.json",
Expand Down
Loading