@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.
@@ -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,kBAiM5B"}
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"}
@@ -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.yml")) &&
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
- "themeName" in config &&
173
- typeof config.themeName === "string" &&
172
+ "projectName" in config &&
173
+ typeof config.projectName === "string" &&
174
174
  "themePath" in config &&
175
175
  typeof config.themePath === "string");
176
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicsmash/cli",
3
- "version": "9.0.0-beta.6",
3
+ "version": "9.0.0-beta.7",
4
4
  "description": "A collection of CLI tools by Atomic Smash.",
5
5
  "keywords": [],
6
6
  "homepage": "https://www.atomicsmash.co.uk/",