Skip to content

Commit 02eb4e3

Browse files
author
Kevin Groat
committed
Fixed compilation error
1 parent a84991e commit 02eb4e3

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"clean": "rimraf dist lib coverage",
2323
"postclean": "mkdirp dist",
2424
"compile:browser": "cross-conf-env browserify src/index.ts --standalone td --outfile $npm_package_config_build_file -p tsify -p headerify",
25-
"compile:node": "tsc",
25+
"compile:node": "tsc --project ./tsconfig.node.json",
2626
"precompile": "npm run clean",
2727
"compile": "run-s compile:node compile:browser",
2828
"cover": "nyc --reporter=lcov --reporter=text-summary --reporter=html npm test",

tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"noImplicitAny": false,
66
"module": "commonjs",
77
"moduleResolution": "node",
8-
"outDir": "lib",
9-
"declaration": true,
10-
"declarationDir": "ts"
8+
"outDir": "lib"
119
},
1210
"include": ["src/**/*"],
1311
"exclude": ["ts/**/*"]

tsconfig.node.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "http://json.schemastore.org/tslint",
3+
"extends": "./tsconfig.json",
4+
"compilerOptions": {
5+
"declaration": true,
6+
"declarationDir": "ts"
7+
}
8+
}

0 commit comments

Comments
 (0)