Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 57a5594

Browse files
committed
move tsconfig target and lib options to compilerOptions
1 parent f710dce commit 57a5594

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"browser": "dist.browser/index.js",
1212
"scripts": {
1313
"benchmarks": "npm run build && ts-node benchmarks/index.ts",
14-
"build": "tsc -p tsconfig.json && tsc -p tsconfig.browser.json",
14+
"build": "tsc -p tsconfig.prod.json && tsc -p tsconfig.browser.json",
1515
"prepublishOnly": "npm run test && npm run build",
1616
"coverage": "nyc --reporter=lcov npm run test:node",
1717
"docs:build": "typedoc",

tsconfig.browser.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"extends": "./tsconfig.json",
2+
"extends": "./tsconfig.prod.json",
33
"compilerOptions": {
44
"outDir": "./dist.browser",
5-
},
6-
"target": "es5",
7-
"lib": ["dom", "es5"]
5+
"target": "es5",
6+
"lib": ["dom", "es5"]
7+
}
88
}
99

tsconfig.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

tsconfig.prod.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@ethereumjs/config-tsc",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
"target": "ES2017"
6+
},
7+
"include": ["src/**/*.ts"]
8+
}

0 commit comments

Comments
 (0)