Skip to content

Commit

Permalink
Add esbuild bundle to test-exports package, currently fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Mar 14, 2023
1 parent 7e235e1 commit 1baa0ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
dist/
build/
lib/
.turbo
.eslintcache
Expand Down
4 changes: 3 additions & 1 deletion test-exports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "./index.js",
"type": "module",
"scripts": {
"test": "node ./index.mjs && node ./index.cjs && tsc",
"test": "node ./index.mjs && node ./index.cjs && tsc && yarn run test:esbuild:node",
"test:esbuild:node": "esbuild --bundle --minify --platform=node --target=node18 --outdir=build/ index.ts --define:process.env.NODE_ENV=\\\"production\\\" --analyze --format=esm --tree-shaking=true",
"format": "prettier --write \"**/*.ts\"",
"format:check": "prettier --list-different \"**/*.ts\""
},
Expand All @@ -17,6 +18,7 @@
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.2",
"esbuild": "^0.17.11",
"prettier": "^2.8.3",
"typescript": "^4.9.5"
}
Expand Down

0 comments on commit 1baa0ef

Please sign in to comment.