Skip to content

Commit

Permalink
#2: Remove TypeScript files from NPM dist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Aug 12, 2017
1 parent de22cf9 commit 928ea4d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"url": "https://github.com/Borewit"
},
"scripts": {
"compile": "tsc --pretty",
"compile-src": "tsc -p src",
"compile-test": "tsc -p test",
"compile": "npm run compile-src && npm run compile-test",
"prepare": "npm run compile",
"lint": "tslint 'lib/**/*.ts' --exclude 'lib/**/*.d.ts' 'test/**/*.ts' --exclude 'test/**/*.d.ts'",
"lint": "tslint 'src/**/*.ts' --exclude 'src/**/*.d.ts' 'test/**/*.ts' --exclude 'test/**/*.d.ts'",
"test": "mocha --require ts-node/register test",
"cover-test": "nyc npm run test",
"coveralls": "npm run cover-test && nyc report --reporter=text-lcov | coveralls",
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"sourceMap": false,
"inlineSources": false,
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"target": "es5",
"outDir": "../lib"
}
}

11 changes: 4 additions & 7 deletions tsconfig.json → test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"compilerOptions": {
"sourceMap": true,
"sourceMap": true,
"inlineSources": true,
"module": "commonjs",
"moduleResolution": "node",
"declaration": true
},
"include": [
"lib/**/*.ts",
"test/**/*.ts"
]
"declaration": false,
"target": "es5"
}
}

0 comments on commit 928ea4d

Please sign in to comment.