@venizia/ignis-boot 0.2.0-33 → 0.2.0-35

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,3 +1,3 @@
1
- export * from './constants';
2
- export * from './types';
1
+ export * from './constants.js';
2
+ export * from './types.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './types';
1
+ export * from './constants.js';
2
+ export * from './types.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import type { TBuildInfoRecord } from '@venizia/ignis-helpers/core';
2
- import type { TBuildInfoFormat } from './constants';
2
+ import type { TBuildInfoFormat } from './constants.js';
3
3
  export interface IBuildInfoOptions {
4
4
  out: string;
5
5
  /** Where `package.json` is read from and where `git` is asked; default the cwd. */
@@ -1,5 +1,5 @@
1
1
  import type { TBuildInfoRecord } from '@venizia/ignis-helpers/core';
2
- import { type TBuildInfoFormat } from './common';
2
+ import { type TBuildInfoFormat } from './common/index.js';
3
3
  /** Renders the stamp: a static `ts` const a bundler bakes in, or the same record as `json` for a Vite app or a Tauri shell. */
4
4
  export declare class BuildInfoEmitter {
5
5
  static readonly DEFAULT_EXPORT_NAME = "BUILD_INFO";
@@ -1,4 +1,4 @@
1
- import { BuildInfoFormats } from './common';
1
+ import { BuildInfoFormats } from './common/index.js';
2
2
  /** Renders the stamp: a static `ts` const a bundler bakes in, or the same record as `json` for a Vite app or a Tauri shell. */
3
3
  export class BuildInfoEmitter {
4
4
  static { this.DEFAULT_EXPORT_NAME = 'BUILD_INFO'; }
@@ -1,10 +1,10 @@
1
- import { type IBuildInfoOptions, type IBuildInfoResult } from './common';
1
+ import { type IBuildInfoOptions, type IBuildInfoResult } from './common/index.js';
2
2
  /**
3
3
  * Writes the stamp. Unlike the artifact index this ALWAYS writes: `builtAt` changes every run, so
4
4
  * an unchanged-content short-circuit would be dead code that hides a stale timestamp.
5
5
  */
6
6
  export declare const generateBuildInfo: (opts: IBuildInfoOptions) => Promise<IBuildInfoResult>;
7
- export * from './common';
8
- export * from './emitter';
9
- export * from './resolver';
7
+ export * from './common/index.js';
8
+ export * from './emitter.js';
9
+ export * from './resolver.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { mkdirSync, writeFileSync } from 'node:fs';
2
2
  import { dirname, resolve } from 'node:path';
3
- import { BuildInfoFormats } from './common';
4
- import { BuildInfoEmitter } from './emitter';
5
- import { BuildInfoResolver } from './resolver';
3
+ import { BuildInfoFormats } from './common/index.js';
4
+ import { BuildInfoEmitter } from './emitter.js';
5
+ import { BuildInfoResolver } from './resolver.js';
6
6
  /**
7
7
  * Writes the stamp. Unlike the artifact index this ALWAYS writes: `builtAt` changes every run, so
8
8
  * an unchanged-content short-circuit would be dead code that hides a stale timestamp.
@@ -19,7 +19,7 @@ export const generateBuildInfo = async (opts) => {
19
19
  writeFileSync(out, content);
20
20
  return { buildInfo, content, out };
21
21
  };
22
- export * from './common';
23
- export * from './emitter';
24
- export * from './resolver';
22
+ export * from './common/index.js';
23
+ export * from './emitter.js';
24
+ export * from './resolver.js';
25
25
  //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { BaseHelper } from '@venizia/ignis-helpers';
2
2
  import { BuildInfoRegistry } from '@venizia/ignis-helpers/core';
3
3
  import { existsSync, readFileSync } from 'node:fs';
4
4
  import { resolve } from 'node:path';
5
- import { BuildInfoEnvironmentKeys } from './common';
5
+ import { BuildInfoEnvironmentKeys } from './common/index.js';
6
6
  /** Length of a short SHA; an env value already shorter is left alone. */
7
7
  const COMMIT_LENGTH = 12;
8
8
  /**
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env bun
2
- import '../common/install-quiet-logger';
2
+ import '../common/install-quiet-logger.js';
3
3
  //# sourceMappingURL=artifacts.d.ts.map
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env bun
2
- import '../common/install-quiet-logger';
2
+ import '../common/install-quiet-logger.js';
3
3
  import { relative } from 'node:path';
4
4
  import { parseArgs } from 'node:util';
5
- import { checkArtifactIndex, generateArtifactIndex } from '../generator';
5
+ import { checkArtifactIndex, generateArtifactIndex } from '../generator/index.js';
6
6
  const USAGE = 'ignis-artifacts <generate|check> [--root src] [--out src/generated/artifacts.ts] [--ignore a,b] [--export GeneratedArtifacts]';
7
7
  const { positionals, values } = parseArgs({
8
8
  args: process.argv.slice(2),
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env bun
2
- import '../common/install-quiet-logger';
2
+ import '../common/install-quiet-logger.js';
3
3
  //# sourceMappingURL=build-info.d.ts.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
- import '../common/install-quiet-logger';
2
+ import '../common/install-quiet-logger.js';
3
3
  import { parseArgs } from 'node:util';
4
- import { BuildInfoEmitter, BuildInfoFormats, generateBuildInfo } from '../build-info';
4
+ import { BuildInfoEmitter, BuildInfoFormats, generateBuildInfo } from '../build-info/index.js';
5
5
  const USAGE = 'ignis-build-info generate [--out src/_build_info.ts] [--root .] [--format ts|json] [--export BUILD_INFO]';
6
6
  const { positionals, values } = parseArgs({
7
7
  args: process.argv.slice(2),
@@ -1,5 +1,5 @@
1
1
  import { LoggerFactory } from '@venizia/ignis-helpers';
2
- import { QuietLogger } from './quiet-logger';
2
+ import { QuietLogger } from './quiet-logger.js';
3
3
  // Imported first by the CLI: a provider registered after another module resolved its logger would still see the console fallback and its warning.
4
4
  LoggerFactory.use({ provider: QuietLogger });
5
5
  //# sourceMappingURL=install-quiet-logger.js.map
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './types';
1
+ export * from './constants.js';
2
+ export * from './types.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './types';
1
+ export * from './constants.js';
2
+ export * from './types.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { TArtifactType } from './constants';
1
+ import type { TArtifactType } from './constants.js';
2
2
  export interface IScannedArtifact {
3
3
  className: string;
4
4
  /** Absolute path of the declaring file. */
@@ -1,4 +1,4 @@
1
- import { type IScannedArtifact } from './common';
1
+ import { type IScannedArtifact } from './common/index.js';
2
2
  /** Renders the generated index: deterministic text, plain static imports, no IGNIS import - the object is type-checked where `registerArtifacts` receives it. */
3
3
  export declare class ArtifactIndexEmitter {
4
4
  /** Mirrors `printWidth` in @venizia/dev-configs prettier settings. */
@@ -1,5 +1,5 @@
1
1
  import { dirname, relative, sep } from 'node:path';
2
- import { ArtifactStereotypes, ArtifactTypes } from './common';
2
+ import { ArtifactStereotypes, ArtifactTypes } from './common/index.js';
3
3
  /** Renders the generated index: deterministic text, plain static imports, no IGNIS import - the object is type-checked where `registerArtifacts` receives it. */
4
4
  export class ArtifactIndexEmitter {
5
5
  /** Mirrors `printWidth` in @venizia/dev-configs prettier settings. */
@@ -1,4 +1,4 @@
1
- import type { IScanReport, IScannedArtifact } from './common';
1
+ import type { IScanReport, IScannedArtifact } from './common/index.js';
2
2
  export interface IGenerateOptions {
3
3
  root: string;
4
4
  out: string;
@@ -18,7 +18,7 @@ export declare const checkArtifactIndex: (opts: IGenerateOptions) => {
18
18
  actual: string | undefined;
19
19
  ignored: IScannedArtifact[];
20
20
  };
21
- export * from './common';
22
- export * from './emitter';
23
- export * from './scanner';
21
+ export * from './common/index.js';
22
+ export * from './emitter.js';
23
+ export * from './scanner.js';
24
24
  //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { dirname, resolve } from 'node:path';
3
- import { ArtifactIndexEmitter } from './emitter';
4
- import { ArtifactScanner } from './scanner';
3
+ import { ArtifactIndexEmitter } from './emitter.js';
4
+ import { ArtifactScanner } from './scanner.js';
5
5
  const render = (opts) => {
6
6
  const { artifacts, ignored } = ArtifactScanner.getInstance().scanWithReport({
7
7
  root: opts.root,
@@ -37,7 +37,7 @@ export const checkArtifactIndex = (opts) => {
37
37
  const isFresh = actual !== undefined && bodyOf(actual) === bodyOf(expected);
38
38
  return { isFresh, expected, actual, ignored };
39
39
  };
40
- export * from './common';
41
- export * from './emitter';
42
- export * from './scanner';
40
+ export * from './common/index.js';
41
+ export * from './emitter.js';
42
+ export * from './scanner.js';
43
43
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { BaseHelper } from '@venizia/ignis-helpers';
2
- import { type IScanOptions, type IScanReport, type IScannedArtifact } from './common';
2
+ import { type IScanOptions, type IScanReport, type IScannedArtifact } from './common/index.js';
3
3
  /** Finds exported classes carrying a stereotype decorator by reading the source, never by running it. */
4
4
  export declare class ArtifactScanner extends BaseHelper {
5
5
  private static instance?;
@@ -2,7 +2,7 @@ import { BaseHelper, getError } from '@venizia/ignis-helpers';
2
2
  import { readFileSync } from 'node:fs';
3
3
  import { join, resolve } from 'node:path';
4
4
  import ts from 'typescript';
5
- import { ArtifactStereotypes, ArtifactTypes, } from './common';
5
+ import { ArtifactStereotypes, ArtifactTypes, } from './common/index.js';
6
6
  /** Finds exported classes carrying a stereotype decorator by reading the source, never by running it. */
7
7
  export class ArtifactScanner extends BaseHelper {
8
8
  constructor() {
@@ -1,3 +1,3 @@
1
- export * from './build-info';
2
- export * from './generator';
1
+ export * from './build-info/index.js';
2
+ export * from './generator/index.js';
3
3
  //# sourceMappingURL=index.d.ts.map
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './build-info';
2
- export * from './generator';
1
+ export * from './build-info/index.js';
2
+ export * from './generator/index.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": false
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venizia/ignis-boot",
3
- "version": "0.2.0-33",
3
+ "version": "0.2.0-35",
4
4
  "description": "Build-time artifact index generator for IGNIS applications: scans decorated classes with the TypeScript AST and emits one static registration file per package, so bun build --compile sees plain imports.",
5
5
  "keywords": [
6
6
  "artifact-index",
@@ -84,7 +84,7 @@
84
84
  "test:watch": "NODE_ENV=test bun test --watch --env-file=.env.test"
85
85
  },
86
86
  "dependencies": {
87
- "@venizia/ignis-helpers": "^0.2.0-38"
87
+ "@venizia/ignis-helpers": "^0.2.0-40"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@types/bun": "^1.4.1",