Skip to content

Commit

Permalink
fix: transpile cjs to es5 and esm to es6 (juliencrn#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliencrn committed Oct 13, 2022
1 parent 109423d commit 83cccf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"dev": "npm run test:watch",
"prebuild": "npm run clean && npm run test",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc -p tsconfig.build.json --module commonjs --outDir dist/cjs",
"build:esm": "tsc -p tsconfig.build.json --module esNext --outDir dist/esm",
"build:cjs": "tsc -p tsconfig.build.json --module commonjs --outDir dist/cjs --target es5",
"build:esm": "tsc -p tsconfig.build.json --module esNext --outDir dist/esm --target es6",
"postbuild": "npm run copy:hooks && npm run update:readme",
"pretest": "npm run lint && npm run types-check",
"test": "jest",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

"compilerOptions": {
"rootDir": "./src",
"target": "esnext",
"moduleResolution": "node",
"isolatedModules": true,
// Needed for CommonJS modules
Expand Down

0 comments on commit 83cccf3

Please sign in to comment.