@hitch42/cli 0.1.1-beta.7 → 0.1.1-beta.8

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.
Files changed (2) hide show
  1. package/dist/hitch.js +4 -1
  2. package/package.json +1 -1
package/dist/hitch.js CHANGED
@@ -416,9 +416,12 @@ function readWorkspaceConfig(dir) {
416
416
  }
417
417
  const config = module !== null && typeof module === "object" && "default" in module ? module.default : module;
418
418
  if (config === null || typeof config !== "object" || !("sdk" in config) || typeof config.sdk !== "string" || config.sdk.length === 0 || !("org" in config) || typeof config.org !== "string" || !ORG_CODE_PATTERN.test(config.org)) throw new Error(`Invalid Hitch config in ${path}: "sdk" must be a package spec and "org" an organization code.`);
419
+ const githubWorkflow = "githubWorkflow" in config ? config.githubWorkflow : void 0;
420
+ if (githubWorkflow !== void 0 && typeof githubWorkflow !== "boolean") throw new Error(`Invalid Hitch config in ${path}: "githubWorkflow" must be a boolean.`);
419
421
  return {
420
422
  sdk: config.sdk,
421
- org: config.org
423
+ org: config.org,
424
+ githubWorkflow
422
425
  };
423
426
  }
424
427
  function findWorkspaceConfig(cwd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitch42/cli",
3
- "version": "0.1.1-beta.7",
3
+ "version": "0.1.1-beta.8",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "hitch": "./dist/hitch.js"