Skip to content

Commit 020ddc3

Browse files
committed
chore(build): fix typescript build
1 parent a9e6542 commit 020ddc3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"typings": "dist/index.d.ts",
66
"scripts": {
77
"test": "TS_NODE_FAST=true TS_NODE_NO_PROJECT=true ava",
8-
"prepublish": "rimraf dist && tsc -p .",
9-
"semantic-release": "semantic-release pre && npm publish --access=public && semantic-release post"
8+
"build": "rimraf dist && tsc -p .",
9+
"semantic-release": "npm run build && semantic-release pre && npm publish --access=public && semantic-release post"
1010
},
1111
"repository": {
1212
"type": "git",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"declaration": true,
99
"outDir": "dist",
1010
"rootDir": "src",
11-
"sourceMap": true
11+
"sourceMap": true,
12+
"lib": ["es6"]
1213
},
1314
"exclude": [
1415
"node_modules",

0 commit comments

Comments
 (0)