Skip to content

Commit

Permalink
fix(react-native): Do not create a tarball locally during build
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed Nov 6, 2024
1 parent 05dec8b commit 0cea280
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,23 @@
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"import": {
"types": "./dist/client/index.d.mts",
"default": "./dist/client/index.mjs"
},
"require": {
"types": "./dist/client/index.d.ts",
"default": "./dist/client/index.js"
}
}
},
"scripts": {
"build:watch": "tsup --watch",
"build": "tsup && pnpm run check-exports",
"build": "tsup && pnpm run check:exports",
"lint": "eslint src",
"check-exports": "attw --pack .",
"check:exports": "attw --pack .",
"release:preview": "pnpx pkg-pr-new publish"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/react-native/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ export default defineConfig([
sourcemap: true,
clean: true,
dts: true,
treeshake: false,
bundle: false,
},
]);

0 comments on commit 0cea280

Please sign in to comment.