@venizia/ignis-boot 0.3.1 → 0.3.3
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/README.md +23 -23
- package/dist/cjs/build-info/common/constants.d.ts +1 -8
- package/dist/cjs/build-info/common/constants.d.ts.map +1 -0
- package/dist/cjs/build-info/common/constants.js +1 -10
- package/dist/cjs/build-info/common/constants.js.map +1 -1
- package/dist/cjs/build-info/common/index.d.ts +1 -1
- package/dist/cjs/build-info/common/index.d.ts.map +1 -0
- package/dist/cjs/build-info/common/index.js +0 -1
- package/dist/cjs/build-info/common/index.js.map +1 -1
- package/dist/cjs/build-info/index.d.ts +2 -7
- package/dist/cjs/build-info/index.d.ts.map +1 -0
- package/dist/cjs/build-info/index.js +1 -24
- package/dist/cjs/build-info/index.js.map +1 -1
- package/dist/cjs/build-info/resolver.d.ts +1 -0
- package/dist/cjs/build-info/resolver.d.ts.map +1 -0
- package/dist/cjs/build-info/stamp.d.ts +22 -0
- package/dist/cjs/build-info/stamp.d.ts.map +1 -0
- package/dist/cjs/build-info/stamp.js +36 -0
- package/dist/cjs/build-info/stamp.js.map +1 -0
- package/dist/cjs/bun/auto-group.d.ts +1 -0
- package/dist/cjs/bun/auto-group.d.ts.map +1 -0
- package/dist/cjs/bun/auto-loader.d.ts +1 -0
- package/dist/cjs/bun/auto-loader.d.ts.map +1 -0
- package/dist/cjs/bun/auto.d.ts +1 -0
- package/dist/cjs/bun/auto.d.ts.map +1 -0
- package/dist/cjs/bun/group-resolver.d.ts +1 -0
- package/dist/cjs/bun/group-resolver.d.ts.map +1 -0
- package/dist/cjs/bun/index.d.ts +1 -0
- package/dist/cjs/bun/index.d.ts.map +1 -0
- package/dist/cjs/bun/plugin.d.ts +1 -0
- package/dist/cjs/bun/plugin.d.ts.map +1 -0
- package/dist/cjs/bun/scan-cache.d.ts +1 -0
- package/dist/cjs/bun/scan-cache.d.ts.map +1 -0
- package/dist/cjs/bun/sources.d.ts +1 -0
- package/dist/cjs/bun/sources.d.ts.map +1 -0
- package/dist/cjs/clis/artifacts.d.ts +1 -0
- package/dist/cjs/clis/artifacts.d.ts.map +1 -0
- package/dist/cjs/common/install-quiet-logger.d.ts +1 -0
- package/dist/cjs/common/install-quiet-logger.d.ts.map +1 -0
- package/dist/cjs/common/quiet-logger.d.ts +1 -0
- package/dist/cjs/common/quiet-logger.d.ts.map +1 -0
- package/dist/cjs/generator/common/constants.d.ts +1 -0
- package/dist/cjs/generator/common/constants.d.ts.map +1 -0
- package/dist/cjs/generator/common/index.d.ts +1 -0
- package/dist/cjs/generator/common/index.d.ts.map +1 -0
- package/dist/cjs/generator/common/types.d.ts +1 -0
- package/dist/cjs/generator/common/types.d.ts.map +1 -0
- package/dist/cjs/generator/emitter.d.ts +1 -0
- package/dist/cjs/generator/emitter.d.ts.map +1 -0
- package/dist/cjs/generator/index.d.ts +1 -0
- package/dist/cjs/generator/index.d.ts.map +1 -0
- package/dist/cjs/generator/reexport.d.ts +1 -0
- package/dist/cjs/generator/reexport.d.ts.map +1 -0
- package/dist/cjs/generator/scanner.d.ts +1 -0
- package/dist/cjs/generator/scanner.d.ts.map +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/vite/index.d.ts +1 -0
- package/dist/cjs/vite/index.d.ts.map +1 -0
- package/dist/cjs/vite/plugin.d.ts +1 -0
- package/dist/cjs/vite/plugin.d.ts.map +1 -0
- package/dist/esm/build-info/common/constants.d.ts +1 -8
- package/dist/esm/build-info/common/constants.d.ts.map +1 -0
- package/dist/esm/build-info/common/constants.js +0 -8
- package/dist/esm/build-info/common/constants.js.map +1 -1
- package/dist/esm/build-info/common/index.d.ts +1 -1
- package/dist/esm/build-info/common/index.d.ts.map +1 -0
- package/dist/esm/build-info/common/index.js +0 -1
- package/dist/esm/build-info/common/index.js.map +1 -1
- package/dist/esm/build-info/index.d.ts +2 -7
- package/dist/esm/build-info/index.d.ts.map +1 -0
- package/dist/esm/build-info/index.js +1 -22
- package/dist/esm/build-info/index.js.map +1 -1
- package/dist/esm/build-info/resolver.d.ts +1 -0
- package/dist/esm/build-info/resolver.d.ts.map +1 -0
- package/dist/esm/build-info/stamp.d.ts +22 -0
- package/dist/esm/build-info/stamp.d.ts.map +1 -0
- package/dist/esm/build-info/stamp.js +32 -0
- package/dist/esm/build-info/stamp.js.map +1 -0
- package/dist/esm/bun/auto-group.d.ts +1 -0
- package/dist/esm/bun/auto-group.d.ts.map +1 -0
- package/dist/esm/bun/auto-loader.d.ts +1 -0
- package/dist/esm/bun/auto-loader.d.ts.map +1 -0
- package/dist/esm/bun/auto.d.ts +1 -0
- package/dist/esm/bun/auto.d.ts.map +1 -0
- package/dist/esm/bun/group-resolver.d.ts +1 -0
- package/dist/esm/bun/group-resolver.d.ts.map +1 -0
- package/dist/esm/bun/index.d.ts +1 -0
- package/dist/esm/bun/index.d.ts.map +1 -0
- package/dist/esm/bun/plugin.d.ts +1 -0
- package/dist/esm/bun/plugin.d.ts.map +1 -0
- package/dist/esm/bun/scan-cache.d.ts +1 -0
- package/dist/esm/bun/scan-cache.d.ts.map +1 -0
- package/dist/esm/bun/sources.d.ts +1 -0
- package/dist/esm/bun/sources.d.ts.map +1 -0
- package/dist/esm/clis/artifacts.d.ts +1 -0
- package/dist/esm/clis/artifacts.d.ts.map +1 -0
- package/dist/esm/common/install-quiet-logger.d.ts +1 -0
- package/dist/esm/common/install-quiet-logger.d.ts.map +1 -0
- package/dist/esm/common/quiet-logger.d.ts +1 -0
- package/dist/esm/common/quiet-logger.d.ts.map +1 -0
- package/dist/esm/generator/common/constants.d.ts +1 -0
- package/dist/esm/generator/common/constants.d.ts.map +1 -0
- package/dist/esm/generator/common/index.d.ts +1 -0
- package/dist/esm/generator/common/index.d.ts.map +1 -0
- package/dist/esm/generator/common/types.d.ts +1 -0
- package/dist/esm/generator/common/types.d.ts.map +1 -0
- package/dist/esm/generator/emitter.d.ts +1 -0
- package/dist/esm/generator/emitter.d.ts.map +1 -0
- package/dist/esm/generator/index.d.ts +1 -0
- package/dist/esm/generator/index.d.ts.map +1 -0
- package/dist/esm/generator/reexport.d.ts +1 -0
- package/dist/esm/generator/reexport.d.ts.map +1 -0
- package/dist/esm/generator/scanner.d.ts +1 -0
- package/dist/esm/generator/scanner.d.ts.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/vite/index.d.ts +1 -0
- package/dist/esm/vite/index.d.ts.map +1 -0
- package/dist/esm/vite/plugin.d.ts +1 -0
- package/dist/esm/vite/plugin.d.ts.map +1 -0
- package/package.json +5 -6
- package/dist/cjs/build-info/common/types.d.ts +0 -15
- package/dist/cjs/build-info/common/types.js +0 -3
- package/dist/cjs/build-info/common/types.js.map +0 -1
- package/dist/cjs/build-info/emitter.d.ts +0 -11
- package/dist/cjs/build-info/emitter.js +0 -26
- package/dist/cjs/build-info/emitter.js.map +0 -1
- package/dist/cjs/clis/build-info.d.ts +0 -2
- package/dist/cjs/clis/build-info.js +0 -48
- package/dist/cjs/clis/build-info.js.map +0 -1
- package/dist/esm/build-info/common/types.d.ts +0 -15
- package/dist/esm/build-info/common/types.js +0 -2
- package/dist/esm/build-info/common/types.js.map +0 -1
- package/dist/esm/build-info/emitter.d.ts +0 -11
- package/dist/esm/build-info/emitter.js +0 -22
- package/dist/esm/build-info/emitter.js.map +0 -1
- package/dist/esm/clis/build-info.d.ts +0 -2
- package/dist/esm/clis/build-info.js +0 -46
- package/dist/esm/clis/build-info.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @venizia/ignis-boot
|
|
2
2
|
|
|
3
|
-
Build-time tools for an IGNIS application: `ignis-artifacts` writes one static file that registers your decorated classes, and `
|
|
3
|
+
Build-time tools for an IGNIS application: `ignis-artifacts` writes one static file that registers your decorated classes, and `BuildInfoStamp` stamps the build. Install it as a devDependency of the application, or as a dependency if production runs the source unbundled.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -101,22 +101,32 @@ A class lands in the index when all of these hold. The scanner logs a warning fo
|
|
|
101
101
|
|
|
102
102
|
The output is deterministic: imports sorted by path, names sorted within each field, empty fields kept, a field wider than 100 columns wrapped one name per line.
|
|
103
103
|
|
|
104
|
-
##
|
|
104
|
+
## The build stamp
|
|
105
105
|
|
|
106
|
-
A
|
|
106
|
+
A running service cannot say which commit it is. `BuildInfoStamp` (from `@venizia/ignis-boot/build-info`) bakes the commit, branch and build time into a compiled binary, and resolves them from git when you run from source. Nothing is generated, so a clean checkout typechecks, tests and boots.
|
|
107
107
|
|
|
108
|
+
```typescript
|
|
109
|
+
// scripts/compile.ts
|
|
110
|
+
import { BunCompiler } from '@venizia/dev-configs/compilers';
|
|
111
|
+
import { BuildInfoStamp } from '@venizia/ignis-boot/build-info';
|
|
112
|
+
|
|
113
|
+
await BunCompiler.compile({
|
|
114
|
+
entrypoint: './src/index.ts',
|
|
115
|
+
outfile: './dist/service',
|
|
116
|
+
define: await BuildInfoStamp.define(),
|
|
117
|
+
});
|
|
108
118
|
```
|
|
109
|
-
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
// src/index.ts
|
|
122
|
+
import { BuildInfoStamp } from '@venizia/ignis-boot/build-info';
|
|
123
|
+
|
|
124
|
+
await BuildInfoStamp.register();
|
|
110
125
|
```
|
|
111
126
|
|
|
112
|
-
|
|
113
|
-
|---|---|---|
|
|
114
|
-
| `--out` | `src/_build_info.ts` | Output file; rewritten on every run |
|
|
115
|
-
| `--root` | `.` | Where `package.json` is read and `git` runs |
|
|
116
|
-
| `--format` | `ts` | `ts` writes an `export const`; `json` writes the same record as JSON |
|
|
117
|
-
| `--export` | `BUILD_INFO` | Name of the exported constant in `ts` format |
|
|
127
|
+
`register()` uses the baked stamp when the compile defined it, else `BuildInfoResolver`, then calls `BuildInfoRegistry.set`. It sets `commit`, `branch` and `builtAt`; `service` and `version` stay with `getAppInfo()`. The health-check component's `/stats` route reports it.
|
|
118
128
|
|
|
119
|
-
|
|
129
|
+
The resolver reads each field from the environment first (first non-blank key wins), then its fallback. A field nothing resolves reads `unspecified`.
|
|
120
130
|
|
|
121
131
|
| Field | Environment keys, in order | Fallback |
|
|
122
132
|
|---|---|---|
|
|
@@ -124,16 +134,7 @@ Each field reads the environment first (first non-blank key wins), then its fall
|
|
|
124
134
|
| `version` | `APP_ENV_BUILD_VERSION`, `APP_BUILD_VERSION`, `CI_COMMIT_TAG`, `GITHUB_REF_NAME` | `package.json` `version` |
|
|
125
135
|
| `commit` | `APP_ENV_BUILD_COMMIT_TAG`, `APP_BUILD_COMMIT`, `CI_COMMIT_SHA`, `GITHUB_SHA`, `COMMIT_SHA` | `git rev-parse --short=12 HEAD` |
|
|
126
136
|
| `branch` | `APP_BUILD_BRANCH`, `CI_COMMIT_REF_NAME`, `GITHUB_REF_NAME`, `BRANCH_NAME` | `git rev-parse --abbrev-ref HEAD` |
|
|
127
|
-
| `builtAt` | `APP_ENV_BUILD_DATE`, `APP_BUILD_DATE` | the time the
|
|
128
|
-
|
|
129
|
-
Register the stamp once at the entry point. The health-check component's `/stats` route reports it:
|
|
130
|
-
|
|
131
|
-
```typescript
|
|
132
|
-
import { BuildInfoRegistry } from '@venizia/ignis-helpers/core';
|
|
133
|
-
import { BUILD_INFO } from './_build_info';
|
|
134
|
-
|
|
135
|
-
BuildInfoRegistry.set({ buildInfo: BUILD_INFO });
|
|
136
|
-
```
|
|
137
|
+
| `builtAt` | `APP_ENV_BUILD_DATE`, `APP_BUILD_DATE` | the time the stamp was resolved |
|
|
137
138
|
|
|
138
139
|
## Entry points
|
|
139
140
|
|
|
@@ -141,12 +142,11 @@ BuildInfoRegistry.set({ buildInfo: BUILD_INFO });
|
|
|
141
142
|
|---|---|---|
|
|
142
143
|
| `@venizia/ignis-boot` | Everything from the two subpaths below | `typescript` |
|
|
143
144
|
| `@venizia/ignis-boot/generator` | `generateArtifactIndex`, `checkArtifactIndex`, `ArtifactScanner`, `ArtifactIndexEmitter`, `ArtifactStereotypes`, `ArtifactTypes`, `ArtifactIndexFields` | `typescript` |
|
|
144
|
-
| `@venizia/ignis-boot/build-info` | `
|
|
145
|
+
| `@venizia/ignis-boot/build-info` | `BuildInfoStamp`, `BuildInfoResolver`, `BuildInfoEnvironmentKeys` | none |
|
|
145
146
|
|
|
146
147
|
| Binary | File |
|
|
147
148
|
|---|---|
|
|
148
149
|
| `ignis-artifacts` | `dist/cjs/clis/artifacts.js` |
|
|
149
|
-
| `ignis-build-info` | `dist/cjs/clis/build-info.js` |
|
|
150
150
|
|
|
151
151
|
The package ships CommonJS and ESM builds. The programmatic API mirrors the CLI:
|
|
152
152
|
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import type { TConstValue } from '@venizia/ignis-helpers';
|
|
2
|
-
export declare class BuildInfoFormats {
|
|
3
|
-
static readonly TS = "ts";
|
|
4
|
-
static readonly JSON = "json";
|
|
5
|
-
static readonly SCHEME_SET: Set<string>;
|
|
6
|
-
static isValid(value: string): boolean;
|
|
7
|
-
}
|
|
8
|
-
export type TBuildInfoFormat = TConstValue<typeof BuildInfoFormats>;
|
|
9
1
|
/**
|
|
10
2
|
* Each field is spelled differently by every CI provider, and `APP_ENV_*` is what this
|
|
11
3
|
* organisation's pipelines export - so it is read before the generic `APP_BUILD_*` pair and before
|
|
@@ -17,3 +9,4 @@ export declare class BuildInfoEnvironmentKeys {
|
|
|
17
9
|
static readonly BRANCH: readonly string[];
|
|
18
10
|
static readonly BUILT_AT: readonly string[];
|
|
19
11
|
}
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/build-info/common/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAKxC;IAEF,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAMvC;IAEF,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAKvC;IAEF,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAA4C;CACxF"}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuildInfoEnvironmentKeys =
|
|
4
|
-
class BuildInfoFormats {
|
|
5
|
-
static { this.TS = 'ts'; }
|
|
6
|
-
static { this.JSON = 'json'; }
|
|
7
|
-
static { this.SCHEME_SET = new Set([this.TS, this.JSON]); }
|
|
8
|
-
static isValid(value) {
|
|
9
|
-
return this.SCHEME_SET.has(value);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.BuildInfoFormats = BuildInfoFormats;
|
|
3
|
+
exports.BuildInfoEnvironmentKeys = void 0;
|
|
13
4
|
/**
|
|
14
5
|
* Each field is spelled differently by every CI provider, and `APP_ENV_*` is what this
|
|
15
6
|
* organisation's pipelines export - so it is read before the generic `APP_BUILD_*` pair and before
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/build-info/common/constants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/build-info/common/constants.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,wBAAwB;aACnB,YAAO,GAAsB;QAC3C,uBAAuB;QACvB,mBAAmB;QACnB,eAAe;QACf,iBAAiB;KAClB,CAAC;aAEc,WAAM,GAAsB;QAC1C,0BAA0B;QAC1B,kBAAkB;QAClB,eAAe;QACf,YAAY;QACZ,YAAY;KACb,CAAC;aAEc,WAAM,GAAsB;QAC1C,kBAAkB;QAClB,oBAAoB;QACpB,iBAAiB;QACjB,aAAa;KACd,CAAC;aAEc,aAAQ,GAAsB,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;;AAvBzF,4DAwBC","sourcesContent":["/**\n * Each field is spelled differently by every CI provider, and `APP_ENV_*` is what this\n * organisation's pipelines export - so it is read before the generic `APP_BUILD_*` pair and before\n * anything provider-specific. The first key carrying a non-blank value wins.\n */\nexport class BuildInfoEnvironmentKeys {\n static readonly VERSION: readonly string[] = [\n 'APP_ENV_BUILD_VERSION',\n 'APP_BUILD_VERSION',\n 'CI_COMMIT_TAG',\n 'GITHUB_REF_NAME',\n ];\n\n static readonly COMMIT: readonly string[] = [\n 'APP_ENV_BUILD_COMMIT_TAG',\n 'APP_BUILD_COMMIT',\n 'CI_COMMIT_SHA',\n 'GITHUB_SHA',\n 'COMMIT_SHA',\n ];\n\n static readonly BRANCH: readonly string[] = [\n 'APP_BUILD_BRANCH',\n 'CI_COMMIT_REF_NAME',\n 'GITHUB_REF_NAME',\n 'BRANCH_NAME',\n ];\n\n static readonly BUILT_AT: readonly string[] = ['APP_ENV_BUILD_DATE', 'APP_BUILD_DATE'];\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './constants';
|
|
2
|
-
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-info/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./constants"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/build-info/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/build-info/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B","sourcesContent":["export * from './constants';\n"]}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { type IBuildInfoOptions, type IBuildInfoResult } from './common';
|
|
2
|
-
/**
|
|
3
|
-
* Writes the stamp. Unlike the artifact index this ALWAYS writes: `builtAt` changes every run, so
|
|
4
|
-
* an unchanged-content short-circuit would be dead code that hides a stale timestamp.
|
|
5
|
-
*/
|
|
6
|
-
export declare const generateBuildInfo: (opts: IBuildInfoOptions) => Promise<IBuildInfoResult>;
|
|
7
1
|
export * from './common';
|
|
8
|
-
export * from './emitter';
|
|
9
2
|
export * from './resolver';
|
|
3
|
+
export * from './stamp';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/build-info/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -14,30 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.generateBuildInfo = void 0;
|
|
18
|
-
const node_fs_1 = require("node:fs");
|
|
19
|
-
const node_path_1 = require("node:path");
|
|
20
|
-
const common_1 = require("./common");
|
|
21
|
-
const emitter_1 = require("./emitter");
|
|
22
|
-
const resolver_1 = require("./resolver");
|
|
23
|
-
/**
|
|
24
|
-
* Writes the stamp. Unlike the artifact index this ALWAYS writes: `builtAt` changes every run, so
|
|
25
|
-
* an unchanged-content short-circuit would be dead code that hides a stale timestamp.
|
|
26
|
-
*/
|
|
27
|
-
const generateBuildInfo = async (opts) => {
|
|
28
|
-
const buildInfo = await resolver_1.BuildInfoResolver.getInstance().resolve({ root: opts.root });
|
|
29
|
-
const content = emitter_1.BuildInfoEmitter.render({
|
|
30
|
-
buildInfo,
|
|
31
|
-
format: opts.format ?? common_1.BuildInfoFormats.TS,
|
|
32
|
-
exportName: opts.exportName ?? emitter_1.BuildInfoEmitter.DEFAULT_EXPORT_NAME,
|
|
33
|
-
});
|
|
34
|
-
const out = (0, node_path_1.resolve)(opts.out);
|
|
35
|
-
(0, node_fs_1.mkdirSync)((0, node_path_1.dirname)(out), { recursive: true });
|
|
36
|
-
(0, node_fs_1.writeFileSync)(out, content);
|
|
37
|
-
return { buildInfo, content, out };
|
|
38
|
-
};
|
|
39
|
-
exports.generateBuildInfo = generateBuildInfo;
|
|
40
17
|
__exportStar(require("./common"), exports);
|
|
41
|
-
__exportStar(require("./emitter"), exports);
|
|
42
18
|
__exportStar(require("./resolver"), exports);
|
|
19
|
+
__exportStar(require("./stamp"), exports);
|
|
43
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/build-info/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/build-info/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB","sourcesContent":["export * from './common';\nexport * from './resolver';\nexport * from './stamp';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../src/build-info/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQvF;;;;;GAKG;AACH,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAoB;IAE5C,OAAO;IAIP,MAAM,CAAC,WAAW,IAAI,iBAAiB;IAIjC,OAAO,CAAC,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAkClE,OAAO,CAAC,uBAAuB;IAW/B;;;OAGG;YACW,eAAe;IA4B7B,iIAAiI;IACjI,OAAO,CAAC,eAAe;CAyBxB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The build stamp, decided where it is cheap: a compile bakes it into the binary, a run from
|
|
3
|
+
* source resolves it from git when the application starts.
|
|
4
|
+
*
|
|
5
|
+
* `define()` is for the compile script, `register()` for the entrypoint. A binary that carries the
|
|
6
|
+
* stamp never runs git; the resolver is the only code here, and it needs no TypeScript scanner.
|
|
7
|
+
*/
|
|
8
|
+
export declare class BuildInfoStamp {
|
|
9
|
+
/** The identifier `define()` replaces in the bundle and `register()` reads. */
|
|
10
|
+
static readonly GLOBAL_NAME = "IGNIS_BUILD_INFO";
|
|
11
|
+
/** The `define` record for a compile: resolves the stamp now and returns it under {@link BuildInfoStamp.GLOBAL_NAME}. */
|
|
12
|
+
static define(opts?: {
|
|
13
|
+
root?: string;
|
|
14
|
+
}): Promise<Record<string, string>>;
|
|
15
|
+
/**
|
|
16
|
+
* Registers the stamp in {@link BuildInfoRegistry}: the baked value when the compile defined it,
|
|
17
|
+
* else the resolver's. Only `commit`, `branch` and `builtAt` are set - `service` and `version`
|
|
18
|
+
* stay with the application's `getAppInfo()`, which the health reporter reads when they are absent.
|
|
19
|
+
*/
|
|
20
|
+
static register(): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=stamp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stamp.d.ts","sourceRoot":"","sources":["../../../src/build-info/stamp.ts"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,qBAAa,cAAc;IACzB,+EAA+E;IAC/E,MAAM,CAAC,QAAQ,CAAC,WAAW,sBAAsB;IAEjD,yHAAyH;WAC5G,MAAM,CAAC,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAK9E;;;;OAIG;WACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAUvC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildInfoStamp = void 0;
|
|
4
|
+
const core_1 = require("@venizia/ignis-helpers/core");
|
|
5
|
+
const resolver_1 = require("./resolver");
|
|
6
|
+
/**
|
|
7
|
+
* The build stamp, decided where it is cheap: a compile bakes it into the binary, a run from
|
|
8
|
+
* source resolves it from git when the application starts.
|
|
9
|
+
*
|
|
10
|
+
* `define()` is for the compile script, `register()` for the entrypoint. A binary that carries the
|
|
11
|
+
* stamp never runs git; the resolver is the only code here, and it needs no TypeScript scanner.
|
|
12
|
+
*/
|
|
13
|
+
class BuildInfoStamp {
|
|
14
|
+
/** The identifier `define()` replaces in the bundle and `register()` reads. */
|
|
15
|
+
static { this.GLOBAL_NAME = 'IGNIS_BUILD_INFO'; }
|
|
16
|
+
/** The `define` record for a compile: resolves the stamp now and returns it under {@link BuildInfoStamp.GLOBAL_NAME}. */
|
|
17
|
+
static async define(opts) {
|
|
18
|
+
const stamp = await resolver_1.BuildInfoResolver.getInstance().resolve(opts);
|
|
19
|
+
return { [BuildInfoStamp.GLOBAL_NAME]: JSON.stringify(stamp) };
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Registers the stamp in {@link BuildInfoRegistry}: the baked value when the compile defined it,
|
|
23
|
+
* else the resolver's. Only `commit`, `branch` and `builtAt` are set - `service` and `version`
|
|
24
|
+
* stay with the application's `getAppInfo()`, which the health reporter reads when they are absent.
|
|
25
|
+
*/
|
|
26
|
+
static async register() {
|
|
27
|
+
const stamp = typeof IGNIS_BUILD_INFO !== 'undefined'
|
|
28
|
+
? IGNIS_BUILD_INFO
|
|
29
|
+
: await resolver_1.BuildInfoResolver.getInstance().resolve();
|
|
30
|
+
core_1.BuildInfoRegistry.set({
|
|
31
|
+
buildInfo: { commit: stamp.commit, branch: stamp.branch, builtAt: stamp.builtAt },
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.BuildInfoStamp = BuildInfoStamp;
|
|
36
|
+
//# sourceMappingURL=stamp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stamp.js","sourceRoot":"","sources":["../../../src/build-info/stamp.ts"],"names":[],"mappings":";;;AAAA,sDAAuF;AACvF,yCAA+C;AAM/C;;;;;;GAMG;AACH,MAAa,cAAc;IACzB,+EAA+E;aAC/D,gBAAW,GAAG,kBAAkB,CAAC;IAEjD,yHAAyH;IACzH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAwB;QAC1C,MAAM,KAAK,GAAG,MAAM,4BAAiB,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClE,OAAO,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,QAAQ;QACnB,MAAM,KAAK,GACT,OAAO,gBAAgB,KAAK,WAAW;YACrC,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,MAAM,4BAAiB,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC;QAEtD,wBAAiB,CAAC,GAAG,CAAC;YACpB,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;SAClF,CAAC,CAAC;IACL,CAAC;;AAxBH,wCAyBC","sourcesContent":["import { BuildInfoRegistry, type TBuildInfoRecord } from '@venizia/ignis-helpers/core';\nimport { BuildInfoResolver } from './resolver';\n\n// A compile bakes the stamp in under this name (`define`); a run from source has no such name.\n// The identifier below must spell the same as `BuildInfoStamp.GLOBAL_NAME`.\ndeclare const IGNIS_BUILD_INFO: TBuildInfoRecord | undefined;\n\n/**\n * The build stamp, decided where it is cheap: a compile bakes it into the binary, a run from\n * source resolves it from git when the application starts.\n *\n * `define()` is for the compile script, `register()` for the entrypoint. A binary that carries the\n * stamp never runs git; the resolver is the only code here, and it needs no TypeScript scanner.\n */\nexport class BuildInfoStamp {\n /** The identifier `define()` replaces in the bundle and `register()` reads. */\n static readonly GLOBAL_NAME = 'IGNIS_BUILD_INFO';\n\n /** The `define` record for a compile: resolves the stamp now and returns it under {@link BuildInfoStamp.GLOBAL_NAME}. */\n static async define(opts?: { root?: string }): Promise<Record<string, string>> {\n const stamp = await BuildInfoResolver.getInstance().resolve(opts);\n return { [BuildInfoStamp.GLOBAL_NAME]: JSON.stringify(stamp) };\n }\n\n /**\n * Registers the stamp in {@link BuildInfoRegistry}: the baked value when the compile defined it,\n * else the resolver's. Only `commit`, `branch` and `builtAt` are set - `service` and `version`\n * stay with the application's `getAppInfo()`, which the health reporter reads when they are absent.\n */\n static async register(): Promise<void> {\n const stamp =\n typeof IGNIS_BUILD_INFO !== 'undefined'\n ? IGNIS_BUILD_INFO\n : await BuildInfoResolver.getInstance().resolve();\n\n BuildInfoRegistry.set({\n buildInfo: { commit: stamp.commit, branch: stamp.branch, builtAt: stamp.builtAt },\n });\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-group.d.ts","sourceRoot":"","sources":["../../../src/bun/auto-group.ts"],"names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C,uBAAuB,CAAC;CA2BrC"}
|
package/dist/cjs/bun/auto.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ import { AutoArtifactGroup } from './auto-group';
|
|
|
2
2
|
/** The application's own decorated classes, found by the scanner - pass it in `configs.artifacts`. From source the run-time plugin builds the index when artifacts are registered; in a binary built with `IgnisArtifactsPlugin` this module is replaced by one carrying the built index. */
|
|
3
3
|
declare const AutoArtifacts: AutoArtifactGroup;
|
|
4
4
|
export default AutoArtifacts;
|
|
5
|
+
//# sourceMappingURL=auto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto.d.ts","sourceRoot":"","sources":["../../../src/bun/auto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAOjD,6RAA6R;AAC7R,QAAA,MAAM,aAAa,mBAAuE,CAAC;AAE3F,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-resolver.d.ts","sourceRoot":"","sources":["../../../src/bun/group-resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAIxF,2OAA2O;AAC3O,qBAAa,sBAAsB;IACjC,uGAAuG;IACvG,MAAM,CAAC,QAAQ,CAAC,UAAU,gBAA+D;WAE5E,OAAO,CAAC,IAAI,EAAE;QACzB,KAAK,EAAE;YACL,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;YAC3B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;YACzB,MAAM,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;SAChC,CAAC;KACH,GAAG,OAAO,CAAC,uBAAuB,CAAC;IA8BpC,mIAAmI;IACnI,MAAM,CAAC,OAAO,IAAI,IAAI;CAavB"}
|
package/dist/cjs/bun/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bun/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
package/dist/cjs/bun/plugin.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/bun/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAQrC,6QAA6Q;AAC7Q,qBAAa,oBAAoB;IAC/B,MAAM,CAAC,QAAQ,CAAC,IAAI,qBAAqB;IACzC,MAAM,CAAC,QAAQ,CAAC,OAAO,qBAAqB;IAC5C,MAAM,CAAC,QAAQ,CAAC,WAAW,wBAAwB;IAEnD,+IAA+I;IAC/I,MAAM,CAAC,QAAQ,CAAC,WAAW,SAC0F;IAErH,oHAAoH;IACpH,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAsD;IAEjF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAA8D;IAMjG,8GAA8G;IAC9G,MAAM,CAAC,WAAW,CAAC,IAAI,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,MAAM;IAMxD,wLAAwL;IACxL,MAAM,CAAC,cAAc,IAAI,MAAM;IAK/B,+NAA+N;IAC/N,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAoB7D,sYAAsY;IACtY,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAqJxE,sGAAsG;IACtG,MAAM,CAAC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-cache.d.ts","sourceRoot":"","sources":["../../../src/bun/scan-cache.ts"],"names":[],"mappings":"AAWA,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEjF,oNAAoN;AACpN,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,QAAQ,CAAC,OAAO,KAAK;IAE5B,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAM/C,4KAA4K;IAC5K,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAmClD,iGAAiG;IACjG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,gBAAgB,EAAE,GAAG,SAAS;IAqBnE,uIAAuI;IACvI,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,gBAAgB,EAAE,CAAA;KAAE,GAAG,OAAO;CAmB7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../src/bun/sources.ts"],"names":[],"mappings":"AAGA,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGjF,UAAU,gBAAgB;IACxB,cAAc,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,OAAO,CAAA;KAAE,GAAG;QAChE,SAAS,EAAE,gBAAgB,EAAE,CAAC;KAC/B,CAAC;CACH;AAED,mSAAmS;AACnS,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAyC;IACtE,OAAO,CAAC,MAAM,CAAC,OAAO,CAA+B;IAErD,8EAA8E;IAC9E,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,gBAAgB,CAAA;KAAE,GAAG,IAAI;IAI5D,+GAA+G;WAClG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IASzC,iHAAiH;IACjH,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO;IAWzD,iKAAiK;IACjK,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,GAAG,gBAAgB,EAAE;IAmBhE,oGAAoG;IACpG,MAAM,CAAC,KAAK,IAAI,MAAM,GAAG,SAAS;IAIlC,uGAAuG;IACvG,MAAM,CAAC,aAAa,CAAC,IAAI,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,MAAM;IAa1D,0OAA0O;IAC1O,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE;QAC3B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;QAC3B,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KAChC,GAAG,gBAAgB,EAAE;IAiBtB,mTAAmT;IACnT,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE;QAC5B,SAAS,EAAE,gBAAgB,EAAE,CAAC;QAC9B,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,gBAAgB,EAAE;IAiCtB,yFAAyF;IACzF,MAAM,CAAC,KAAK,IAAI,IAAI;CAGrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/clis/artifacts.ts"],"names":[],"mappings":";AACA,OAAO,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-quiet-logger.d.ts","sourceRoot":"","sources":["../../../src/common/install-quiet-logger.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quiet-logger.d.ts","sourceRoot":"","sources":["../../../src/common/quiet-logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAGtE,mMAAmM;AACnM,qBAAa,WAAY,YAAW,OAAO;IAIrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAH1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAkC;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC,OAAO;IAIP,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAWlC,OAAO,CAAC,KAAK;IAIb,KAAK,IAAI,IAAI;IAEb,IAAI,IAAI,IAAI;IAEZ,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAI/C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAIhD,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAQhE,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;CAGjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/generator/common/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,iIAAiI;AACjI,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,aAAa,mBAAmB;IAChD,MAAM,CAAC,QAAQ,CAAC,SAAS,eAAe;IACxC,MAAM,CAAC,QAAQ,CAAC,UAAU,gBAAgB;IA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AC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAItC,MAAM,CAAC,QAAQ,CAAC,cAAc,SAA4C;IAE1E,MAAM,CAAC,QAAQ,CAAC,cAAc,WAK5B;IAEF;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,KAAK,EAAE,mBAAmB,CAAA;KAAE,CAAC,CAO5F;CACH;AAED,gFAAgF;AAChF,qBAAa,eAAe;IAC1B,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;IACtC,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAkB;IAC9C,MAAM,CAAC,QAAQ,CAAC,OAAO,aAAa;IAEpC,MAAM,CAAC,QAAQ,CAAC,UAAU,cAAqE;IAE/F,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAGvC;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generator/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -30,3 +30,4 @@ export interface IScanReport {
|
|
|
30
30
|
}
|
|
31
31
|
/** The object a generated index exports - structurally the kernel's `IArtifactIndex` (boot does not depend on the kernel). */
|
|
32
32
|
export type TGeneratedArtifactIndex = Partial<Record<TArtifactIndexField, ReadonlyArray<TClass<AnyType>>>>;
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/generator/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAA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@@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/dist/cjs/vite/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vite/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/vite/plugin.ts"],"names":[],"mappings":"AAKA,4HAA4H;AAC5H,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CAAC;IACf,MAAM,EAAE,MAAM;QAAE,YAAY,EAAE;YAAE,OAAO,EAAE,MAAM,EAAE,CAAA;SAAE,CAAA;KAAE,CAAC;IACtD,cAAc,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACnD,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC9C,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;CAC7D;AAED,mWAAmW;AACnW,qBAAa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SAAuC;IAMvE,6FAA6F;IAC7F,MAAM,CAAC,MAAM,CAAC,IAAI,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAO,GAAG,gBAAgB;CAsC9D"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import type { TConstValue } from '@venizia/ignis-helpers';
|
|
2
|
-
export declare class BuildInfoFormats {
|
|
3
|
-
static readonly TS = "ts";
|
|
4
|
-
static readonly JSON = "json";
|
|
5
|
-
static readonly SCHEME_SET: Set<string>;
|
|
6
|
-
static isValid(value: string): boolean;
|
|
7
|
-
}
|
|
8
|
-
export type TBuildInfoFormat = TConstValue<typeof BuildInfoFormats>;
|
|
9
1
|
/**
|
|
10
2
|
* Each field is spelled differently by every CI provider, and `APP_ENV_*` is what this
|
|
11
3
|
* organisation's pipelines export - so it is read before the generic `APP_BUILD_*` pair and before
|
|
@@ -17,3 +9,4 @@ export declare class BuildInfoEnvironmentKeys {
|
|
|
17
9
|
static readonly BRANCH: readonly string[];
|
|
18
10
|
static readonly BUILT_AT: readonly string[];
|
|
19
11
|
}
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/build-info/common/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAKxC;IAEF,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAMvC;IAEF,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAKvC;IAEF,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAA4C;CACxF"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export class BuildInfoFormats {
|
|
2
|
-
static { this.TS = 'ts'; }
|
|
3
|
-
static { this.JSON = 'json'; }
|
|
4
|
-
static { this.SCHEME_SET = new Set([this.TS, this.JSON]); }
|
|
5
|
-
static isValid(value) {
|
|
6
|
-
return this.SCHEME_SET.has(value);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
1
|
/**
|
|
10
2
|
* Each field is spelled differently by every CI provider, and `APP_ENV_*` is what this
|
|
11
3
|
* organisation's pipelines export - so it is read before the generic `APP_BUILD_*` pair and before
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/build-info/common/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/build-info/common/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,wBAAwB;aACnB,YAAO,GAAsB;QAC3C,uBAAuB;QACvB,mBAAmB;QACnB,eAAe;QACf,iBAAiB;KAClB,CAAC;aAEc,WAAM,GAAsB;QAC1C,0BAA0B;QAC1B,kBAAkB;QAClB,eAAe;QACf,YAAY;QACZ,YAAY;KACb,CAAC;aAEc,WAAM,GAAsB;QAC1C,kBAAkB;QAClB,oBAAoB;QACpB,iBAAiB;QACjB,aAAa;KACd,CAAC;aAEc,aAAQ,GAAsB,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["/**\n * Each field is spelled differently by every CI provider, and `APP_ENV_*` is what this\n * organisation's pipelines export - so it is read before the generic `APP_BUILD_*` pair and before\n * anything provider-specific. The first key carrying a non-blank value wins.\n */\nexport class BuildInfoEnvironmentKeys {\n static readonly VERSION: readonly string[] = [\n 'APP_ENV_BUILD_VERSION',\n 'APP_BUILD_VERSION',\n 'CI_COMMIT_TAG',\n 'GITHUB_REF_NAME',\n ];\n\n static readonly COMMIT: readonly string[] = [\n 'APP_ENV_BUILD_COMMIT_TAG',\n 'APP_BUILD_COMMIT',\n 'CI_COMMIT_SHA',\n 'GITHUB_SHA',\n 'COMMIT_SHA',\n ];\n\n static readonly BRANCH: readonly string[] = [\n 'APP_BUILD_BRANCH',\n 'CI_COMMIT_REF_NAME',\n 'GITHUB_REF_NAME',\n 'BRANCH_NAME',\n ];\n\n static readonly BUILT_AT: readonly string[] = ['APP_ENV_BUILD_DATE', 'APP_BUILD_DATE'];\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './constants.js';
|
|
2
|
-
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/build-info/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/build-info/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/build-info/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC","sourcesContent":["export * from './constants';\n"]}
|