Skip to content

Commit ed2e8a4

Browse files
committed
cleaning up build
1 parent e8da730 commit ed2e8a4

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"main": "dist/index.js",
1010
"source": "src/index.ts",
1111
"scripts": {
12+
"build": "tsc -p .",
1213
"lint": "eslint . --ext .ts",
1314
"test": "NODE_ENV=test nyc mocha -r ts-node/register \"src/**/*.spec.ts\" --exit"
1415
},

tsconfig.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
1515
// "sourceMap": true, /* Generates corresponding '.map' file. */
1616
// "outFile": "./", /* Concatenate and emit output to single file. */
17-
"outDir": "./dist", /* Redirect output structure to the directory. */
18-
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
17+
"outDir": "dist", /* Redirect output structure to the directory. */
18+
"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
1919
// "composite": true, /* Enable project compilation */
2020
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
2121
"removeComments": true, /* Do not emit comments to output. */
@@ -66,5 +66,12 @@
6666
/* Advanced Options */
6767
"skipLibCheck": true, /* Skip type checking of declaration files. */
6868
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
69-
}
69+
},
70+
"include": [
71+
"src/**/*"
72+
],
73+
"exclude": [
74+
"node_modules",
75+
"src/**/*.spec.ts"
76+
]
7077
}

0 commit comments

Comments
 (0)