@oddessentials/repo-standards 4.0.0 → 4.1.0
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 +2 -1
- package/dist/config/standards.csharp-dotnet.azure-devops.json +1 -1
- package/dist/config/standards.csharp-dotnet.github-actions.json +1 -1
- package/dist/config/standards.csharp-dotnet.json +1 -1
- package/dist/config/standards.go.azure-devops.json +1 -1
- package/dist/config/standards.go.github-actions.json +1 -1
- package/dist/config/standards.go.json +1 -1
- package/dist/config/standards.json +1 -1
- package/dist/config/standards.python.azure-devops.json +1 -1
- package/dist/config/standards.python.github-actions.json +1 -1
- package/dist/config/standards.python.json +1 -1
- package/dist/config/standards.rust.azure-devops.json +1 -1
- package/dist/config/standards.rust.github-actions.json +1 -1
- package/dist/config/standards.rust.json +1 -1
- package/dist/config/standards.typescript-js.azure-devops.json +1 -1
- package/dist/config/standards.typescript-js.github-actions.json +1 -1
- package/dist/config/standards.typescript-js.json +1 -1
- package/dist/index.cjs +93 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{types.d.ts → index.d.cts} +47 -14
- package/dist/index.d.ts +169 -11
- package/dist/index.js +48 -54
- package/dist/index.js.map +1 -0
- package/package.json +13 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/version.d.ts +0 -11
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -10
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ The master spec includes a `meta` block that defines system-wide expectations:
|
|
|
68
68
|
|
|
69
69
|
## Structure of `config/standards.json`
|
|
70
70
|
|
|
71
|
-
- `version` — schema version (currently `
|
|
71
|
+
- `version` — schema version (currently `4`)
|
|
72
72
|
- `meta` — global rules and migration policy
|
|
73
73
|
- `ciSystems` — supported CI platforms
|
|
74
74
|
_(currently `github-actions`, `azure-devops`)_
|
|
@@ -103,6 +103,7 @@ The `version` field indicates schema compatibility:
|
|
|
103
103
|
- `1` — Original schema
|
|
104
104
|
- `2` — Adds `bazelHints`, `meta.executorHints.bazel` for Bazel support, `anyOfFiles`, `pinningNotes`, enforcement/severity levels, ratio-based coverage thresholds, Rust/Go stacks. Enforces strict validation with `additionalProperties: false`.
|
|
105
105
|
- `3` — Expands release, build determinism, and provenance/CI automation requirements; adds unified release workflow and template automation guidance.
|
|
106
|
+
- `4` — Stable API contract with `getStandards()`, `getSchema()`, `STANDARDS_VERSION` exports; Node 22 LTS alignment.
|
|
106
107
|
|
|
107
108
|
Consumers should ignore unknown fields for forward compatibility.
|
|
108
109
|
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
STANDARDS_SCHEMA_VERSION: () => STANDARDS_SCHEMA_VERSION,
|
|
24
|
+
STANDARDS_VERSION: () => STANDARDS_VERSION,
|
|
25
|
+
getSchema: () => getSchema,
|
|
26
|
+
getStandards: () => getStandards,
|
|
27
|
+
listSupportedCiSystems: () => listSupportedCiSystems,
|
|
28
|
+
listSupportedStacks: () => listSupportedStacks,
|
|
29
|
+
loadBaseline: () => loadBaseline,
|
|
30
|
+
loadMasterSpec: () => loadMasterSpec
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(index_exports);
|
|
33
|
+
|
|
34
|
+
// node_modules/tsup/assets/cjs_shims.js
|
|
35
|
+
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
|
|
36
|
+
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
37
|
+
|
|
38
|
+
// src/index.ts
|
|
39
|
+
var import_node_url = require("url");
|
|
40
|
+
var import_node_fs = require("fs");
|
|
41
|
+
var import_node_path = require("path");
|
|
42
|
+
|
|
43
|
+
// src/version.ts
|
|
44
|
+
var STANDARDS_VERSION = "4.0.1";
|
|
45
|
+
var STANDARDS_SCHEMA_VERSION = 4;
|
|
46
|
+
|
|
47
|
+
// src/index.ts
|
|
48
|
+
var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
|
|
49
|
+
var __dirname = (0, import_node_path.dirname)(__filename2);
|
|
50
|
+
var isDevMode = __dirname.includes("src");
|
|
51
|
+
var configDir = isDevMode ? (0, import_node_path.join)(__dirname, "..", "config") : (0, import_node_path.join)(__dirname, "config");
|
|
52
|
+
function loadMasterSpec() {
|
|
53
|
+
const filePath = (0, import_node_path.join)(configDir, "standards.json");
|
|
54
|
+
return JSON.parse((0, import_node_fs.readFileSync)(filePath, "utf8"));
|
|
55
|
+
}
|
|
56
|
+
function loadBaseline(stack, ci) {
|
|
57
|
+
const suffix = ci ? `.${ci}` : "";
|
|
58
|
+
const file = `standards.${stack}${suffix}.json`;
|
|
59
|
+
const filePath = (0, import_node_path.join)(configDir, file);
|
|
60
|
+
return JSON.parse((0, import_node_fs.readFileSync)(filePath, "utf8"));
|
|
61
|
+
}
|
|
62
|
+
function listSupportedStacks() {
|
|
63
|
+
const spec = loadMasterSpec();
|
|
64
|
+
return Object.keys(spec.stacks);
|
|
65
|
+
}
|
|
66
|
+
function listSupportedCiSystems() {
|
|
67
|
+
const spec = loadMasterSpec();
|
|
68
|
+
return spec.ciSystems;
|
|
69
|
+
}
|
|
70
|
+
function getStandards(stack, ci) {
|
|
71
|
+
return loadBaseline(stack, ci);
|
|
72
|
+
}
|
|
73
|
+
function getSchema() {
|
|
74
|
+
return loadMasterSpec();
|
|
75
|
+
}
|
|
76
|
+
if (importMetaUrl.startsWith("file:") && process.argv[1] === __filename2) {
|
|
77
|
+
console.log({
|
|
78
|
+
stacks: listSupportedStacks(),
|
|
79
|
+
ciSystems: listSupportedCiSystems()
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
STANDARDS_SCHEMA_VERSION,
|
|
85
|
+
STANDARDS_VERSION,
|
|
86
|
+
getSchema,
|
|
87
|
+
getStandards,
|
|
88
|
+
listSupportedCiSystems,
|
|
89
|
+
listSupportedStacks,
|
|
90
|
+
loadBaseline,
|
|
91
|
+
loadMasterSpec
|
|
92
|
+
});
|
|
93
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../node_modules/tsup/assets/cjs_shims.js","../src/version.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\nimport { readFileSync } from \"node:fs\";\nimport { join, dirname } from \"node:path\";\nimport type {\n MasterJson,\n StackChecklistJson,\n StackId,\n CiSystem,\n} from \"./types.js\";\nimport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION } from \"./version.js\";\n\n// Re-export types for consumers\nexport type { MasterJson, StackChecklistJson, StackId, CiSystem };\n\n// Re-export version info (stable API contract)\nexport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION };\n\n// ESM equivalent of __dirname\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// Path to config directory:\n// - When running from src/ (dev/test): use repo root config/\n// - When running from dist/ (installed): use dist/config/\nconst isDevMode = __dirname.includes(\"src\");\nconst configDir = isDevMode\n ? join(__dirname, \"..\", \"config\")\n : join(__dirname, \"config\");\n\n/** Load the master spec JSON from the packaged dist directory */\nexport function loadMasterSpec(): MasterJson {\n const filePath = join(configDir, \"standards.json\");\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** Load a stack-specific checklist (optionally filtered by CI system) */\nexport function loadBaseline(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n const suffix = ci ? `.${ci}` : \"\";\n const file = `standards.${stack}${suffix}.json`;\n const filePath = join(configDir, file);\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** List all supported stacks (derived from the master spec) */\nexport function listSupportedStacks(): readonly StackId[] {\n const spec = loadMasterSpec();\n return Object.keys(spec.stacks) as StackId[];\n}\n\n/** List all supported CI systems (derived from the master spec) */\nexport function listSupportedCiSystems(): readonly CiSystem[] {\n const spec = loadMasterSpec();\n return spec.ciSystems as CiSystem[];\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadBaseline - loads stack-specific standards checklist.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getStandards(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n return loadBaseline(stack, ci);\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadMasterSpec - loads the master standards schema.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getSchema(): MasterJson {\n return loadMasterSpec();\n}\n\n/** Optional CLI entry point for debugging */\nif (import.meta.url.startsWith(\"file:\") && process.argv[1] === __filename) {\n console.log({\n stacks: listSupportedStacks(),\n ciSystems: listSupportedCiSystems(),\n });\n}\n","// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () => \n typeof document === \"undefined\" \n ? new URL(`file:${__filename}`).href \n : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') \n ? document.currentScript.src \n : new URL(\"main.js\", document.baseURI).href;\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","/**\n * AUTO-GENERATED at build time by scripts/build.ts\n * DO NOT EDIT MANUALLY\n *\n * This module provides version information for the repo-standards package.\n * Consumers should import from here instead of package.json to avoid\n * ESM/CJS interop issues.\n */\n\nexport const STANDARDS_VERSION = '4.0.1';\nexport const STANDARDS_SCHEMA_VERSION = 4;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKA,IAAM,mBAAmB,MACvB,OAAO,aAAa,cAChB,IAAI,IAAI,QAAQ,UAAU,EAAE,EAAE,OAC7B,SAAS,iBAAiB,SAAS,cAAc,QAAQ,YAAY,MAAM,WAC1E,SAAS,cAAc,MACvB,IAAI,IAAI,WAAW,SAAS,OAAO,EAAE;AAEtC,IAAM,gBAAgC,iCAAiB;;;ADZ9D,sBAA8B;AAC9B,qBAA6B;AAC7B,uBAA8B;;;AEOvB,IAAM,oBAAoB;AAC1B,IAAM,2BAA2B;;;AFQxC,IAAMA,kBAAa,+BAAc,aAAe;AAChD,IAAM,gBAAY,0BAAQA,WAAU;AAKpC,IAAM,YAAY,UAAU,SAAS,KAAK;AAC1C,IAAM,YAAY,gBACd,uBAAK,WAAW,MAAM,QAAQ,QAC9B,uBAAK,WAAW,QAAQ;AAGrB,SAAS,iBAA6B;AAC3C,QAAM,eAAW,uBAAK,WAAW,gBAAgB;AACjD,SAAO,KAAK,UAAM,6BAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,aACd,OACA,IACoB;AACpB,QAAM,SAAS,KAAK,IAAI,EAAE,KAAK;AAC/B,QAAM,OAAO,aAAa,KAAK,GAAG,MAAM;AACxC,QAAM,eAAW,uBAAK,WAAW,IAAI;AACrC,SAAO,KAAK,UAAM,6BAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,sBAA0C;AACxD,QAAM,OAAO,eAAe;AAC5B,SAAO,OAAO,KAAK,KAAK,MAAM;AAChC;AAGO,SAAS,yBAA8C;AAC5D,QAAM,OAAO,eAAe;AAC5B,SAAO,KAAK;AACd;AAOO,SAAS,aACd,OACA,IACoB;AACpB,SAAO,aAAa,OAAO,EAAE;AAC/B;AAOO,SAAS,YAAwB;AACtC,SAAO,eAAe;AACxB;AAGA,IAAI,cAAgB,WAAW,OAAO,KAAK,QAAQ,KAAK,CAAC,MAAMA,aAAY;AACzE,UAAQ,IAAI;AAAA,IACV,QAAQ,oBAAoB;AAAA,IAC5B,WAAW,uBAAuB;AAAA,EACpC,CAAC;AACH;","names":["__filename"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Commands are actual Bazel invocations (e.g., "bazel test //..."),
|
|
4
4
|
* NOT assumed pattern labels.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
interface BazelHints {
|
|
7
7
|
/** Bazel commands to run (e.g., "bazel test //...", "bazel run //tools/lint") */
|
|
8
8
|
commands?: string[];
|
|
9
9
|
/** Recommended target conventions (documentation only, not assumed to exist) */
|
|
@@ -11,24 +11,24 @@ export interface BazelHints {
|
|
|
11
11
|
/** Usage notes for this check in Bazel context */
|
|
12
12
|
notes?: string;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
type StackId = "typescript-js" | "csharp-dotnet" | "python" | "rust" | "go";
|
|
15
|
+
type CiSystem = "azure-devops" | "github-actions";
|
|
16
16
|
/**
|
|
17
17
|
* Enforcement level for checklist items.
|
|
18
18
|
* - required: Must be implemented (core items)
|
|
19
19
|
* - recommended: Should be implemented (recommended items)
|
|
20
20
|
* - optional: Nice to have (optional enhancements)
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
type Enforcement = "required" | "recommended" | "optional";
|
|
23
23
|
/**
|
|
24
24
|
* Severity level for violations.
|
|
25
25
|
* - error: Fails CI (core items)
|
|
26
26
|
* - warn: Warning only (recommended items)
|
|
27
27
|
* - info: Informational (optional enhancements)
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
type Severity = "error" | "warn" | "info";
|
|
30
30
|
/** Migration guide step for onboarding repositories */
|
|
31
|
-
|
|
31
|
+
interface MigrationStep {
|
|
32
32
|
step: number;
|
|
33
33
|
title: string;
|
|
34
34
|
description: string;
|
|
@@ -36,7 +36,7 @@ export interface MigrationStep {
|
|
|
36
36
|
notes?: string;
|
|
37
37
|
}
|
|
38
38
|
/** Bazel integration configuration */
|
|
39
|
-
|
|
39
|
+
interface BazelExecutorConfig {
|
|
40
40
|
detectionRules?: {
|
|
41
41
|
rootMarkers?: string[];
|
|
42
42
|
optionalMarkers?: string[];
|
|
@@ -60,7 +60,7 @@ export interface BazelExecutorConfig {
|
|
|
60
60
|
* Bazel is the first (and currently only) supported executor.
|
|
61
61
|
* Future monorepo executors may be added following the same pattern.
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
interface ExecutorHints {
|
|
64
64
|
/** Container-level description of the executor hints system */
|
|
65
65
|
description?: string;
|
|
66
66
|
/** Bazel executor configuration (first supported instance) */
|
|
@@ -70,7 +70,7 @@ export interface ExecutorHints {
|
|
|
70
70
|
* Meta configuration for the standards.
|
|
71
71
|
* Includes coverage thresholds, quality gate policies, and migration guidance.
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
interface Meta {
|
|
74
74
|
/**
|
|
75
75
|
* Default code coverage threshold as a ratio (0-1).
|
|
76
76
|
* E.g., 0.8 = 80% coverage.
|
|
@@ -92,7 +92,7 @@ export interface Meta {
|
|
|
92
92
|
migrationGuide?: MigrationStep[];
|
|
93
93
|
executorHints?: ExecutorHints;
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
interface MasterJson {
|
|
96
96
|
version: number;
|
|
97
97
|
meta?: Meta;
|
|
98
98
|
ciSystems: CiSystem[];
|
|
@@ -106,7 +106,7 @@ export interface MasterJson {
|
|
|
106
106
|
optionalEnhancements: ChecklistItem[];
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
interface ChecklistItem {
|
|
110
110
|
id: string;
|
|
111
111
|
label: string;
|
|
112
112
|
description: string;
|
|
@@ -123,7 +123,7 @@ export interface ChecklistItem {
|
|
|
123
123
|
}>;
|
|
124
124
|
stackHints?: Record<StackId, StackHints>;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
interface StackHints {
|
|
127
127
|
exampleTools?: string[];
|
|
128
128
|
exampleConfigFiles?: string[];
|
|
129
129
|
notes?: string;
|
|
@@ -135,7 +135,7 @@ export interface StackHints {
|
|
|
135
135
|
pinningNotes?: string;
|
|
136
136
|
bazelHints?: BazelHints;
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
interface StackChecklistJson {
|
|
139
139
|
version: number;
|
|
140
140
|
stack: StackId;
|
|
141
141
|
stackLabel: string;
|
|
@@ -147,4 +147,37 @@ export interface StackChecklistJson {
|
|
|
147
147
|
optionalEnhancements: ChecklistItem[];
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* AUTO-GENERATED at build time by scripts/build.ts
|
|
153
|
+
* DO NOT EDIT MANUALLY
|
|
154
|
+
*
|
|
155
|
+
* This module provides version information for the repo-standards package.
|
|
156
|
+
* Consumers should import from here instead of package.json to avoid
|
|
157
|
+
* ESM/CJS interop issues.
|
|
158
|
+
*/
|
|
159
|
+
declare const STANDARDS_VERSION = "4.0.1";
|
|
160
|
+
declare const STANDARDS_SCHEMA_VERSION = 4;
|
|
161
|
+
|
|
162
|
+
/** Load the master spec JSON from the packaged dist directory */
|
|
163
|
+
declare function loadMasterSpec(): MasterJson;
|
|
164
|
+
/** Load a stack-specific checklist (optionally filtered by CI system) */
|
|
165
|
+
declare function loadBaseline(stack: StackId, ci?: CiSystem): StackChecklistJson;
|
|
166
|
+
/** List all supported stacks (derived from the master spec) */
|
|
167
|
+
declare function listSupportedStacks(): readonly StackId[];
|
|
168
|
+
/** List all supported CI systems (derived from the master spec) */
|
|
169
|
+
declare function listSupportedCiSystems(): readonly CiSystem[];
|
|
170
|
+
/**
|
|
171
|
+
* PUBLIC API CONTRACT (semver-governed)
|
|
172
|
+
* Alias for loadBaseline - loads stack-specific standards checklist.
|
|
173
|
+
* Breaking changes to this function signature require a major version bump.
|
|
174
|
+
*/
|
|
175
|
+
declare function getStandards(stack: StackId, ci?: CiSystem): StackChecklistJson;
|
|
176
|
+
/**
|
|
177
|
+
* PUBLIC API CONTRACT (semver-governed)
|
|
178
|
+
* Alias for loadMasterSpec - loads the master standards schema.
|
|
179
|
+
* Breaking changes to this function signature require a major version bump.
|
|
180
|
+
*/
|
|
181
|
+
declare function getSchema(): MasterJson;
|
|
182
|
+
|
|
183
|
+
export { type CiSystem, type MasterJson, STANDARDS_SCHEMA_VERSION, STANDARDS_VERSION, type StackChecklistJson, type StackId, getSchema, getStandards, listSupportedCiSystems, listSupportedStacks, loadBaseline, loadMasterSpec };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,183 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Bazel execution hints for individual checklist items.
|
|
3
|
+
* Commands are actual Bazel invocations (e.g., "bazel test //..."),
|
|
4
|
+
* NOT assumed pattern labels.
|
|
5
|
+
*/
|
|
6
|
+
interface BazelHints {
|
|
7
|
+
/** Bazel commands to run (e.g., "bazel test //...", "bazel run //tools/lint") */
|
|
8
|
+
commands?: string[];
|
|
9
|
+
/** Recommended target conventions (documentation only, not assumed to exist) */
|
|
10
|
+
recommendedTargets?: string[];
|
|
11
|
+
/** Usage notes for this check in Bazel context */
|
|
12
|
+
notes?: string;
|
|
13
|
+
}
|
|
14
|
+
type StackId = "typescript-js" | "csharp-dotnet" | "python" | "rust" | "go";
|
|
15
|
+
type CiSystem = "azure-devops" | "github-actions";
|
|
16
|
+
/**
|
|
17
|
+
* Enforcement level for checklist items.
|
|
18
|
+
* - required: Must be implemented (core items)
|
|
19
|
+
* - recommended: Should be implemented (recommended items)
|
|
20
|
+
* - optional: Nice to have (optional enhancements)
|
|
21
|
+
*/
|
|
22
|
+
type Enforcement = "required" | "recommended" | "optional";
|
|
23
|
+
/**
|
|
24
|
+
* Severity level for violations.
|
|
25
|
+
* - error: Fails CI (core items)
|
|
26
|
+
* - warn: Warning only (recommended items)
|
|
27
|
+
* - info: Informational (optional enhancements)
|
|
28
|
+
*/
|
|
29
|
+
type Severity = "error" | "warn" | "info";
|
|
30
|
+
/** Migration guide step for onboarding repositories */
|
|
31
|
+
interface MigrationStep {
|
|
32
|
+
step: number;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
focusIds?: string[];
|
|
36
|
+
notes?: string;
|
|
37
|
+
}
|
|
38
|
+
/** Bazel integration configuration */
|
|
39
|
+
interface BazelExecutorConfig {
|
|
40
|
+
detectionRules?: {
|
|
41
|
+
rootMarkers?: string[];
|
|
42
|
+
optionalMarkers?: string[];
|
|
43
|
+
notes?: string;
|
|
44
|
+
};
|
|
45
|
+
optOut?: {
|
|
46
|
+
description?: string;
|
|
47
|
+
configPath?: string;
|
|
48
|
+
};
|
|
49
|
+
targetConventions?: Record<string, string>;
|
|
50
|
+
ciContract?: {
|
|
51
|
+
versionPinning?: string;
|
|
52
|
+
configFlag?: string;
|
|
53
|
+
deterministicFlags?: string[];
|
|
54
|
+
remoteCache?: string;
|
|
55
|
+
};
|
|
56
|
+
advisoryNotice?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Executor hints container.
|
|
60
|
+
* Bazel is the first (and currently only) supported executor.
|
|
61
|
+
* Future monorepo executors may be added following the same pattern.
|
|
62
|
+
*/
|
|
63
|
+
interface ExecutorHints {
|
|
64
|
+
/** Container-level description of the executor hints system */
|
|
65
|
+
description?: string;
|
|
66
|
+
/** Bazel executor configuration (first supported instance) */
|
|
67
|
+
bazel?: BazelExecutorConfig;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Meta configuration for the standards.
|
|
71
|
+
* Includes coverage thresholds, quality gate policies, and migration guidance.
|
|
72
|
+
*/
|
|
73
|
+
interface Meta {
|
|
74
|
+
/**
|
|
75
|
+
* Default code coverage threshold as a ratio (0-1).
|
|
76
|
+
* E.g., 0.8 = 80% coverage.
|
|
77
|
+
*/
|
|
78
|
+
defaultCoverageThreshold?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Documents that coverage threshold is a ratio (0-1), not a percentage (0-100).
|
|
81
|
+
*/
|
|
82
|
+
coverageThresholdUnit?: "ratio";
|
|
83
|
+
coverageThresholdDescription?: string;
|
|
84
|
+
complexityChecks?: {
|
|
85
|
+
enabledByDefault?: boolean;
|
|
86
|
+
description?: string;
|
|
87
|
+
};
|
|
88
|
+
qualityGatePolicy?: {
|
|
89
|
+
preferSoftFailOnLegacy?: boolean;
|
|
90
|
+
description?: string;
|
|
91
|
+
};
|
|
92
|
+
migrationGuide?: MigrationStep[];
|
|
93
|
+
executorHints?: ExecutorHints;
|
|
94
|
+
}
|
|
95
|
+
interface MasterJson {
|
|
96
|
+
version: number;
|
|
97
|
+
meta?: Meta;
|
|
98
|
+
ciSystems: CiSystem[];
|
|
99
|
+
stacks: Record<StackId, {
|
|
100
|
+
label: string;
|
|
101
|
+
languageFamily: string;
|
|
102
|
+
}>;
|
|
103
|
+
checklist: {
|
|
104
|
+
core: ChecklistItem[];
|
|
105
|
+
recommended: ChecklistItem[];
|
|
106
|
+
optionalEnhancements: ChecklistItem[];
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
interface ChecklistItem {
|
|
110
|
+
id: string;
|
|
111
|
+
label: string;
|
|
112
|
+
description: string;
|
|
113
|
+
enforcement?: Enforcement;
|
|
114
|
+
severity?: Severity;
|
|
115
|
+
appliesTo: {
|
|
116
|
+
stacks: StackId[];
|
|
117
|
+
ciSystems?: CiSystem[];
|
|
118
|
+
};
|
|
119
|
+
ciHints?: Record<CiSystem, {
|
|
120
|
+
stage?: string;
|
|
121
|
+
job?: string;
|
|
122
|
+
notes?: string;
|
|
123
|
+
}>;
|
|
124
|
+
stackHints?: Record<StackId, StackHints>;
|
|
125
|
+
}
|
|
126
|
+
interface StackHints {
|
|
127
|
+
exampleTools?: string[];
|
|
128
|
+
exampleConfigFiles?: string[];
|
|
129
|
+
notes?: string;
|
|
130
|
+
verification?: string;
|
|
131
|
+
requiredFiles?: string[];
|
|
132
|
+
anyOfFiles?: string[];
|
|
133
|
+
optionalFiles?: string[];
|
|
134
|
+
requiredScripts?: string[];
|
|
135
|
+
pinningNotes?: string;
|
|
136
|
+
bazelHints?: BazelHints;
|
|
137
|
+
}
|
|
138
|
+
interface StackChecklistJson {
|
|
139
|
+
version: number;
|
|
140
|
+
stack: StackId;
|
|
141
|
+
stackLabel: string;
|
|
142
|
+
ciSystems: CiSystem[];
|
|
143
|
+
meta?: Meta;
|
|
144
|
+
checklist: {
|
|
145
|
+
core: ChecklistItem[];
|
|
146
|
+
recommended: ChecklistItem[];
|
|
147
|
+
optionalEnhancements: ChecklistItem[];
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* AUTO-GENERATED at build time by scripts/build.ts
|
|
153
|
+
* DO NOT EDIT MANUALLY
|
|
154
|
+
*
|
|
155
|
+
* This module provides version information for the repo-standards package.
|
|
156
|
+
* Consumers should import from here instead of package.json to avoid
|
|
157
|
+
* ESM/CJS interop issues.
|
|
158
|
+
*/
|
|
159
|
+
declare const STANDARDS_VERSION = "4.0.1";
|
|
160
|
+
declare const STANDARDS_SCHEMA_VERSION = 4;
|
|
161
|
+
|
|
5
162
|
/** Load the master spec JSON from the packaged dist directory */
|
|
6
|
-
|
|
163
|
+
declare function loadMasterSpec(): MasterJson;
|
|
7
164
|
/** Load a stack-specific checklist (optionally filtered by CI system) */
|
|
8
|
-
|
|
165
|
+
declare function loadBaseline(stack: StackId, ci?: CiSystem): StackChecklistJson;
|
|
9
166
|
/** List all supported stacks (derived from the master spec) */
|
|
10
|
-
|
|
167
|
+
declare function listSupportedStacks(): readonly StackId[];
|
|
11
168
|
/** List all supported CI systems (derived from the master spec) */
|
|
12
|
-
|
|
169
|
+
declare function listSupportedCiSystems(): readonly CiSystem[];
|
|
13
170
|
/**
|
|
14
171
|
* PUBLIC API CONTRACT (semver-governed)
|
|
15
172
|
* Alias for loadBaseline - loads stack-specific standards checklist.
|
|
16
173
|
* Breaking changes to this function signature require a major version bump.
|
|
17
174
|
*/
|
|
18
|
-
|
|
175
|
+
declare function getStandards(stack: StackId, ci?: CiSystem): StackChecklistJson;
|
|
19
176
|
/**
|
|
20
177
|
* PUBLIC API CONTRACT (semver-governed)
|
|
21
178
|
* Alias for loadMasterSpec - loads the master standards schema.
|
|
22
179
|
* Breaking changes to this function signature require a major version bump.
|
|
23
180
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
181
|
+
declare function getSchema(): MasterJson;
|
|
182
|
+
|
|
183
|
+
export { type CiSystem, type MasterJson, STANDARDS_SCHEMA_VERSION, STANDARDS_VERSION, type StackChecklistJson, type StackId, getSchema, getStandards, listSupportedCiSystems, listSupportedStacks, loadBaseline, loadMasterSpec };
|
package/dist/index.js
CHANGED
|
@@ -1,61 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export function loadMasterSpec() {
|
|
19
|
-
const filePath = join(configDir, "standards.json");
|
|
20
|
-
return JSON.parse(readFileSync(filePath, "utf8"));
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import { readFileSync } from "fs";
|
|
4
|
+
import { join, dirname } from "path";
|
|
5
|
+
|
|
6
|
+
// src/version.ts
|
|
7
|
+
var STANDARDS_VERSION = "4.0.1";
|
|
8
|
+
var STANDARDS_SCHEMA_VERSION = 4;
|
|
9
|
+
|
|
10
|
+
// src/index.ts
|
|
11
|
+
var __filename2 = fileURLToPath(import.meta.url);
|
|
12
|
+
var __dirname2 = dirname(__filename2);
|
|
13
|
+
var isDevMode = __dirname2.includes("src");
|
|
14
|
+
var configDir = isDevMode ? join(__dirname2, "..", "config") : join(__dirname2, "config");
|
|
15
|
+
function loadMasterSpec() {
|
|
16
|
+
const filePath = join(configDir, "standards.json");
|
|
17
|
+
return JSON.parse(readFileSync(filePath, "utf8"));
|
|
21
18
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return JSON.parse(readFileSync(filePath, "utf8"));
|
|
19
|
+
function loadBaseline(stack, ci) {
|
|
20
|
+
const suffix = ci ? `.${ci}` : "";
|
|
21
|
+
const file = `standards.${stack}${suffix}.json`;
|
|
22
|
+
const filePath = join(configDir, file);
|
|
23
|
+
return JSON.parse(readFileSync(filePath, "utf8"));
|
|
28
24
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return Object.keys(spec.stacks);
|
|
25
|
+
function listSupportedStacks() {
|
|
26
|
+
const spec = loadMasterSpec();
|
|
27
|
+
return Object.keys(spec.stacks);
|
|
33
28
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return spec.ciSystems;
|
|
29
|
+
function listSupportedCiSystems() {
|
|
30
|
+
const spec = loadMasterSpec();
|
|
31
|
+
return spec.ciSystems;
|
|
38
32
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* Alias for loadBaseline - loads stack-specific standards checklist.
|
|
42
|
-
* Breaking changes to this function signature require a major version bump.
|
|
43
|
-
*/
|
|
44
|
-
export function getStandards(stack, ci) {
|
|
45
|
-
return loadBaseline(stack, ci);
|
|
33
|
+
function getStandards(stack, ci) {
|
|
34
|
+
return loadBaseline(stack, ci);
|
|
46
35
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
* Alias for loadMasterSpec - loads the master standards schema.
|
|
50
|
-
* Breaking changes to this function signature require a major version bump.
|
|
51
|
-
*/
|
|
52
|
-
export function getSchema() {
|
|
53
|
-
return loadMasterSpec();
|
|
36
|
+
function getSchema() {
|
|
37
|
+
return loadMasterSpec();
|
|
54
38
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
39
|
+
if (import.meta.url.startsWith("file:") && process.argv[1] === __filename2) {
|
|
40
|
+
console.log({
|
|
41
|
+
stacks: listSupportedStacks(),
|
|
42
|
+
ciSystems: listSupportedCiSystems()
|
|
43
|
+
});
|
|
61
44
|
}
|
|
45
|
+
export {
|
|
46
|
+
STANDARDS_SCHEMA_VERSION,
|
|
47
|
+
STANDARDS_VERSION,
|
|
48
|
+
getSchema,
|
|
49
|
+
getStandards,
|
|
50
|
+
listSupportedCiSystems,
|
|
51
|
+
listSupportedStacks,
|
|
52
|
+
loadBaseline,
|
|
53
|
+
loadMasterSpec
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/version.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\nimport { readFileSync } from \"node:fs\";\nimport { join, dirname } from \"node:path\";\nimport type {\n MasterJson,\n StackChecklistJson,\n StackId,\n CiSystem,\n} from \"./types.js\";\nimport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION } from \"./version.js\";\n\n// Re-export types for consumers\nexport type { MasterJson, StackChecklistJson, StackId, CiSystem };\n\n// Re-export version info (stable API contract)\nexport { STANDARDS_VERSION, STANDARDS_SCHEMA_VERSION };\n\n// ESM equivalent of __dirname\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// Path to config directory:\n// - When running from src/ (dev/test): use repo root config/\n// - When running from dist/ (installed): use dist/config/\nconst isDevMode = __dirname.includes(\"src\");\nconst configDir = isDevMode\n ? join(__dirname, \"..\", \"config\")\n : join(__dirname, \"config\");\n\n/** Load the master spec JSON from the packaged dist directory */\nexport function loadMasterSpec(): MasterJson {\n const filePath = join(configDir, \"standards.json\");\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** Load a stack-specific checklist (optionally filtered by CI system) */\nexport function loadBaseline(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n const suffix = ci ? `.${ci}` : \"\";\n const file = `standards.${stack}${suffix}.json`;\n const filePath = join(configDir, file);\n return JSON.parse(readFileSync(filePath, \"utf8\"));\n}\n\n/** List all supported stacks (derived from the master spec) */\nexport function listSupportedStacks(): readonly StackId[] {\n const spec = loadMasterSpec();\n return Object.keys(spec.stacks) as StackId[];\n}\n\n/** List all supported CI systems (derived from the master spec) */\nexport function listSupportedCiSystems(): readonly CiSystem[] {\n const spec = loadMasterSpec();\n return spec.ciSystems as CiSystem[];\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadBaseline - loads stack-specific standards checklist.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getStandards(\n stack: StackId,\n ci?: CiSystem,\n): StackChecklistJson {\n return loadBaseline(stack, ci);\n}\n\n/**\n * PUBLIC API CONTRACT (semver-governed)\n * Alias for loadMasterSpec - loads the master standards schema.\n * Breaking changes to this function signature require a major version bump.\n */\nexport function getSchema(): MasterJson {\n return loadMasterSpec();\n}\n\n/** Optional CLI entry point for debugging */\nif (import.meta.url.startsWith(\"file:\") && process.argv[1] === __filename) {\n console.log({\n stacks: listSupportedStacks(),\n ciSystems: listSupportedCiSystems(),\n });\n}\n","/**\n * AUTO-GENERATED at build time by scripts/build.ts\n * DO NOT EDIT MANUALLY\n *\n * This module provides version information for the repo-standards package.\n * Consumers should import from here instead of package.json to avoid\n * ESM/CJS interop issues.\n */\n\nexport const STANDARDS_VERSION = '4.0.1';\nexport const STANDARDS_SCHEMA_VERSION = 4;\n"],"mappings":";AAAA,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,MAAM,eAAe;;;ACOvB,IAAM,oBAAoB;AAC1B,IAAM,2BAA2B;;;ADQxC,IAAMA,cAAa,cAAc,YAAY,GAAG;AAChD,IAAMC,aAAY,QAAQD,WAAU;AAKpC,IAAM,YAAYC,WAAU,SAAS,KAAK;AAC1C,IAAM,YAAY,YACd,KAAKA,YAAW,MAAM,QAAQ,IAC9B,KAAKA,YAAW,QAAQ;AAGrB,SAAS,iBAA6B;AAC3C,QAAM,WAAW,KAAK,WAAW,gBAAgB;AACjD,SAAO,KAAK,MAAM,aAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,aACd,OACA,IACoB;AACpB,QAAM,SAAS,KAAK,IAAI,EAAE,KAAK;AAC/B,QAAM,OAAO,aAAa,KAAK,GAAG,MAAM;AACxC,QAAM,WAAW,KAAK,WAAW,IAAI;AACrC,SAAO,KAAK,MAAM,aAAa,UAAU,MAAM,CAAC;AAClD;AAGO,SAAS,sBAA0C;AACxD,QAAM,OAAO,eAAe;AAC5B,SAAO,OAAO,KAAK,KAAK,MAAM;AAChC;AAGO,SAAS,yBAA8C;AAC5D,QAAM,OAAO,eAAe;AAC5B,SAAO,KAAK;AACd;AAOO,SAAS,aACd,OACA,IACoB;AACpB,SAAO,aAAa,OAAO,EAAE;AAC/B;AAOO,SAAS,YAAwB;AACtC,SAAO,eAAe;AACxB;AAGA,IAAI,YAAY,IAAI,WAAW,OAAO,KAAK,QAAQ,KAAK,CAAC,MAAMD,aAAY;AACzE,UAAQ,IAAI;AAAA,IACV,QAAQ,oBAAoB;AAAA,IAC5B,WAAW,uBAAuB;AAAA,EACpC,CAAC;AACH;","names":["__filename","__dirname"]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oddessentials/repo-standards",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.0",
|
|
5
5
|
"description": "Standards and CI filtering utilities for multi-stack repository governance.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "ts-node-dev --respawn --transpile-only src/index.ts",
|
|
9
|
-
"build": "npm run validate:schema &&
|
|
9
|
+
"build": "npm run validate:schema && tsx scripts/build.ts && tsup",
|
|
10
10
|
"start": "node dist/index.js",
|
|
11
11
|
"lint": "eslint .",
|
|
12
12
|
"format": "prettier . --write",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"prettier": "^3.7.4",
|
|
42
42
|
"semantic-release": "^24.2.0",
|
|
43
43
|
"ts-node": "^10.9.2",
|
|
44
|
+
"tsup": "^8.5.1",
|
|
44
45
|
"tsx": "^4.7.2",
|
|
45
46
|
"typescript": "^5.9.3",
|
|
46
47
|
"vitest": "^4.0.15"
|
|
@@ -68,12 +69,19 @@
|
|
|
68
69
|
"publishConfig": {
|
|
69
70
|
"access": "public"
|
|
70
71
|
},
|
|
71
|
-
"main": "./dist/index.
|
|
72
|
+
"main": "./dist/index.cjs",
|
|
73
|
+
"module": "./dist/index.js",
|
|
72
74
|
"types": "./dist/index.d.ts",
|
|
73
75
|
"exports": {
|
|
74
76
|
".": {
|
|
75
|
-
"import":
|
|
76
|
-
|
|
77
|
+
"import": {
|
|
78
|
+
"types": "./dist/index.d.ts",
|
|
79
|
+
"default": "./dist/index.js"
|
|
80
|
+
},
|
|
81
|
+
"require": {
|
|
82
|
+
"types": "./dist/index.d.cts",
|
|
83
|
+
"default": "./dist/index.cjs"
|
|
84
|
+
}
|
|
77
85
|
},
|
|
78
86
|
"./config/*": "./dist/config/*",
|
|
79
87
|
"./schema/*": "./dist/schema/*"
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,OAAO,EACP,QAAQ,EACT,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAG3E,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;AAGlE,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,CAAC;AAcvD,iEAAiE;AACjE,wBAAgB,cAAc,IAAI,UAAU,CAG3C;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,EAAE,CAAC,EAAE,QAAQ,GACZ,kBAAkB,CAKpB;AAED,+DAA+D;AAC/D,wBAAgB,mBAAmB,IAAI,SAAS,OAAO,EAAE,CAGxD;AAED,mEAAmE;AACnE,wBAAgB,sBAAsB,IAAI,SAAS,QAAQ,EAAE,CAG5D;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,EAAE,CAAC,EAAE,QAAQ,GACZ,kBAAkB,CAEpB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,UAAU,CAEtC"}
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,M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ENERATED at build time by scripts/build.ts
|
|
3
|
-
* DO NOT EDIT MANUALLY
|
|
4
|
-
*
|
|
5
|
-
* This module provides version information for the repo-standards package.
|
|
6
|
-
* Consumers should import from here instead of package.json to avoid
|
|
7
|
-
* ESM/CJS interop issues.
|
|
8
|
-
*/
|
|
9
|
-
export declare const STANDARDS_VERSION = "3.1.0";
|
|
10
|
-
export declare const STANDARDS_SCHEMA_VERSION = 3;
|
|
11
|
-
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB,UAAU,CAAC;AACzC,eAAO,MAAM,wBAAwB,IAAI,CAAC"}
|
package/dist/version.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED at build time by scripts/build.ts
|
|
3
|
-
* DO NOT EDIT MANUALLY
|
|
4
|
-
*
|
|
5
|
-
* This module provides version information for the repo-standards package.
|
|
6
|
-
* Consumers should import from here instead of package.json to avoid
|
|
7
|
-
* ESM/CJS interop issues.
|
|
8
|
-
*/
|
|
9
|
-
export const STANDARDS_VERSION = "3.1.0";
|
|
10
|
-
export const STANDARDS_SCHEMA_VERSION = 3;
|