Skip to content

Commit

Permalink
fix: update build step
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Apr 13, 2023
1 parent 9b0e101 commit ae84d1a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .changeset/dry-days-fold.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@svbstrate/react-native": patch
---

Specify a `react-native` field in `package.json`
Update build step to _not_ bundle files, simply transform and output to `dist`
1 change: 1 addition & 0 deletions packages/react-native/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
lib
scripts
coverage
dist/__tests__
Expand Down
1 change: 0 additions & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"react-native": "lib/index.tsx",
"types": "dist/index.d.ts",
"scripts": {
"build": "node scripts/build && pnpm typegen",
Expand Down
3 changes: 0 additions & 3 deletions packages/react-native/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ const path = require("path");

const options = {
entryPoints: ["lib/index.tsx"],
bundle: true,
sourcemap: true,
minify: true,
logLevel: "info",
external: ["react", "react-native"],
};

require("esbuild").buildSync({
Expand Down

0 comments on commit ae84d1a

Please sign in to comment.