diff options
author | 2023-03-20 20:12:59 +0100 | |
---|---|---|
committer | 2023-03-20 16:12:59 -0300 | |
commit | 28373452503bc6ca88221ffd39a5590e015e4d71 (patch) | |
tree | 36fb3a663f37b9f581850346d07c27ce5eec4dde | |
parent | 00838b9856346fa7606445b5ccaf8ff77d012ec8 (diff) | |
download | astro-28373452503bc6ca88221ffd39a5590e015e4d71.tar.gz astro-28373452503bc6ca88221ffd39a5590e015e4d71.tar.zst astro-28373452503bc6ca88221ffd39a5590e015e4d71.zip |
fix(tsconfig): Update tsconfig templates to ignore 5.0 deprecations (#6605)
Diffstat (limited to '')
-rw-r--r-- | .changeset/tiny-worms-joke.md | 5 | ||||
-rw-r--r-- | packages/astro/tsconfigs/base.json | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/.changeset/tiny-worms-joke.md b/.changeset/tiny-worms-joke.md new file mode 100644 index 000000000..a298b2ade --- /dev/null +++ b/.changeset/tiny-worms-joke.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Update tsconfig.json templates to ignore TypeScript 5.0 deprecations for the moment diff --git a/packages/astro/tsconfigs/base.json b/packages/astro/tsconfigs/base.json index a497db3bf..41ee2e9d4 100644 --- a/packages/astro/tsconfigs/base.json +++ b/packages/astro/tsconfigs/base.json @@ -22,6 +22,9 @@ "baseUrl": ".", "paths": { "~/assets/*": ["src/assets/*"] - } + }, + // TypeScript 5.0 changed how `isolatedModules` and `importsNotUsedAsValues` works, deprecating the later + // Until the majority of users are on TypeScript 5.0, we'll have to supress those deprecation errors + "ignoreDeprecations": "5.0" } } |