@omniharmonic/openspace-cli 0.1.8 → 0.1.9

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/bin.js CHANGED
@@ -3,7 +3,7 @@ import { createRequire as __osCreateRequire } from "node:module"; const require
3
3
  import {
4
4
  processIo,
5
5
  run
6
- } from "./chunk-AWFH3B2N.js";
6
+ } from "./chunk-ZOCHSBTR.js";
7
7
  import "./chunk-TOGLFCCF.js";
8
8
  import "./chunk-KAJOS2YV.js";
9
9
  import "./chunk-26AZCID5.js";
@@ -44385,7 +44385,7 @@ async function writeImport(dir, result) {
44385
44385
  }
44386
44386
 
44387
44387
  // src/program.ts
44388
- import { Command, CommanderError } from "commander";
44388
+ import { Command, CommanderError, Option } from "commander";
44389
44389
 
44390
44390
  // src/agents.ts
44391
44391
  import { readFile as readFile5, writeFile as writeFile3 } from "fs/promises";
@@ -46348,6 +46348,8 @@ The site won't preview or build until you do.`);
46348
46348
  "--owner",
46349
46349
  "I own this site: also read Squarespace's ?format=json data (richer collections and SEO); robots.txt asks crawlers not to read it"
46350
46350
  );
46351
+ else
46352
+ c.addOption(new Option("--owner", "I own this site (no effect for this source)").hideHelp());
46351
46353
  if (kind === "github")
46352
46354
  c.option(
46353
46355
  "--source-dir <dir>",
@@ -46363,6 +46365,7 @@ The site won't preview or build until you do.`);
46363
46365
  "--render",
46364
46366
  "render pages in a browser first (Playwright) for sites built by JavaScript, e.g. some Wix and Framer sites"
46365
46367
  );
46368
+ else c.addOption(new Option("--render", "no effect for this source").hideHelp());
46366
46369
  if (kind === "auto")
46367
46370
  c.option(
46368
46371
  "--platform <name>",
@@ -46379,6 +46382,9 @@ The site won't preview or build until you do.`);
46379
46382
  };
46380
46383
  const runImportCommand = async (url, dir, opts, platform) => {
46381
46384
  assertGitHubPagesStart(opts.target);
46385
+ opts = { ...opts };
46386
+ if (platform !== "auto" && platform !== "squarespace") delete opts.owner;
46387
+ if (platform !== "auto" && platform !== "generic") delete opts.render;
46382
46388
  let chosen = platform;
46383
46389
  if (opts.platform) {
46384
46390
  const p = parsePlatform(opts.platform);
@@ -46519,4 +46525,4 @@ export {
46519
46525
  createProgram,
46520
46526
  run
46521
46527
  };
46522
- //# sourceMappingURL=chunk-AWFH3B2N.js.map
46528
+ //# sourceMappingURL=chunk-ZOCHSBTR.js.map