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.
- package/dist/index.js +10 -8
- 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
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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.");
|