Skip to content

Commit

Permalink
build: use tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lxxyx authored Mar 17, 2021
1 parent 3212ea2 commit 2615bae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"module": "dist/superjson.esm.js",
"module": "dist/esm/index.js",
"files": [
"dist",
"src"
Expand All @@ -12,10 +12,12 @@
"node": ">=10"
},
"scripts": {
"build": "tsdx build",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc",
"build:esm": "tsc --module es2015 --outDir dist/esm",
"test": "tsdx test --notify --verbose",
"lint": "tsdx lint",
"prepack": "tsdx build",
"prepack": "npm run build",
"prepare": "husky install"
},
"importSort": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"include": ["src"],
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"compilerOptions": {
"module": "ESNext",
"module": "CommonJS",
"lib": ["esnext"],
"importHelpers": false,
"declaration": true,
Expand Down

0 comments on commit 2615bae

Please sign in to comment.