@atomicsmash/cli 9.0.0-beta.6 → 9.0.0-beta.7
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/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +2 -1
- package/dist/utils.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,QAAQ,kDAAkD,CAAC;AACxE,wBAAsB,OAAO,
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,QAAQ,kDAAkD,CAAC;AACxE,wBAAsB,OAAO,kBAkM5B"}
|
package/dist/commands/setup.js
CHANGED
|
@@ -44,7 +44,8 @@ export async function handler() {
|
|
|
44
44
|
throw new Error("Failed to copy .env file.");
|
|
45
45
|
}),
|
|
46
46
|
(async () => {
|
|
47
|
-
if (existsSync(resolve(process.cwd(), "herd.
|
|
47
|
+
if ((existsSync(resolve(process.cwd(), "herd.yaml")) ||
|
|
48
|
+
existsSync(resolve(process.cwd(), "herd.yml"))) &&
|
|
48
49
|
(await execute(`herd --version`)
|
|
49
50
|
.then(() => true)
|
|
50
51
|
.catch(() => false))) {
|
package/dist/utils.js
CHANGED
|
@@ -169,8 +169,8 @@ export async function getSmashConfig() {
|
|
|
169
169
|
function isValidSmashConfig(config) {
|
|
170
170
|
return (typeof config === "object" &&
|
|
171
171
|
config !== null &&
|
|
172
|
-
"
|
|
173
|
-
typeof config.
|
|
172
|
+
"projectName" in config &&
|
|
173
|
+
typeof config.projectName === "string" &&
|
|
174
174
|
"themePath" in config &&
|
|
175
175
|
typeof config.themePath === "string");
|
|
176
176
|
}
|