diff --git a/.gitignore b/.gitignore index 2ce286a93..6b1bd6025 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,9 @@ typings/ # Optional eslint cache .eslintcache +# Build cache +tsconfig.tsbuildinfo + # Optional REPL history .node_repl_history diff --git a/.npmignore b/.npmignore index 1b4d40b54..aaaeaa699 100644 --- a/.npmignore +++ b/.npmignore @@ -8,6 +8,7 @@ coverage .codeclimate.yml .github babel.config.js +tsconfig.tsbuildinfo #linters .jscsrc diff --git a/package.json b/package.json index 96a96029c..b3754e822 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,9 @@ "start": "node index.js", "test-with-coverage": "jest test --coverage", "test": "jest test", - "test-watch": "jest test --watch" + "test-watch": "jest test --watch", + "clean": "rimraf coverage dist tsconfig.tsbuildinfo", + "prepack": "npm run clean && npm run build" }, "author": "Koen Kanters", "license": "GPL-3.0", diff --git a/tsconfig.json b/tsconfig.json index 5b00b2a58..92c17644c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,8 @@ "rootDir": "lib", "inlineSourceMap": true, "resolveJsonModule": true, - "experimentalDecorators": true + "experimentalDecorators": true, + "incremental": true }, "include": [ "lib/**/*",