@hublo/sentinel 1.4.0-alpha.19 → 1.4.0-alpha.20
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/dist/bin/sentinel.js +10 -10
- package/dist/{chunk-3TDUIKVQ.js → chunk-3ZKTXODW.js} +6 -6
- package/dist/{chunk-AQGNE3UO.js → chunk-BPLSUYU7.js} +111 -107
- package/dist/{chunk-WLFE5RUU.js → chunk-NW6UHNYX.js} +6 -6
- package/dist/{chunk-CPCUPK4J.js → chunk-TKDVAYYV.js} +4 -4
- package/dist/{chunk-CRKUEP4J.js → chunk-ZV5KMOS7.js} +6 -6
- package/dist/index.js +2 -2
- package/dist/roles/build/nest/toolchain.js +7 -7
- package/dist/roles/test/nest/toolchain.js +2 -2
- package/dist/roles/test/react/toolchain.js +2 -2
- package/dist/roles/test/setup/jest-parity.js +2 -2
- package/dist/roles/test/setup/workspace-entry.js +2 -2
- package/dist/roles/test/shared-test-config.js +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-3TDUIKVQ.js.map → chunk-3ZKTXODW.js.map} +0 -0
- /package/dist/{chunk-WLFE5RUU.js.map → chunk-NW6UHNYX.js.map} +0 -0
- /package/dist/{chunk-CPCUPK4J.js.map → chunk-TKDVAYYV.js.map} +0 -0
- /package/dist/{chunk-CRKUEP4J.js.map → chunk-ZV5KMOS7.js.map} +0 -0
package/dist/bin/sentinel.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
registerAdapters,
|
|
17
17
|
resolve,
|
|
18
18
|
resolveBin
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-BPLSUYU7.js";
|
|
20
20
|
import {
|
|
21
21
|
WORKSPACE_ROOT_MARKER,
|
|
22
22
|
ensureWorkspacePrep,
|
|
@@ -25,20 +25,20 @@ import {
|
|
|
25
25
|
moduleName,
|
|
26
26
|
readOwnVersion,
|
|
27
27
|
readProjectPackageJson
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-NW6UHNYX.js";
|
|
29
29
|
|
|
30
30
|
// bin/sentinel.ts
|
|
31
31
|
import { program } from "commander";
|
|
32
32
|
|
|
33
33
|
// src/core/context.ts
|
|
34
|
-
import { existsSync } from "fs";
|
|
35
|
-
import { join as join2 } from "path";
|
|
34
|
+
import { existsSync } from "node:fs";
|
|
35
|
+
import { join as join2 } from "node:path";
|
|
36
36
|
|
|
37
37
|
// src/core/discover-modules.ts
|
|
38
|
-
import { execFileSync } from "child_process";
|
|
39
|
-
import { mkdtempSync, readFileSync, rmSync } from "fs";
|
|
40
|
-
import { tmpdir } from "os";
|
|
41
|
-
import { join } from "path";
|
|
38
|
+
import { execFileSync } from "node:child_process";
|
|
39
|
+
import { mkdtempSync, readFileSync, rmSync } from "node:fs";
|
|
40
|
+
import { tmpdir } from "node:os";
|
|
41
|
+
import { join } from "node:path";
|
|
42
42
|
function runNx(cwd2, args) {
|
|
43
43
|
const nx = resolveBin(cwd2, "nx") ?? "nx";
|
|
44
44
|
try {
|
|
@@ -118,8 +118,8 @@ function resolveContext(cwd2, opts2) {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
// src/roles/build/declined.ts
|
|
121
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
122
|
-
import { join as join3 } from "path";
|
|
121
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
122
|
+
import { join as join3 } from "node:path";
|
|
123
123
|
var DEPRECATED_NX_BUILDER = "@nx/webpack:webpack";
|
|
124
124
|
function buildsWithDeprecatedExecutor(cwd2) {
|
|
125
125
|
const projectJson = join3(cwd2, "project.json");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/roles/build/nest/decorator-metadata.ts
|
|
2
|
-
import { existsSync } from "fs";
|
|
3
|
-
import { createRequire } from "module";
|
|
4
|
-
import path from "path";
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import path from "node:path";
|
|
5
5
|
var TYPESCRIPT_SOURCE = /\.ts$/;
|
|
6
6
|
var TSCONFIG_CANDIDATES = ["tsconfig.app.json", "tsconfig.json"];
|
|
7
7
|
function loadCompiler(root) {
|
|
@@ -152,8 +152,8 @@ var decoratorMetadata = (options) => {
|
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
// src/roles/build/nest/tsconfig-aliases.ts
|
|
155
|
-
import { readFileSync } from "fs";
|
|
156
|
-
import { join } from "path";
|
|
155
|
+
import { readFileSync } from "node:fs";
|
|
156
|
+
import { join } from "node:path";
|
|
157
157
|
var stripLineComments = (json) => json.replace(/^\s*\/\/.*$/gm, "");
|
|
158
158
|
var toAlias = (workspaceRoot, pattern, target) => {
|
|
159
159
|
const escaped = pattern.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\\\*/g, "(.*)");
|
|
@@ -175,4 +175,4 @@ export {
|
|
|
175
175
|
decoratorMetadata,
|
|
176
176
|
tsconfigAliases
|
|
177
177
|
};
|
|
178
|
-
//# sourceMappingURL=chunk-
|
|
178
|
+
//# sourceMappingURL=chunk-3ZKTXODW.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
readNxProjectName,
|
|
6
6
|
readOwnPackage,
|
|
7
7
|
readProjectPackageJson
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NW6UHNYX.js";
|
|
9
9
|
|
|
10
10
|
// src/core/registry.ts
|
|
11
11
|
var adapters = [];
|
|
@@ -109,7 +109,7 @@ var SWEEPABLE_TARGETS = TARGETS.filter(
|
|
|
109
109
|
var PRESET_NAMES = ["react", "nest", "svelte", "node", "tools"];
|
|
110
110
|
|
|
111
111
|
// src/shared/color.ts
|
|
112
|
-
import { styleText } from "util";
|
|
112
|
+
import { styleText } from "node:util";
|
|
113
113
|
function palette(stream) {
|
|
114
114
|
const paint = (format, text) => styleText(format, text, { stream });
|
|
115
115
|
return {
|
|
@@ -123,8 +123,8 @@ function palette(stream) {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
// src/roles/build/nest/nx-target.ts
|
|
126
|
-
import { existsSync, readFileSync } from "fs";
|
|
127
|
-
import { join, relative } from "path";
|
|
126
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
127
|
+
import { join, relative } from "node:path";
|
|
128
128
|
var DEPRECATED_NX_BUILDER = "@nx/webpack:webpack";
|
|
129
129
|
var TRANSLATABLE_WEBPACK_CONFIG = "tools/webpack-configs/update.webpack.config.js";
|
|
130
130
|
var readProjectJson = (cwd) => {
|
|
@@ -195,8 +195,8 @@ function workspaceRootHops(cwd, target) {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
// src/roles/build/read-adoption.ts
|
|
198
|
-
import { existsSync as existsSync4, readFileSync as readFileSync4 } from "fs";
|
|
199
|
-
import { join as join4 } from "path";
|
|
198
|
+
import { existsSync as existsSync4, readFileSync as readFileSync4 } from "node:fs";
|
|
199
|
+
import { join as join4 } from "node:path";
|
|
200
200
|
|
|
201
201
|
// src/core/config/module-type.ts
|
|
202
202
|
function esmReadiness(fileName, packageType) {
|
|
@@ -210,8 +210,8 @@ function esmReadiness(fileName, packageType) {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
// src/core/config/manifest.ts
|
|
213
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
214
|
-
import { basename, join as join2 } from "path";
|
|
213
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
214
|
+
import { basename, join as join2 } from "node:path";
|
|
215
215
|
function moduleScripts(cwd) {
|
|
216
216
|
try {
|
|
217
217
|
const pkg = JSON.parse(readFileSync2(join2(cwd, "package.json"), "utf8"));
|
|
@@ -264,8 +264,8 @@ function manifestOperation(cwd, scripts) {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
// src/core/config/project-json.ts
|
|
267
|
-
import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
|
|
268
|
-
import { join as join3 } from "path";
|
|
267
|
+
import { existsSync as existsSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
268
|
+
import { join as join3 } from "node:path";
|
|
269
269
|
function projectTargets(cwd) {
|
|
270
270
|
const path = join3(cwd, "project.json");
|
|
271
271
|
if (!existsSync3(path)) return void 0;
|
|
@@ -522,11 +522,11 @@ function readBuildAdoption(cwd) {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
// src/roles/build/adapters/vite/vite-role.adapter.ts
|
|
525
|
-
import { spawnSync } from "child_process";
|
|
525
|
+
import { spawnSync } from "node:child_process";
|
|
526
526
|
|
|
527
527
|
// src/core/config/tool-args.ts
|
|
528
|
-
import { existsSync as existsSync5 } from "fs";
|
|
529
|
-
import { isAbsolute, resolve as resolve2 } from "path";
|
|
528
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
529
|
+
import { isAbsolute, resolve as resolve2 } from "node:path";
|
|
530
530
|
function splitToolArgs(cwd, toolArgs = [], { valueFlags = [] } = {}) {
|
|
531
531
|
const takesValue = new Set(valueFlags);
|
|
532
532
|
const options = [];
|
|
@@ -543,9 +543,9 @@ function splitToolArgs(cwd, toolArgs = [], { valueFlags = [] } = {}) {
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
// src/shared/resolve-bin.ts
|
|
546
|
-
import { existsSync as existsSync6 } from "fs";
|
|
547
|
-
import { createRequire } from "module";
|
|
548
|
-
import { delimiter, dirname, join as join5 } from "path";
|
|
546
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
547
|
+
import { createRequire } from "node:module";
|
|
548
|
+
import { delimiter, dirname, join as join5 } from "node:path";
|
|
549
549
|
var require2 = createRequire(import.meta.url);
|
|
550
550
|
function resolveBin(fromDir, name) {
|
|
551
551
|
let dir = fromDir;
|
|
@@ -576,12 +576,12 @@ function binSearchPath(cwd) {
|
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
// src/roles/build/plan.ts
|
|
579
|
-
import { existsSync as existsSync10, readFileSync as readFileSync8 } from "fs";
|
|
580
|
-
import { join as join10 } from "path";
|
|
579
|
+
import { existsSync as existsSync10, readFileSync as readFileSync8 } from "node:fs";
|
|
580
|
+
import { join as join10 } from "node:path";
|
|
581
581
|
|
|
582
582
|
// src/core/config/existing-command.ts
|
|
583
|
-
import { readFileSync as readFileSync5 } from "fs";
|
|
584
|
-
import { join as join6 } from "path";
|
|
583
|
+
import { readFileSync as readFileSync5 } from "node:fs";
|
|
584
|
+
import { join as join6 } from "node:path";
|
|
585
585
|
|
|
586
586
|
// src/shared/jsonc.ts
|
|
587
587
|
import { parse, printParseErrorCode } from "jsonc-parser";
|
|
@@ -631,8 +631,8 @@ function existingCommand(cwd, target) {
|
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
// src/core/config/nx-target.ts
|
|
634
|
-
import { existsSync as existsSync7 } from "fs";
|
|
635
|
-
import { join as join7 } from "path";
|
|
634
|
+
import { existsSync as existsSync7 } from "node:fs";
|
|
635
|
+
import { join as join7 } from "node:path";
|
|
636
636
|
function nxTargetMetadataOperations(options) {
|
|
637
637
|
const { targets } = options;
|
|
638
638
|
if (Object.keys(targets).length === 0) return [];
|
|
@@ -697,8 +697,8 @@ function keepsOtherCommands(script, sentinelCommand) {
|
|
|
697
697
|
}
|
|
698
698
|
|
|
699
699
|
// src/roles/format/read-adoption.ts
|
|
700
|
-
import { existsSync as existsSync8, readFileSync as readFileSync6 } from "fs";
|
|
701
|
-
import { join as join8 } from "path";
|
|
700
|
+
import { existsSync as existsSync8, readFileSync as readFileSync6 } from "node:fs";
|
|
701
|
+
import { join as join8 } from "node:path";
|
|
702
702
|
|
|
703
703
|
// src/roles/format/config-policy.ts
|
|
704
704
|
var FORMAT_CONFIG_FILE = ".oxfmtrc.json";
|
|
@@ -909,8 +909,8 @@ function devTargetOperations(cwd, devScript) {
|
|
|
909
909
|
}
|
|
910
910
|
|
|
911
911
|
// src/roles/build/nest/adopt.ts
|
|
912
|
-
import { existsSync as existsSync9, readFileSync as readFileSync7 } from "fs";
|
|
913
|
-
import { join as join9 } from "path";
|
|
912
|
+
import { existsSync as existsSync9, readFileSync as readFileSync7 } from "node:fs";
|
|
913
|
+
import { join as join9 } from "node:path";
|
|
914
914
|
var NEST_CONFIG_FILE = "vite.config.mts";
|
|
915
915
|
function asSource(value, depth) {
|
|
916
916
|
const pad = " ".repeat(depth);
|
|
@@ -1453,8 +1453,8 @@ var ViteDevAdapter = class extends ViteRoleAdapter {
|
|
|
1453
1453
|
};
|
|
1454
1454
|
|
|
1455
1455
|
// src/roles/build/declared-outputs.ts
|
|
1456
|
-
import { existsSync as existsSync11, rmSync, statSync, writeFileSync } from "fs";
|
|
1457
|
-
import { join as join11 } from "path";
|
|
1456
|
+
import { existsSync as existsSync11, rmSync, statSync, writeFileSync } from "node:fs";
|
|
1457
|
+
import { join as join11 } from "node:path";
|
|
1458
1458
|
function declaredBuildTarget(cwd) {
|
|
1459
1459
|
return readProjectPackageJson(cwd).nx?.targets?.[BUILD_SCRIPT_NAME];
|
|
1460
1460
|
}
|
|
@@ -1500,7 +1500,7 @@ function outputsProblem(cwd, startedAt) {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
1502
|
// src/roles/build/prerequisite.ts
|
|
1503
|
-
import { spawnSync as spawnSync2 } from "child_process";
|
|
1503
|
+
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
1504
1504
|
var PREBUILD_SCRIPT_NAME = `pre${BUILD_SCRIPT_NAME}`;
|
|
1505
1505
|
function insideBuildScript(env = process.env) {
|
|
1506
1506
|
return env.npm_lifecycle_event === BUILD_SCRIPT_NAME;
|
|
@@ -1626,13 +1626,13 @@ function registerBuild() {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
|
|
1628
1628
|
// src/roles/format/adapters/oxfmt/oxfmt.adapter.ts
|
|
1629
|
-
import { spawnSync as spawnSync3 } from "child_process";
|
|
1630
|
-
import { existsSync as existsSync14, readFileSync as readFileSync12 } from "fs";
|
|
1631
|
-
import { join as join16 } from "path";
|
|
1629
|
+
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
1630
|
+
import { existsSync as existsSync14, readFileSync as readFileSync12 } from "node:fs";
|
|
1631
|
+
import { join as join16 } from "node:path";
|
|
1632
1632
|
|
|
1633
1633
|
// src/core/config/has-source.ts
|
|
1634
|
-
import { readdirSync } from "fs";
|
|
1635
|
-
import { extname, join as join12, relative as relative2 } from "path";
|
|
1634
|
+
import { readdirSync } from "node:fs";
|
|
1635
|
+
import { extname, join as join12, relative as relative2 } from "node:path";
|
|
1636
1636
|
var SKIP_DIRECTORIES = /* @__PURE__ */ new Set([
|
|
1637
1637
|
"node_modules",
|
|
1638
1638
|
"dist",
|
|
@@ -1750,8 +1750,8 @@ function writesWhenRewritten(name, command) {
|
|
|
1750
1750
|
var CHECK_SCRIPT_NAMES = /* @__PURE__ */ new Set(["lint", "format", "check", "test", "typecheck", "verify"]);
|
|
1751
1751
|
|
|
1752
1752
|
// src/roles/format/inherited-ignores.ts
|
|
1753
|
-
import { existsSync as existsSync12, readFileSync as readFileSync9 } from "fs";
|
|
1754
|
-
import { join as join13 } from "path";
|
|
1753
|
+
import { existsSync as existsSync12, readFileSync as readFileSync9 } from "node:fs";
|
|
1754
|
+
import { join as join13 } from "node:path";
|
|
1755
1755
|
var ROOT_IGNORE_FILE = ".prettierignore";
|
|
1756
1756
|
function isPattern(line) {
|
|
1757
1757
|
const trimmed = line.trim();
|
|
@@ -1816,13 +1816,13 @@ function needsSvelteCompiler(output) {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
1818
1818
|
// src/roles/format/prettier-config.ts
|
|
1819
|
-
import { existsSync as existsSync13, readFileSync as readFileSync11 } from "fs";
|
|
1820
|
-
import { join as join15 } from "path";
|
|
1819
|
+
import { existsSync as existsSync13, readFileSync as readFileSync11 } from "node:fs";
|
|
1820
|
+
import { join as join15 } from "node:path";
|
|
1821
1821
|
|
|
1822
1822
|
// src/roles/format/resolve-oxfmt.ts
|
|
1823
|
-
import { readFileSync as readFileSync10 } from "fs";
|
|
1824
|
-
import { createRequire as createRequire2 } from "module";
|
|
1825
|
-
import { dirname as dirname2, join as join14 } from "path";
|
|
1823
|
+
import { readFileSync as readFileSync10 } from "node:fs";
|
|
1824
|
+
import { createRequire as createRequire2 } from "node:module";
|
|
1825
|
+
import { dirname as dirname2, join as join14 } from "node:path";
|
|
1826
1826
|
function resolveOxfmt(cwd) {
|
|
1827
1827
|
return resolveBin(cwd, "oxfmt") ?? binFromOwnInstall("oxfmt", "oxfmt");
|
|
1828
1828
|
}
|
|
@@ -2322,9 +2322,9 @@ function registerFormat() {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
2324
|
// src/roles/lint/adapters/oxlint/oxlint.adapter.ts
|
|
2325
|
-
import { spawnSync as spawnSync4 } from "child_process";
|
|
2326
|
-
import { existsSync as existsSync22, readFileSync as readFileSync20, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
2327
|
-
import { join as join26 } from "path";
|
|
2325
|
+
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
2326
|
+
import { existsSync as existsSync22, readFileSync as readFileSync20, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
2327
|
+
import { join as join26 } from "node:path";
|
|
2328
2328
|
|
|
2329
2329
|
// src/core/config/deferred-rules.ts
|
|
2330
2330
|
function deferredRuleNames(rules) {
|
|
@@ -2332,8 +2332,8 @@ function deferredRuleNames(rules) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
|
|
2334
2334
|
// src/core/fix-report.ts
|
|
2335
|
-
import { statSync as statSync2 } from "fs";
|
|
2336
|
-
import { join as join17 } from "path";
|
|
2335
|
+
import { statSync as statSync2 } from "node:fs";
|
|
2336
|
+
import { join as join17 } from "node:path";
|
|
2337
2337
|
var CONFIG_REFUSED = /failed to parse .*config|invalid config file/i;
|
|
2338
2338
|
function readFailure(output) {
|
|
2339
2339
|
const lines = output.split("\n").map((line2) => line2.trim());
|
|
@@ -2368,8 +2368,12 @@ function changedSince(cwd, before, extensions) {
|
|
|
2368
2368
|
return changed.sort();
|
|
2369
2369
|
}
|
|
2370
2370
|
var NAMED_IN_REPORT = 5;
|
|
2371
|
+
var NOT_INSTALLED_YET = /invalid config file[\s\S]*node_modules/i;
|
|
2371
2372
|
function describeFixOutcome(outcome, toolLabel) {
|
|
2372
2373
|
if (outcome.failure !== void 0) {
|
|
2374
|
+
if (NOT_INSTALLED_YET.test(outcome.failure)) {
|
|
2375
|
+
return `the ${toolLabel} preset is not installed in this module yet, which is expected: this command just added it and the install comes next. Nothing was fixed. Run \`pnpm install\`, then \`sentinel --run --${toolLabel} --fix\` to clear what a machine can clear.`;
|
|
2376
|
+
}
|
|
2373
2377
|
return `the ${toolLabel} autofix could not run, so nothing was fixed and this module has not been checked: ${outcome.failure}`;
|
|
2374
2378
|
}
|
|
2375
2379
|
if (outcome.changed.length === 0) return `the ${toolLabel} autofix changed nothing`;
|
|
@@ -2380,8 +2384,8 @@ function describeFixOutcome(outcome, toolLabel) {
|
|
|
2380
2384
|
}
|
|
2381
2385
|
|
|
2382
2386
|
// src/roles/lint/module-baseline.ts
|
|
2383
|
-
import { existsSync as existsSync15, readFileSync as readFileSync13 } from "fs";
|
|
2384
|
-
import { join as join18 } from "path";
|
|
2387
|
+
import { existsSync as existsSync15, readFileSync as readFileSync13 } from "node:fs";
|
|
2388
|
+
import { join as join18 } from "node:path";
|
|
2385
2389
|
var LINT_BASELINE_FILE = ".oxlintrc.baseline.json";
|
|
2386
2390
|
var LINT_MEASURE_FILE = ".oxlintrc.measure.json";
|
|
2387
2391
|
var LINT_BASELINE_SPECIFIER = `./${LINT_BASELINE_FILE}`;
|
|
@@ -4255,8 +4259,8 @@ function downgradedRulesFor(preset) {
|
|
|
4255
4259
|
}
|
|
4256
4260
|
|
|
4257
4261
|
// src/roles/lint/extra-layers.ts
|
|
4258
|
-
import { existsSync as existsSync16, readFileSync as readFileSync14 } from "fs";
|
|
4259
|
-
import { isAbsolute as isAbsolute2, join as join19, resolve as resolve3 } from "path";
|
|
4262
|
+
import { existsSync as existsSync16, readFileSync as readFileSync14 } from "node:fs";
|
|
4263
|
+
import { isAbsolute as isAbsolute2, join as join19, resolve as resolve3 } from "node:path";
|
|
4260
4264
|
function ruleCount(cwd, specifier) {
|
|
4261
4265
|
const path = isAbsolute2(specifier) ? specifier : resolve3(cwd, specifier);
|
|
4262
4266
|
if (!existsSync16(path)) return void 0;
|
|
@@ -4341,8 +4345,8 @@ function errorCountsByConfigRule(stdout) {
|
|
|
4341
4345
|
}
|
|
4342
4346
|
|
|
4343
4347
|
// src/core/config/read-adoption.ts
|
|
4344
|
-
import { existsSync as existsSync18, readFileSync as readFileSync16 } from "fs";
|
|
4345
|
-
import { join as join21 } from "path";
|
|
4348
|
+
import { existsSync as existsSync18, readFileSync as readFileSync16 } from "node:fs";
|
|
4349
|
+
import { join as join21 } from "node:path";
|
|
4346
4350
|
|
|
4347
4351
|
// src/core/config/owned-keys.ts
|
|
4348
4352
|
function presetOwnedKeys(config, permitted, presetSets) {
|
|
@@ -4357,8 +4361,8 @@ function localOnlyKeys(config, permitted, presetSets) {
|
|
|
4357
4361
|
}
|
|
4358
4362
|
|
|
4359
4363
|
// src/core/config/resolve-config-target.ts
|
|
4360
|
-
import { existsSync as existsSync17, readFileSync as readFileSync15 } from "fs";
|
|
4361
|
-
import { join as join20 } from "path";
|
|
4364
|
+
import { existsSync as existsSync17, readFileSync as readFileSync15 } from "node:fs";
|
|
4365
|
+
import { join as join20 } from "node:path";
|
|
4362
4366
|
function readExtends(absolutePath) {
|
|
4363
4367
|
let parsed;
|
|
4364
4368
|
try {
|
|
@@ -4449,10 +4453,10 @@ function readLintAdoption(cwd) {
|
|
|
4449
4453
|
}
|
|
4450
4454
|
|
|
4451
4455
|
// src/roles/lint/resolve-oxlint.ts
|
|
4452
|
-
import { existsSync as existsSync19 } from "fs";
|
|
4453
|
-
import { createRequire as createRequire3 } from "module";
|
|
4454
|
-
import { delimiter as delimiter2, dirname as dirname3, join as join22 } from "path";
|
|
4455
|
-
import { fileURLToPath } from "url";
|
|
4456
|
+
import { existsSync as existsSync19 } from "node:fs";
|
|
4457
|
+
import { createRequire as createRequire3 } from "node:module";
|
|
4458
|
+
import { delimiter as delimiter2, dirname as dirname3, join as join22 } from "node:path";
|
|
4459
|
+
import { fileURLToPath } from "node:url";
|
|
4456
4460
|
var PACKAGE_OF = {
|
|
4457
4461
|
oxlint: "oxlint",
|
|
4458
4462
|
tsgolint: "oxlint-tsgolint"
|
|
@@ -4494,12 +4498,12 @@ function oxlintSearchPath(cwd) {
|
|
|
4494
4498
|
}
|
|
4495
4499
|
|
|
4496
4500
|
// src/roles/lint/adapters/oxlint/plan.ts
|
|
4497
|
-
import { existsSync as existsSync21, readFileSync as readFileSync19 } from "fs";
|
|
4498
|
-
import { join as join25 } from "path";
|
|
4501
|
+
import { existsSync as existsSync21, readFileSync as readFileSync19 } from "node:fs";
|
|
4502
|
+
import { join as join25 } from "node:path";
|
|
4499
4503
|
|
|
4500
4504
|
// src/roles/lint/eslint-ignores.ts
|
|
4501
|
-
import { existsSync as existsSync20, readFileSync as readFileSync17 } from "fs";
|
|
4502
|
-
import { join as join23 } from "path";
|
|
4505
|
+
import { existsSync as existsSync20, readFileSync as readFileSync17 } from "node:fs";
|
|
4506
|
+
import { join as join23 } from "node:path";
|
|
4503
4507
|
import { parseSync as parseSync2 } from "oxc-parser";
|
|
4504
4508
|
|
|
4505
4509
|
// src/shared/ast.ts
|
|
@@ -4623,8 +4627,8 @@ function lintPresetFor(preset) {
|
|
|
4623
4627
|
}
|
|
4624
4628
|
|
|
4625
4629
|
// src/roles/lint/rename-suppressions.ts
|
|
4626
|
-
import { readdirSync as readdirSync2, readFileSync as readFileSync18, statSync as statSync3 } from "fs";
|
|
4627
|
-
import { join as join24, relative as relative3 } from "path";
|
|
4630
|
+
import { readdirSync as readdirSync2, readFileSync as readFileSync18, statSync as statSync3 } from "node:fs";
|
|
4631
|
+
import { join as join24, relative as relative3 } from "node:path";
|
|
4628
4632
|
var SOURCE_EXTENSIONS = [
|
|
4629
4633
|
".ts",
|
|
4630
4634
|
".tsx",
|
|
@@ -5401,10 +5405,10 @@ function registerLint() {
|
|
|
5401
5405
|
}
|
|
5402
5406
|
|
|
5403
5407
|
// src/roles/test/adapters/vitest/vitest.adapter.ts
|
|
5404
|
-
import { spawnSync as spawnSync5 } from "child_process";
|
|
5405
|
-
import { mkdtempSync as mkdtempSync2, readFileSync as readFileSync30 } from "fs";
|
|
5406
|
-
import { tmpdir as tmpdir2 } from "os";
|
|
5407
|
-
import { isAbsolute as isAbsolute3, join as join38, resolve as resolve6 } from "path";
|
|
5408
|
+
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
5409
|
+
import { mkdtempSync as mkdtempSync2, readFileSync as readFileSync30 } from "node:fs";
|
|
5410
|
+
import { tmpdir as tmpdir2 } from "node:os";
|
|
5411
|
+
import { isAbsolute as isAbsolute3, join as join38, resolve as resolve6 } from "node:path";
|
|
5408
5412
|
|
|
5409
5413
|
// src/roles/test/presets/toolchain.json
|
|
5410
5414
|
var toolchain_default2 = {
|
|
@@ -5481,18 +5485,18 @@ function testTarget(options) {
|
|
|
5481
5485
|
}
|
|
5482
5486
|
|
|
5483
5487
|
// src/roles/test/jest-migration.ts
|
|
5484
|
-
import { existsSync as existsSync30, readFileSync as readFileSync28, readdirSync as readdirSync8 } from "fs";
|
|
5485
|
-
import { createRequire as createRequire6 } from "module";
|
|
5486
|
-
import { dirname as dirname8, join as join36, relative as relative7 } from "path";
|
|
5488
|
+
import { existsSync as existsSync30, readFileSync as readFileSync28, readdirSync as readdirSync8 } from "node:fs";
|
|
5489
|
+
import { createRequire as createRequire6 } from "node:module";
|
|
5490
|
+
import { dirname as dirname8, join as join36, relative as relative7 } from "node:path";
|
|
5487
5491
|
|
|
5488
5492
|
// src/roles/test/codemod/migrate-module.ts
|
|
5489
|
-
import { readdirSync as readdirSync6, readFileSync as readFileSync25, statSync as statSync6 } from "fs";
|
|
5490
|
-
import { join as join31 } from "path";
|
|
5493
|
+
import { readdirSync as readdirSync6, readFileSync as readFileSync25, statSync as statSync6 } from "node:fs";
|
|
5494
|
+
import { join as join31 } from "node:path";
|
|
5491
5495
|
import { parseSync as parseSync8 } from "oxc-parser";
|
|
5492
5496
|
|
|
5493
5497
|
// src/roles/test/read-adoption.ts
|
|
5494
|
-
import { existsSync as existsSync23, readFileSync as readFileSync21, readdirSync as readdirSync3 } from "fs";
|
|
5495
|
-
import { join as join27, relative as relative4 } from "path";
|
|
5498
|
+
import { existsSync as existsSync23, readFileSync as readFileSync21, readdirSync as readdirSync3 } from "node:fs";
|
|
5499
|
+
import { join as join27, relative as relative4 } from "node:path";
|
|
5496
5500
|
var JEST_CONFIG_FILES = [
|
|
5497
5501
|
"jest.config.ts",
|
|
5498
5502
|
"jest.config.js",
|
|
@@ -6473,9 +6477,9 @@ ${source}`;
|
|
|
6473
6477
|
}
|
|
6474
6478
|
|
|
6475
6479
|
// src/roles/test/codemod/named-rules.ts
|
|
6476
|
-
import { existsSync as existsSync24, readFileSync as readFileSync22 } from "fs";
|
|
6477
|
-
import { createRequire as createRequire4 } from "module";
|
|
6478
|
-
import { dirname as dirname4, join as join28 } from "path";
|
|
6480
|
+
import { existsSync as existsSync24, readFileSync as readFileSync22 } from "node:fs";
|
|
6481
|
+
import { createRequire as createRequire4 } from "node:module";
|
|
6482
|
+
import { dirname as dirname4, join as join28 } from "node:path";
|
|
6479
6483
|
function isCommonJsPackage(fromFile, specifier) {
|
|
6480
6484
|
if (specifier.startsWith(".") || specifier.startsWith("/")) return false;
|
|
6481
6485
|
let resolved;
|
|
@@ -7189,9 +7193,9 @@ function propagateAwait(fileName, source, original, elsewhere = /* @__PURE__ */
|
|
|
7189
7193
|
}
|
|
7190
7194
|
|
|
7191
7195
|
// src/roles/test/codemod/reexport-barrel-mock.ts
|
|
7192
|
-
import { readFileSync as readFileSync23, readdirSync as readdirSync4, statSync as statSync4 } from "fs";
|
|
7193
|
-
import { createRequire as createRequire5 } from "module";
|
|
7194
|
-
import { dirname as dirname5, join as join29 } from "path";
|
|
7196
|
+
import { readFileSync as readFileSync23, readdirSync as readdirSync4, statSync as statSync4 } from "node:fs";
|
|
7197
|
+
import { createRequire as createRequire5 } from "node:module";
|
|
7198
|
+
import { dirname as dirname5, join as join29 } from "node:path";
|
|
7195
7199
|
var MEMBER_TYPES13 = /* @__PURE__ */ new Set(["MemberExpression", "StaticMemberExpression"]);
|
|
7196
7200
|
var PACKAGE_SUBPATH = /^(@[^/]+\/[^/]+|[^@.][^/]*)\/(.+)$/;
|
|
7197
7201
|
var PURE_REEXPORT = /^module\.exports\s*=\s*require\(\s*(['"])([^'"]+)\1\s*\)\s*;?$/;
|
|
@@ -7507,8 +7511,8 @@ function migrateTestFile(fileName, source, defaultImported = /* @__PURE__ */ new
|
|
|
7507
7511
|
}
|
|
7508
7512
|
|
|
7509
7513
|
// src/roles/test/codemod/test-support-files.ts
|
|
7510
|
-
import { existsSync as existsSync25, readFileSync as readFileSync24, readdirSync as readdirSync5, statSync as statSync5 } from "fs";
|
|
7511
|
-
import { dirname as dirname6, join as join30, relative as relative5, resolve as resolve4 } from "path";
|
|
7514
|
+
import { existsSync as existsSync25, readFileSync as readFileSync24, readdirSync as readdirSync5, statSync as statSync5 } from "node:fs";
|
|
7515
|
+
import { dirname as dirname6, join as join30, relative as relative5, resolve as resolve4 } from "node:path";
|
|
7512
7516
|
var SKIPPED = /* @__PURE__ */ new Set(["node_modules", "dist", "coverage", ".git", ".vite"]);
|
|
7513
7517
|
var TEST_FILE2 = /\.(spec|test)\.[cm]?[jt]sx?$/;
|
|
7514
7518
|
var SOURCE_FILE = /\.[cm]?[jt]sx?$/;
|
|
@@ -7713,8 +7717,8 @@ function migrateModuleTests(cwd, setupFiles = []) {
|
|
|
7713
7717
|
}
|
|
7714
7718
|
|
|
7715
7719
|
// src/roles/test/nest/generate-config.ts
|
|
7716
|
-
import { existsSync as existsSync26, readdirSync as readdirSync7, readFileSync as readFileSync26, statSync as statSync7 } from "fs";
|
|
7717
|
-
import { join as join32, relative as relative6 } from "path";
|
|
7720
|
+
import { existsSync as existsSync26, readdirSync as readdirSync7, readFileSync as readFileSync26, statSync as statSync7 } from "node:fs";
|
|
7721
|
+
import { join as join32, relative as relative6 } from "node:path";
|
|
7718
7722
|
var NEST_TEST_PRESET_SPECIFIER = "@hublo/sentinel/test/nest";
|
|
7719
7723
|
var REACT_TEST_PRESET_SPECIFIER = "@hublo/sentinel/test/react";
|
|
7720
7724
|
function flavourOf(reading) {
|
|
@@ -7913,8 +7917,8 @@ ${overrides.join("\n")}
|
|
|
7913
7917
|
}
|
|
7914
7918
|
|
|
7915
7919
|
// src/roles/test/nest/read-jest-config.ts
|
|
7916
|
-
import { existsSync as existsSync27, readFileSync as readFileSync27 } from "fs";
|
|
7917
|
-
import { join as join33 } from "path";
|
|
7920
|
+
import { existsSync as existsSync27, readFileSync as readFileSync27 } from "node:fs";
|
|
7921
|
+
import { join as join33 } from "node:path";
|
|
7918
7922
|
var CARRIED = [
|
|
7919
7923
|
"testEnvironment",
|
|
7920
7924
|
"coverageDirectory",
|
|
@@ -8216,8 +8220,8 @@ function readJestConfig(cwd, named) {
|
|
|
8216
8220
|
}
|
|
8217
8221
|
|
|
8218
8222
|
// src/roles/test/nest/run-modes.ts
|
|
8219
|
-
import { existsSync as existsSync28 } from "fs";
|
|
8220
|
-
import { basename as basename2, join as join34 } from "path";
|
|
8223
|
+
import { existsSync as existsSync28 } from "node:fs";
|
|
8224
|
+
import { basename as basename2, join as join34 } from "node:path";
|
|
8221
8225
|
var JEST_EXECUTOR = "@nx/jest:jest";
|
|
8222
8226
|
var PRIMARY_CONFIG_FILE = "vitest.config.mts";
|
|
8223
8227
|
var PRIMARY_TARGET = "test";
|
|
@@ -8263,8 +8267,8 @@ function runModes(cwd, fallback) {
|
|
|
8263
8267
|
}
|
|
8264
8268
|
|
|
8265
8269
|
// src/roles/test/written-file-formatter.ts
|
|
8266
|
-
import { existsSync as existsSync29 } from "fs";
|
|
8267
|
-
import { dirname as dirname7, join as join35 } from "path";
|
|
8270
|
+
import { existsSync as existsSync29 } from "node:fs";
|
|
8271
|
+
import { dirname as dirname7, join as join35 } from "node:path";
|
|
8268
8272
|
var PRETTIER_CONFIGS = [
|
|
8269
8273
|
".prettierrc",
|
|
8270
8274
|
".prettierrc.json",
|
|
@@ -8647,11 +8651,11 @@ function plan3(context) {
|
|
|
8647
8651
|
}
|
|
8648
8652
|
|
|
8649
8653
|
// src/roles/test/reference.ts
|
|
8650
|
-
import { execFileSync } from "child_process";
|
|
8651
|
-
import { createHash } from "crypto";
|
|
8652
|
-
import { existsSync as existsSync31, mkdirSync, mkdtempSync, readFileSync as readFileSync29, rmSync as rmSync3, writeFileSync as writeFileSync3 } from "fs";
|
|
8653
|
-
import { tmpdir } from "os";
|
|
8654
|
-
import { join as join37, resolve as resolve5 } from "path";
|
|
8654
|
+
import { execFileSync } from "node:child_process";
|
|
8655
|
+
import { createHash } from "node:crypto";
|
|
8656
|
+
import { existsSync as existsSync31, mkdirSync, mkdtempSync, readFileSync as readFileSync29, rmSync as rmSync3, writeFileSync as writeFileSync3 } from "node:fs";
|
|
8657
|
+
import { tmpdir } from "node:os";
|
|
8658
|
+
import { join as join37, resolve as resolve5 } from "node:path";
|
|
8655
8659
|
|
|
8656
8660
|
// src/roles/test/baseline.ts
|
|
8657
8661
|
function readSnapshot(report) {
|
|
@@ -9186,10 +9190,10 @@ function registerTest() {
|
|
|
9186
9190
|
}
|
|
9187
9191
|
|
|
9188
9192
|
// src/roles/typescript/adapters/tsc/tsc.adapter.ts
|
|
9189
|
-
import { spawnSync as spawnSync6 } from "child_process";
|
|
9190
|
-
import { existsSync as existsSync32, readFileSync as readFileSync32 } from "fs";
|
|
9191
|
-
import { createRequire as createRequire7 } from "module";
|
|
9192
|
-
import { join as join40 } from "path";
|
|
9193
|
+
import { spawnSync as spawnSync6 } from "node:child_process";
|
|
9194
|
+
import { existsSync as existsSync32, readFileSync as readFileSync32 } from "node:fs";
|
|
9195
|
+
import { createRequire as createRequire7 } from "node:module";
|
|
9196
|
+
import { join as join40 } from "node:path";
|
|
9193
9197
|
|
|
9194
9198
|
// src/roles/typescript/presets/nest.json
|
|
9195
9199
|
var nest_default2 = {
|
|
@@ -9370,8 +9374,8 @@ function readTsconfigAdoption(cwd) {
|
|
|
9370
9374
|
}
|
|
9371
9375
|
|
|
9372
9376
|
// src/roles/typescript/adapters/tsc/plan.ts
|
|
9373
|
-
import { readFileSync as readFileSync31 } from "fs";
|
|
9374
|
-
import { join as join39 } from "path";
|
|
9377
|
+
import { readFileSync as readFileSync31 } from "node:fs";
|
|
9378
|
+
import { join as join39 } from "node:path";
|
|
9375
9379
|
|
|
9376
9380
|
// src/roles/typescript/typecheck-script.ts
|
|
9377
9381
|
var SENTINEL_TYPECHECK_COMMAND = "sentinel --run --typescript";
|
|
@@ -9876,7 +9880,7 @@ function detectFramework(packageJson) {
|
|
|
9876
9880
|
}
|
|
9877
9881
|
|
|
9878
9882
|
// src/core/dispatch.ts
|
|
9879
|
-
import { basename as basename3 } from "path";
|
|
9883
|
+
import { basename as basename3 } from "node:path";
|
|
9880
9884
|
|
|
9881
9885
|
// src/shared/text.ts
|
|
9882
9886
|
function ensureLines(current, lines) {
|
|
@@ -9932,8 +9936,8 @@ function replaceLines(current, replacements) {
|
|
|
9932
9936
|
}
|
|
9933
9937
|
|
|
9934
9938
|
// src/core/apply-plan.ts
|
|
9935
|
-
import { existsSync as existsSync33, readFileSync as readFileSync33, renameSync, rmSync as rmSync4, writeFileSync as writeFileSync4 } from "fs";
|
|
9936
|
-
import { resolve as resolve7, sep } from "path";
|
|
9939
|
+
import { existsSync as existsSync33, readFileSync as readFileSync33, renameSync, rmSync as rmSync4, writeFileSync as writeFileSync4 } from "node:fs";
|
|
9940
|
+
import { resolve as resolve7, sep } from "node:path";
|
|
9937
9941
|
import { applyEdits as applyEdits3, findNodeAtLocation, modify, parseTree } from "jsonc-parser";
|
|
9938
9942
|
|
|
9939
9943
|
// src/shared/deep-merge.ts
|
|
@@ -10069,8 +10073,8 @@ function applyPlan(cwd, plan4) {
|
|
|
10069
10073
|
}
|
|
10070
10074
|
|
|
10071
10075
|
// src/core/config/preset-evidence.ts
|
|
10072
|
-
import { existsSync as existsSync34, readdirSync as readdirSync9, readFileSync as readFileSync34 } from "fs";
|
|
10073
|
-
import { join as join41 } from "path";
|
|
10076
|
+
import { existsSync as existsSync34, readdirSync as readdirSync9, readFileSync as readFileSync34 } from "node:fs";
|
|
10077
|
+
import { join as join41 } from "node:path";
|
|
10074
10078
|
var PATH_SIGNALS = [
|
|
10075
10079
|
{
|
|
10076
10080
|
preset: "nest",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/shared/package-json.ts
|
|
2
|
-
import { existsSync, readFileSync } from "fs";
|
|
3
|
-
import { basename, dirname, join } from "path";
|
|
4
|
-
import { fileURLToPath } from "url";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { basename, dirname, join } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
5
|
function readOwnPackage() {
|
|
6
6
|
let dir = dirname(fileURLToPath(import.meta.url));
|
|
7
7
|
for (; ; ) {
|
|
@@ -51,8 +51,8 @@ function moduleName(dir) {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// src/core/workspace-prep.ts
|
|
54
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync } from "fs";
|
|
55
|
-
import { dirname as dirname2, join as join2, relative } from "path";
|
|
54
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync } from "node:fs";
|
|
55
|
+
import { dirname as dirname2, join as join2, relative } from "node:path";
|
|
56
56
|
|
|
57
57
|
// src/core/settings.ts
|
|
58
58
|
var WORKSPACE_ROOT_MARKER = "nx.json";
|
|
@@ -261,4 +261,4 @@ export {
|
|
|
261
261
|
ensureWorkspacePrep,
|
|
262
262
|
inspectWorkspacePrep
|
|
263
263
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
264
|
+
//# sourceMappingURL=chunk-NW6UHNYX.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NW6UHNYX.js";
|
|
4
4
|
|
|
5
5
|
// src/roles/test/setup/workspace.ts
|
|
6
|
-
import { createRequire } from "module";
|
|
7
|
-
import { join } from "path";
|
|
6
|
+
import { createRequire } from "node:module";
|
|
7
|
+
import { join } from "node:path";
|
|
8
8
|
function isMissingModule(error) {
|
|
9
9
|
return error?.code === "ERR_MODULE_NOT_FOUND";
|
|
10
10
|
}
|
|
@@ -67,4 +67,4 @@ export {
|
|
|
67
67
|
installWorkspaceSetup,
|
|
68
68
|
pinWorkspaceTimezone
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
70
|
+
//# sourceMappingURL=chunk-TKDVAYYV.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decoratorMetadata,
|
|
3
3
|
tsconfigAliases
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3ZKTXODW.js";
|
|
5
5
|
|
|
6
6
|
// src/roles/test/shared-test-config.ts
|
|
7
|
-
import { existsSync } from "fs";
|
|
8
|
-
import { createRequire } from "module";
|
|
9
|
-
import { dirname, join } from "path";
|
|
10
|
-
import { fileURLToPath } from "url";
|
|
7
|
+
import { existsSync } from "node:fs";
|
|
8
|
+
import { createRequire } from "node:module";
|
|
9
|
+
import { dirname, join } from "node:path";
|
|
10
|
+
import { fileURLToPath } from "node:url";
|
|
11
11
|
|
|
12
12
|
// src/roles/test/msw-server-redirect.ts
|
|
13
13
|
var WORKSPACE_MSW_SERVER = /(^|\/)msw\/server\.[cm]?[jt]sx?$/;
|
|
@@ -424,4 +424,4 @@ export {
|
|
|
424
424
|
jestExportConditions,
|
|
425
425
|
sharedTestConfig
|
|
426
426
|
};
|
|
427
|
-
//# sourceMappingURL=chunk-
|
|
427
|
+
//# sourceMappingURL=chunk-ZV5KMOS7.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decoratorMetadata,
|
|
3
3
|
tsconfigAliases
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-3ZKTXODW.js";
|
|
5
5
|
|
|
6
6
|
// src/roles/build/nest/nest-service.ts
|
|
7
|
-
import { join as join3 } from "path";
|
|
7
|
+
import { join as join3 } from "node:path";
|
|
8
8
|
import { mergeConfig } from "vite";
|
|
9
9
|
|
|
10
10
|
// src/roles/build/nest/copy-assets.ts
|
|
11
|
-
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "fs";
|
|
12
|
-
import { dirname, join, relative, sep } from "path";
|
|
11
|
+
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
12
|
+
import { dirname, join, relative, sep } from "node:path";
|
|
13
13
|
function globToRegExp(glob) {
|
|
14
14
|
let pattern = "";
|
|
15
15
|
for (let index = 0; index < glob.length; index++) {
|
|
@@ -82,9 +82,9 @@ var copyAssets = (options) => ({
|
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
// src/roles/build/nest/node-manifest.ts
|
|
85
|
-
import { existsSync as existsSync2, writeFileSync } from "fs";
|
|
86
|
-
import { isBuiltin } from "module";
|
|
87
|
-
import { join as join2 } from "path";
|
|
85
|
+
import { existsSync as existsSync2, writeFileSync } from "node:fs";
|
|
86
|
+
import { isBuiltin } from "node:module";
|
|
87
|
+
import { join as join2 } from "node:path";
|
|
88
88
|
var DEFAULT_PROVIDED_BY_IMAGE = ["@prisma"];
|
|
89
89
|
var externalPackages = (bundle) => {
|
|
90
90
|
const emitted = new Set(Object.keys(bundle));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sharedTestConfig
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-ZV5KMOS7.js";
|
|
4
4
|
import {
|
|
5
5
|
decoratorMetadata,
|
|
6
6
|
tsconfigAliases
|
|
7
|
-
} from "../../../chunk-
|
|
7
|
+
} from "../../../chunk-3ZKTXODW.js";
|
|
8
8
|
|
|
9
9
|
// src/roles/test/nest/toolchain.ts
|
|
10
10
|
import { defineConfig, mergeConfig } from "vitest/config";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jestExportConditions,
|
|
3
3
|
sharedTestConfig
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-ZV5KMOS7.js";
|
|
5
|
+
import "../../../chunk-3ZKTXODW.js";
|
|
6
6
|
|
|
7
7
|
// src/roles/test/react/toolchain.ts
|
|
8
8
|
import { defineConfig, mergeConfig } from "vitest/config";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
installWorkspaceSetup
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TKDVAYYV.js";
|
|
4
4
|
import {
|
|
5
5
|
clearDeepMocks,
|
|
6
6
|
resetDeepMocks
|
|
7
7
|
} from "../../../chunk-2XLX6PFR.js";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-NW6UHNYX.js";
|
|
9
9
|
|
|
10
10
|
// src/roles/test/setup/jest-parity.ts
|
|
11
11
|
import { expect, vi } from "vitest";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pinWorkspaceTimezone
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-TKDVAYYV.js";
|
|
4
|
+
import "../../../chunk-NW6UHNYX.js";
|
|
5
5
|
|
|
6
6
|
// src/roles/test/setup/workspace-entry.ts
|
|
7
7
|
await pinWorkspaceTimezone();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.4.0-alpha.
|
|
3
|
+
"version": "1.4.0-alpha.20",
|
|
4
4
|
"description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|