From 80bd5836d195b115b6f45d7f7bfbc335ed3724ca Mon Sep 17 00:00:00 2001 From: Fletcher91 Date: Mon, 30 Mar 2020 12:18:19 +0200 Subject: [PATCH] Enable isolatedModules to JS can interpret const enums --- core/package.json | 2 +- core/tsconfig.json | 1 + core/yarn.lock | 8 ++++---- package.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/package.json b/core/package.json index f523cbf..54aecac 100644 --- a/core/package.json +++ b/core/package.json @@ -55,6 +55,6 @@ "@pika/plugin-bundle-web": "^0.8.1", "@pika/plugin-ts-standard-pkg": "^0.8.1", "eslint": "^6.7.1", - "typescript": "^3.7.2" + "typescript": "^3.8.3" } } diff --git a/core/tsconfig.json b/core/tsconfig.json index eb5f665..6b142a5 100644 --- a/core/tsconfig.json +++ b/core/tsconfig.json @@ -6,6 +6,7 @@ "es2019" ], + "isolatedModules": true, "strict": true, "noUnusedLocals": true, diff --git a/core/yarn.lock b/core/yarn.lock index 4144108..c1cc80c 100644 --- a/core/yarn.lock +++ b/core/yarn.lock @@ -3577,10 +3577,10 @@ type-fest@^0.8.1: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== -typescript@^3.7.2: - version "3.7.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" - integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== +typescript@^3.8.3: + version "3.8.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061" + integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== unicode-canonical-property-names-ecmascript@^1.0.4: version "1.0.4" diff --git a/package.json b/package.json index c0d5a53..1cddbee 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,6 @@ "shelljs": "^0.8.3", "ts-morph": "^4.0.1", "ts-node": "^8.5.2", - "typescript": "^3.7.2" + "typescript": "^3.8.3" } }