Skip to content

Commit

Permalink
🔧 Transpile to commonjs modules in addition to es2015
Browse files Browse the repository at this point in the history
- Allow usage in backend app without a webpack/babel setup
  • Loading branch information
ftes committed Nov 26, 2020
1 parent 961eae2 commit 16bc609
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
],
"scripts": {
"test": "jest --config jestconfig.json",
"build": "tsc",
"build": "npm run build:es2015 && npm run build:commonjs",
"build:es2015": "tsc",
"build:commonjs": "tsc -m commonjs --outDir lib/commonjs",
"lint": "tslint -p tsconfig.json --fix",
"example": "npm run build && webpack --config ./example/webpack.config.js",
"prepare": "npm run build",
Expand Down

0 comments on commit 16bc609

Please sign in to comment.