create-astro 0.15.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +10 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -293,14 +293,16 @@ ${bold(
293
293
  if (args.dryRun) {
294
294
  ora().info(dim(`--dry-run enabled, skipping.`));
295
295
  } else if (tsResponse.typescript) {
296
- fs.copyFileSync(
297
- path.join(
298
- url.fileURLToPath(new URL("..", import.meta.url)),
299
- "tsconfigs",
300
- `tsconfig.${tsResponse.typescript}.json`
301
- ),
302
- path.join(cwd, "tsconfig.json")
303
- );
296
+ if (tsResponse.typescript !== "default") {
297
+ fs.copyFileSync(
298
+ path.join(
299
+ url.fileURLToPath(new URL("..", import.meta.url)),
300
+ "tsconfigs",
301
+ `tsconfig.${tsResponse.typescript}.json`
302
+ ),
303
+ path.join(cwd, "tsconfig.json")
304
+ );
305
+ }
304
306
  ora().succeed("TypeScript settings applied!");
305
307
  }
306
308
  ora().succeed("Setup complete.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",