create-astro 1.2.2 → 1.2.4
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 +4 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import fs from "fs";
|
|
|
6
6
|
import { downloadTemplate } from "giget";
|
|
7
7
|
import { bold, dim, green, reset, yellow } from "kleur/colors";
|
|
8
8
|
import ora from "ora";
|
|
9
|
+
import { platform } from "os";
|
|
9
10
|
import path from "path";
|
|
10
11
|
import prompts from "prompts";
|
|
11
12
|
import detectPackageManager from "which-pm-runs";
|
|
@@ -24,6 +25,8 @@ import {
|
|
|
24
25
|
import { TEMPLATES } from "./templates.js";
|
|
25
26
|
const cleanArgv = process.argv.filter((arg) => arg !== "--");
|
|
26
27
|
const args = yargs(cleanArgv, { boolean: ["fancy"] });
|
|
28
|
+
if (platform() === "win32")
|
|
29
|
+
args.skipHouston = true;
|
|
27
30
|
prompts.override(args);
|
|
28
31
|
if (args.fancy) {
|
|
29
32
|
forceUnicode();
|
|
@@ -139,7 +142,7 @@ async function main() {
|
|
|
139
142
|
],
|
|
140
143
|
{ onCancel: () => ora().info(dim("Operation cancelled. See you later, astronaut!")) }
|
|
141
144
|
);
|
|
142
|
-
if (!options.template) {
|
|
145
|
+
if (!options.template || options.template === true) {
|
|
143
146
|
ora().info(dim("No template provided. See you later, astronaut!"));
|
|
144
147
|
process.exit(1);
|
|
145
148
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astro",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"tsconfigs"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@astrojs/cli-kit": "^0.1.
|
|
26
|
+
"@astrojs/cli-kit": "^0.1.6",
|
|
27
27
|
"chalk": "^5.0.1",
|
|
28
28
|
"comment-json": "^4.2.3",
|
|
29
29
|
"execa": "^6.1.0",
|
|
30
|
-
"giget": "^0.
|
|
30
|
+
"giget": "^1.0.0",
|
|
31
31
|
"kleur": "^4.1.4",
|
|
32
32
|
"ora": "^6.1.0",
|
|
33
33
|
"prompts": "^2.4.2",
|