@animus-ui/cli 0.1.46 → 0.1.48

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/index.cjs +15 -15
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -367,9 +367,9 @@ function reportDiscoveryOutcomes(config, session) {
367
367
  * build published. */
368
368
  function writeKitDescriptor(root, key) {
369
369
  const manifest = JSON.parse((0, _animus_ui_extract_session.getManifestJson)(key) ?? "");
370
- const path$3 = (0, path.join)(root, _animus_ui_extract_pipeline.KIT_DESCRIPTOR_FILE);
371
- (0, fs.writeFileSync)(path$3, `${JSON.stringify((0, _animus_ui_extract_pipeline.buildKitDescriptor)(manifest), null, 2)}\n`);
372
- return path$3;
370
+ const path$2 = (0, path.join)(root, _animus_ui_extract_pipeline.KIT_DESCRIPTOR_FILE);
371
+ (0, fs.writeFileSync)(path$2, `${JSON.stringify((0, _animus_ui_extract_pipeline.buildKitDescriptor)(manifest), null, 2)}\n`);
372
+ return path$2;
373
373
  }
374
374
  async function runBuild(config, flags = {}) {
375
375
  const { outDir } = config;
@@ -397,12 +397,12 @@ async function runBuild(config, flags = {}) {
397
397
  throw new ExtractionFailure(String(error));
398
398
  }
399
399
  if (flags.propOrderOnly) {
400
- const path$2 = (0, _animus_ui_extract_session.propOrderPath)(config.root);
401
- if (session.propOrderWrittenTo !== path$2) throw new ExtractionFailure(`Analysis wrote no prop-order file at ${path$2}`);
400
+ const path$1 = (0, _animus_ui_extract_session.propOrderPath)(config.root);
401
+ if (session.propOrderWrittenTo !== path$1) throw new ExtractionFailure(`Analysis wrote no prop-order file at ${path$1}`);
402
402
  reportDiscoveryOutcomes(config, session);
403
- err(`prop order → ${path$2}`);
403
+ err(`prop order → ${path$1}`);
404
404
  return {
405
- outDir: (0, path.dirname)(path$2),
405
+ outDir: (0, path.dirname)(path$1),
406
406
  componentCount: session.lastComponentCount ?? 0,
407
407
  fileCount: (0, _animus_ui_extract_session.getAnalyzedHashes)(session.key)?.size ?? 0
408
408
  };
@@ -519,20 +519,20 @@ function parseLoadedCliConfig(raw) {
519
519
  cli: { outDir: cli.outDir }
520
520
  };
521
521
  }
522
- async function loadConfigFile(path$1) {
523
- if (path$1.endsWith(".json")) try {
524
- return configObject(JSON.parse((0, fs.readFileSync)(path$1, "utf-8")), `${path$1} must contain a config object`);
522
+ async function loadConfigFile(path) {
523
+ if (path.endsWith(".json")) try {
524
+ return configObject(JSON.parse((0, fs.readFileSync)(path, "utf-8")), `${path} must contain a config object`);
525
525
  } catch (error) {
526
- throw new _animus_ui_extract_pipeline.AnimusConfigError(`Failed to parse ${path$1}: ${String(error)}`);
526
+ throw new _animus_ui_extract_pipeline.AnimusConfigError(`Failed to parse ${path}: ${String(error)}`);
527
527
  }
528
528
  try {
529
- const mod = configObject(await import((0, url.pathToFileURL)(path$1).href), `${path$1} must evaluate to a module object`);
530
- return configObject(mod.default ?? mod, `${path$1} must default-export a config object`);
529
+ const mod = configObject(await import((0, url.pathToFileURL)(path).href), `${path} must evaluate to a module object`);
530
+ return configObject(mod.default ?? mod, `${path} must default-export a config object`);
531
531
  } catch (error) {
532
532
  if (error instanceof _animus_ui_extract_pipeline.AnimusConfigError) throw error;
533
533
  const code = isConfigRecord(error) && isConfigString(error.code) ? error.code : void 0;
534
- if (path$1.endsWith(".ts") && code === "ERR_UNKNOWN_FILE_EXTENSION") throw new _animus_ui_extract_pipeline.AnimusConfigError(`${path$1}: this Node runtime cannot evaluate TypeScript config files (native type stripping requires Node >= 23.6 unflagged; the supported floor for .ts configs). Use animus.config.mjs or animus.config.json instead.`);
535
- throw new _animus_ui_extract_pipeline.AnimusConfigError(`Failed to load config ${path$1}: ${String(error)}`);
534
+ if (path.endsWith(".ts") && code === "ERR_UNKNOWN_FILE_EXTENSION") throw new _animus_ui_extract_pipeline.AnimusConfigError(`${path}: this Node runtime cannot evaluate TypeScript config files (native type stripping requires Node >= 23.6 unflagged; the supported floor for .ts configs). Use animus.config.mjs or animus.config.json instead.`);
535
+ throw new _animus_ui_extract_pipeline.AnimusConfigError(`Failed to load config ${path}: ${String(error)}`);
536
536
  }
537
537
  }
538
538
  async function resolveCliConfig(flags, cwd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animus-ui/cli",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "description": "Standalone Animus extraction CLI — one-shot builds and artifact emission for any build system",
5
5
  "keywords": [
6
6
  "animus",
@@ -41,7 +41,7 @@
41
41
  "compile": "bun check"
42
42
  },
43
43
  "dependencies": {
44
- "@animus-ui/extract": "0.1.46"
44
+ "@animus-ui/extract": "0.1.48"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=22.12.0"