@animus-ui/cli 0.1.26 → 0.1.28

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":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,iBAAiB,EAKlB,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAC/C,qBAAa,YAAa,SAAQ,KAAK;CAAG;AAC1C,qBAAa,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,eAAO,MAAM,GAAG,aAAc,OAAO,EAAE,KAAG,IACL,CAAC;AAEtC,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;qCACqC;AACrC,wBAAsB,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB3E;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,iBAAiB,CAgC7E;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,iBAAiB,GACzB,cAAc,CA+DhB;AAqBD,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,iBAAiB,GAAG,IAAI,EAC1C,WAAW,EAAE,MAAM,IAAI,GACtB,MAAM,IAAI,CAOZ;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,iBAAiB,GACzB,IAAI,CAUN;AAED,MAAM,WAAW,UAAU;IACzB,iDAAiD;IACjD,GAAG,CAA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IACjD,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAgBD,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,iBAAiB,EACzB,KAAK,GAAE,UAAe,GACrB,OAAO,CAAC,WAAW,CAAC,CAwDtB"}
package/dist/config.d.ts CHANGED
@@ -50,6 +50,8 @@ export declare function projectResolvedConfig(config: ResolvedCliConfig): {
50
50
  layers: string[] | null;
51
51
  extensions: string[] | null;
52
52
  staticCss: StaticCssConfig | null;
53
+ runtimeImport: string | null;
54
+ closedDynamicImports: import("@animus-ui/extract/pipeline").ClosedDynamicImport[] | null;
53
55
  exclude: readonly string[];
54
56
  provenance: Record<string, OptionProvenance>;
55
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,eAAe,EAEf,gBAAgB,EAEhB,eAAe,EAChB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,gBAAgB,YAC3B,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,CACV,CAAC;AAEX,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,aAAa,GAAG,YAAY,GAAG,KA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O;IACP,OAAO;IACP,MAAM;IACN,MAAM;IACN,oBAAoB;IACpB,MAAM;IACN,UAAU;IACV,SAAS;IACT,aAAa;IACb,oBAAoB;IACpB,OAAO;IACP,UAAU;EAEb"}
package/dist/index.cjs CHANGED
@@ -264,6 +264,7 @@ async function runPreflight(config) {
264
264
  function createCliSession(config) {
265
265
  const { root, outDir, options } = config;
266
266
  const session = new _animus_ui_extract_session.ExtractionSession(options, { noBundler: true });
267
+ if (config.configFile !== null) session.buildConfigFiles = [config.configFile];
267
268
  const relOut = (0, path.relative)(root, outDir);
268
269
  if (relOut === "") throw new UsageFailure(`The artifact directory is the root itself (${outDir}) — the published ${STYLES_FILE}/${SYSTEM_PROPS_FILE}/${MANIFEST_FILE} would be re-ingested as source on the next run. Pass --out-dir with a subdirectory (the default is ${_animus_ui_extract_session.ANIMUS_ARTIFACT_DIR}) or point --root at the source tree.`);
269
270
  const outputDir = (0, _animus_ui_extract_pipeline.outputExclusion)(root, outDir);
@@ -470,6 +471,8 @@ function parseLoadedCliConfig(raw) {
470
471
  minify: isConfigBoolean(raw.minify) ? raw.minify : void 0,
471
472
  staticCss: configStaticCss(raw.staticCss),
472
473
  layers: isConfigStringArray(raw.layers) ? raw.layers : void 0,
474
+ runtimeImport: isConfigString(raw.runtimeImport) ? raw.runtimeImport : void 0,
475
+ closedDynamicImports: Array.isArray(raw.closedDynamicImports) ? raw.closedDynamicImports : void 0,
473
476
  mode: raw.mode === "development" || raw.mode === "production" ? raw.mode : void 0
474
477
  },
475
478
  cli: { outDir: cli.outDir }
@@ -562,6 +565,8 @@ async function resolveCliConfig(flags, cwd) {
562
565
  minify: pick("minify", void 0),
563
566
  staticCss: pick("staticCss", void 0),
564
567
  layers: pick("layers", void 0),
568
+ runtimeImport: pick("runtimeImport", void 0),
569
+ closedDynamicImports: pick("closedDynamicImports", void 0),
565
570
  mode: resolvedMode.mode
566
571
  };
567
572
  const excludePatterns = (0, _animus_ui_extract_pipeline.createExcludeMatcher)(options.exclude).patterns;
@@ -601,6 +606,8 @@ function projectResolvedConfig(config) {
601
606
  layers: config.options.layers ?? null,
602
607
  extensions: config.options.extensions ?? null,
603
608
  staticCss: config.options.staticCss ?? null,
609
+ runtimeImport: config.options.runtimeImport ?? null,
610
+ closedDynamicImports: config.options.closedDynamicImports ?? null,
604
611
  exclude: config.excludePatterns,
605
612
  provenance: config.provenance
606
613
  };
package/dist/index.mjs CHANGED
@@ -263,6 +263,7 @@ async function runPreflight(config) {
263
263
  function createCliSession(config) {
264
264
  const { root, outDir, options } = config;
265
265
  const session = new ExtractionSession(options, { noBundler: true });
266
+ if (config.configFile !== null) session.buildConfigFiles = [config.configFile];
266
267
  const relOut = relative(root, outDir);
267
268
  if (relOut === "") throw new UsageFailure(`The artifact directory is the root itself (${outDir}) — the published ${STYLES_FILE}/${SYSTEM_PROPS_FILE}/${MANIFEST_FILE} would be re-ingested as source on the next run. Pass --out-dir with a subdirectory (the default is ${ANIMUS_ARTIFACT_DIR}) or point --root at the source tree.`);
268
269
  const outputDir = outputExclusion(root, outDir);
@@ -469,6 +470,8 @@ function parseLoadedCliConfig(raw) {
469
470
  minify: isConfigBoolean(raw.minify) ? raw.minify : void 0,
470
471
  staticCss: configStaticCss(raw.staticCss),
471
472
  layers: isConfigStringArray(raw.layers) ? raw.layers : void 0,
473
+ runtimeImport: isConfigString(raw.runtimeImport) ? raw.runtimeImport : void 0,
474
+ closedDynamicImports: Array.isArray(raw.closedDynamicImports) ? raw.closedDynamicImports : void 0,
472
475
  mode: raw.mode === "development" || raw.mode === "production" ? raw.mode : void 0
473
476
  },
474
477
  cli: { outDir: cli.outDir }
@@ -561,6 +564,8 @@ async function resolveCliConfig(flags, cwd) {
561
564
  minify: pick("minify", void 0),
562
565
  staticCss: pick("staticCss", void 0),
563
566
  layers: pick("layers", void 0),
567
+ runtimeImport: pick("runtimeImport", void 0),
568
+ closedDynamicImports: pick("closedDynamicImports", void 0),
564
569
  mode: resolvedMode.mode
565
570
  };
566
571
  const excludePatterns = createExcludeMatcher(options.exclude).patterns;
@@ -600,6 +605,8 @@ function projectResolvedConfig(config) {
600
605
  layers: config.options.layers ?? null,
601
606
  extensions: config.options.extensions ?? null,
602
607
  staticCss: config.options.staticCss ?? null,
608
+ runtimeImport: config.options.runtimeImport ?? null,
609
+ closedDynamicImports: config.options.closedDynamicImports ?? null,
603
610
  exclude: config.excludePatterns,
604
611
  provenance: config.provenance
605
612
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animus-ui/cli",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
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": "tsc --noEmit"
42
42
  },
43
43
  "dependencies": {
44
- "@animus-ui/extract": "0.1.26"
44
+ "@animus-ui/extract": "0.1.28"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=22.12.0"