From f0627b9f71282be30fd5280f861632509a2a3b1a Mon Sep 17 00:00:00 2001 From: Jasper De Moor Date: Tue, 21 Jan 2020 19:30:53 +0100 Subject: [PATCH] enable typechecking by default --- packages/configs/default/index.json | 5 ++++- packages/configs/default/package.json | 3 ++- packages/core/integration-tests/package.json | 1 + .../test/integration/typescript-config/tsconfig.json | 3 ++- yarn.lock | 5 +++++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/packages/configs/default/index.json b/packages/configs/default/index.json index 64c52698e40..2632ed43bd1 100644 --- a/packages/configs/default/index.json +++ b/packages/configs/default/index.json @@ -50,5 +50,8 @@ "*": "@parcel/packager-raw" }, "resolvers": ["@parcel/resolver-default"], - "reporters": ["@parcel/reporter-cli", "@parcel/reporter-dev-server"] + "reporters": ["@parcel/reporter-cli", "@parcel/reporter-dev-server"], + "validators": { + "*.{ts,tsx}": ["@parcel/validator-typescript"] + } } diff --git a/packages/configs/default/package.json b/packages/configs/default/package.json index 981c6038f04..826c17a0629 100644 --- a/packages/configs/default/package.json +++ b/packages/configs/default/package.json @@ -51,6 +51,7 @@ "@parcel/transformer-sugarss": "^2.0.0-alpha.3.1", "@parcel/transformer-toml": "^2.0.0-alpha.3.1", "@parcel/transformer-typescript-types": "^2.0.0-alpha.3.1", - "@parcel/transformer-yaml": "^2.0.0-alpha.3.1" + "@parcel/transformer-yaml": "^2.0.0-alpha.3.1", + "@parcel/validator-typescript": "^2.0.0-alpha.3.1" } } diff --git a/packages/core/integration-tests/package.json b/packages/core/integration-tests/package.json index 204f3a4e98a..bee6bbcfc41 100644 --- a/packages/core/integration-tests/package.json +++ b/packages/core/integration-tests/package.json @@ -17,6 +17,7 @@ "@babel/plugin-syntax-export-namespace-from": "^7.2.0", "@babel/preset-env": "^7.1.0", "@jetbrains/kotlinc-js-api": "^1.2.12", + "@types/node": "^13.1.8", "chalk": "^2.1.0", "codecov": "^3.0.0", "command-exists": "^1.2.6", diff --git a/packages/core/integration-tests/test/integration/typescript-config/tsconfig.json b/packages/core/integration-tests/test/integration/typescript-config/tsconfig.json index b2440ce7b79..8cdc1d88947 100644 --- a/packages/core/integration-tests/test/integration/typescript-config/tsconfig.json +++ b/packages/core/integration-tests/test/integration/typescript-config/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { - "removeComments": true + "removeComments": true, + "types": ["node"] } } diff --git a/yarn.lock b/yarn.lock index 0883dc553a7..bb9b9b24199 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1940,6 +1940,11 @@ resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== +"@types/node@^13.1.8": + version "13.1.8" + resolved "https://registry.yarnpkg.com/@types/node/-/node-13.1.8.tgz#1d590429fe8187a02707720ecf38a6fe46ce294b" + integrity sha512-6XzyyNM9EKQW4HKuzbo/CkOIjn/evtCmsU+MUM1xDfJ+3/rNjBttM1NgN7AOQvN6tP1Sl1D1PIKMreTArnxM9A== + "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"