Skip to content

Commit

Permalink
fix: runnable via npx
Browse files Browse the repository at this point in the history
In the switch to esbuild I broke the ability to run via npx. esbuild was
producing files in the esm format, but node wasn't happy with that so
I've switched it to commonjs. Also the keys weren't being bundled
anymore either.

Fixes jagregory#34
  • Loading branch information
jagregory committed Jul 29, 2021
1 parent 0a39e56 commit 4313ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lib"
],
"scripts": {
"build": "rm -rf lib && tsc --emitDeclarationOnly --project tsconfig.build.json && esbuild $(find src -name '*.ts') --outdir=lib --platform=node --target=node14",
"build": "rm -rf lib && tsc --emitDeclarationOnly --project tsconfig.build.json && esbuild $(find src -name '*.ts') --outdir=lib --platform=node --target=node14 --format=cjs && cp -r src/keys lib/keys",
"integration-test": "jest --config integration-tests/jest.config.js",
"integration-test:watch": "jest --config integration-tests/jest.config.js --watch",
"lint": "eslint src/**/*.ts && tsc --noEmit",
Expand Down

0 comments on commit 4313ebf

Please sign in to comment.