Skip to content

Commit

Permalink
build: use tsc output code in both cjs and esm formats (#127)
Browse files Browse the repository at this point in the history
* build: use tsdx

* Move "module" field up to the rest

* build: use tsc

* Use yarn instead of npm

Co-authored-by: Simon Knott <[email protected]>
  • Loading branch information
Lxxyx and Skn0tt authored Mar 17, 2021
1 parent f910c7b commit 75378fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"module": "dist/esm/index.js",
"files": [
"dist",
"src"
Expand All @@ -11,10 +12,12 @@
"node": ">=10"
},
"scripts": {
"build": "tsc",
"build": "yarn build:cjs && yarn build:esm",
"build:cjs": "tsc",
"build:esm": "tsc --module es2015 --outDir dist/esm",
"test": "tsdx test --notify --verbose",
"lint": "tsdx lint",
"prepack": "tsc",
"prepack": "yarn build",
"prepare": "husky install"
},
"importSort": {
Expand Down Expand Up @@ -46,7 +49,6 @@
"url": "https://twitter.com/flybayer"
}
],
"module": "dist/superjson.esm.js",
"repository": {
"type": "git",
"url": "https://github.com/blitz-js/superjson"
Expand Down

0 comments on commit 75378fd

Please sign in to comment.