create-astrale-domain 0.2.9 → 0.2.11
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 +1 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1073,20 +1073,11 @@ async function main() {
|
|
|
1073
1073
|
xe(`The "${adapter}" adapter is not available yet \u2014 use "astrale" or "cloudflare".`);
|
|
1074
1074
|
return 1;
|
|
1075
1075
|
}
|
|
1076
|
-
|
|
1076
|
+
const instance = flags.instance;
|
|
1077
1077
|
if (instance !== void 0 && !isValidSlug(instance)) {
|
|
1078
1078
|
xe(`Invalid --instance "${instance}". Use lowercase letters, digits, dots and dashes.`);
|
|
1079
1079
|
return 1;
|
|
1080
1080
|
}
|
|
1081
|
-
if (adapter === "astrale" && !instance && !headless) {
|
|
1082
|
-
const answer = await he({
|
|
1083
|
-
message: "Target instance slug (`astrale instance create <slug>` \u2014 empty to set it later)",
|
|
1084
|
-
placeholder: "my-app",
|
|
1085
|
-
validate: (v2) => !v2 || isValidSlug(v2) ? void 0 : "Use lowercase letters, digits, dots and dashes."
|
|
1086
|
-
});
|
|
1087
|
-
if (pD(answer)) return bail();
|
|
1088
|
-
if (answer) instance = answer;
|
|
1089
|
-
}
|
|
1090
1081
|
let pm = flags.pm;
|
|
1091
1082
|
if (!pm) {
|
|
1092
1083
|
const detected = detectPm();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astrale-domain",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "Scaffold a standalone Astrale domain — npm create astrale-domain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@clack/prompts": "^0.11.0",
|
|
22
22
|
"@astrale-os/adapter-astrale": "^0.4.1",
|
|
23
|
-
"@astrale-os/adapter-cloudflare": "^0.4.
|
|
23
|
+
"@astrale-os/adapter-cloudflare": "^0.4.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@astrale-os/ox": ">=0.1.0 <1.0.0",
|