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

Commit

Permalink
move tsconfig target and lib options to compilerOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed May 20, 2020
1 parent f710dce commit 57a5594
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"browser": "dist.browser/index.js",
"scripts": {
"benchmarks": "npm run build && ts-node benchmarks/index.ts",
"build": "tsc -p tsconfig.json && tsc -p tsconfig.browser.json",
"build": "tsc -p tsconfig.prod.json && tsc -p tsconfig.browser.json",
"prepublishOnly": "npm run test && npm run build",
"coverage": "nyc --reporter=lcov npm run test:node",
"docs:build": "typedoc",
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.browser.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "./tsconfig.json",
"extends": "./tsconfig.prod.json",
"compilerOptions": {
"outDir": "./dist.browser",
},
"target": "es5",
"lib": ["dom", "es5"]
"target": "es5",
"lib": ["dom", "es5"]
}
}

8 changes: 0 additions & 8 deletions tsconfig.json

This file was deleted.

8 changes: 8 additions & 0 deletions tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@ethereumjs/config-tsc",
"compilerOptions": {
"outDir": "./dist",
"target": "ES2017"
},
"include": ["src/**/*.ts"]
}

0 comments on commit 57a5594

Please sign in to comment.