diff options
author | 2022-08-06 10:04:39 -0400 | |
---|---|---|
committer | 2022-08-06 07:04:39 -0700 | |
commit | 77c018e5159e9084304ca650487b6e99c828d3cf (patch) | |
tree | 7bd79ad7baab04a12710a47e4ef8c8b13fb926f2 /packages/create-astro/src | |
parent | 4e4061f485fb25890c286fcea0158b439ae4045d (diff) | |
download | astro-77c018e5159e9084304ca650487b6e99c828d3cf.tar.gz astro-77c018e5159e9084304ca650487b6e99c828d3cf.tar.zst astro-77c018e5159e9084304ca650487b6e99c828d3cf.zip |
Fix relaxed and default TypeScript settings not working (#4183)
* Fix relaxed and default TypeScript settings not working
* Create itchy-hats-exist.md
Diffstat (limited to 'packages/create-astro/src')
-rw-r--r-- | packages/create-astro/src/index.ts | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index 4f026e997..c3d86912f 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -343,14 +343,16 @@ export async function main() { if (args.dryRun) { ora().info(dim(`--dry-run enabled, skipping.`)); } else if (tsResponse.typescript) { - fs.copyFileSync( - path.join( - url.fileURLToPath(new URL('..', import.meta.url)), - 'tsconfigs', - `tsconfig.${tsResponse.typescript}.json` - ), - path.join(cwd, 'tsconfig.json') - ); + if (tsResponse.typescript !== 'default') { + fs.copyFileSync( + path.join( + url.fileURLToPath(new URL('..', import.meta.url)), + 'tsconfigs', + `tsconfig.${tsResponse.typescript}.json` + ), + path.join(cwd, 'tsconfig.json') + ); + } ora().succeed('TypeScript settings applied!'); } |