diff --git a/.eslintrc.json b/.eslintrc.json index a83ecf731f..d1b0d68f29 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,7 @@ { "root": true, "parser": "@typescript-eslint/parser", - "parserOptions": { "project": "./tsconfig.json" }, + "parserOptions": { "project": "./tsconfig.dev.json" }, "env": { "es6": true }, "ignorePatterns": ["node_modules", "build", "coverage", "proto"], "plugins": ["import", "eslint-comments", "functional"], diff --git a/package.json b/package.json index 9d2cb69b0e..1fcd5f920f 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "build": "run-s build:*", "build:main": "tsc -p tsconfig.json", "build:module": "tsc -p tsconfig.module.json", + "build:dev": "tsc -p tsconfig.dev.json", "fix": "run-s fix:*", "fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --write", "fix:lint": "eslint src --ext .ts --fix", diff --git a/tsconfig.dev.json b/tsconfig.dev.json new file mode 100644 index 0000000000..5cdf5d2ea6 --- /dev/null +++ b/tsconfig.dev.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "noEmit": true + }, + "exclude": ["node_modules/**"] +} diff --git a/tsconfig.json b/tsconfig.json index ac42bdb78f..3edb3bcf13 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -46,7 +46,7 @@ "typeRoots": ["node_modules/@types", "src/types"] }, "include": ["src/**/*.ts"], - "exclude": ["node_modules/**"], + "exclude": ["node_modules/**", "src/**/*.spec.ts", "src/test_utils"], "compileOnSave": false, "ts-node": { "files": true diff --git a/tsconfig.module.json b/tsconfig.module.json index 79be3a5c40..6aa86a5569 100644 --- a/tsconfig.module.json +++ b/tsconfig.module.json @@ -5,5 +5,5 @@ "outDir": "build/module", "module": "esnext" }, - "exclude": ["node_modules/**"] + "exclude": ["node_modules/**", "src/**/*.spec.ts", "src/test_utils"] }