diff --git a/.gitignore b/.gitignore index 002f1edcf3..e445f893fc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dist/ .idea temp/ .remote-sync.json +tsconfig.tsbuildinfo diff --git a/.npmignore b/.npmignore index 27e448c7b4..1bd8e2cf53 100644 --- a/.npmignore +++ b/.npmignore @@ -6,6 +6,7 @@ coverage .travis.yml .jenkins.yml .codeclimate.yml +tsconfig.tsbuildinfo #linters .jscsrc diff --git a/package.json b/package.json index e71bb96d53..6d484b5c98 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,9 @@ "test-with-coverage": "jest test --coverage --collectCoverageFrom 'src/**/*.ts'", "test-watch": "jest test --watch", "eslint": "node_modules/.bin/eslint . --ext .ts --max-warnings=0", - "docs": "typedoc --tsconfig typedoc-tsconfig.json" + "docs": "typedoc --tsconfig typedoc-tsconfig.json", + "clean": "rimraf temp coverage dist", + "prepack": "npm run clean && npm run build" }, "version": "0.19.2", "jest": { diff --git a/tsconfig.json b/tsconfig.json index 24566fb4eb..a818cb7c14 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ "outDir": "dist", "baseUrl": ".", "resolveJsonModule": true, + "incremental": true }, "include": [ "src/**/*.ts",