@antelopejs/tooling-configs 0.7.3 → 0.7.4
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 +31 -3
- package/dist/bin/api-diff.mjs +16 -16
- package/dist/bin/body-check.mjs +1 -1
- package/dist/bin/check-size.mjs +1 -1
- package/dist/bin/checks.mjs +1 -1
- package/dist/bin/comment-proof.mjs +2 -2
- package/dist/bin/ratchet.mjs +3 -3
- package/dist/bin/readme-strip.mjs +1 -1
- package/dist/bin/suppressions.mjs +3 -3
- package/dist/bin/sync.mjs +41 -28
- package/dist/bin/tsc.d.mts +1 -0
- package/dist/bin/tsc.mjs +24 -0
- package/dist/bin/verify.mjs +89 -89
- package/dist/{checks-CSlWvky1.mjs → checks-BTFf0Evy.mjs} +31 -33
- package/dist/{docs-compat-BAZiPLZt.mjs → docs-compat-BmczGA1d.mjs} +1 -1
- package/dist/eslint.mjs +1 -1
- package/dist/{guardrails-nj7NTglr.mjs → guardrails-CNmSFSxO.mjs} +120 -120
- package/dist/{installed-typescript-6MtIWlE4.mjs → installed-typescript-CF_FR9DV.mjs} +17 -17
- package/dist/oxc/guardrails/index.mjs +1 -1
- package/dist/oxc/lint.mjs +1 -1
- package/dist/{package-DDG3YH7W.mjs → package-1pH5I0TF.mjs} +3 -7
- package/dist/{proof-stamp-BFV7JTZT.mjs → proof-stamp-Bg4ULLvr.mjs} +2 -2
- package/dist/{ratchet-DLCfeaPY.mjs → ratchet-CPpvIU6Y.mjs} +2 -2
- package/dist/{suppression-base-CYaLZAq7.mjs → suppression-base-CDiFJse2.mjs} +2 -2
- package/dist/{suppression-budget-CPDSFg4X.mjs → suppression-budget-BeJIgSTO.mjs} +1 -1
- package/dist/{suppressions-CxPnh4sC.mjs → suppressions-BvWGA463.mjs} +5 -1
- package/dist/{templates-HG0fel2S.mjs → templates-Df6SlGLA.mjs} +1 -1
- package/dist/{typescript-QfxkJYzd.mjs → typescript-B0df00nl.mjs} +13 -13
- package/dist/typescript-version-CptQKjGz.mjs +18 -0
- package/dist/typescript6-BWqCcXGY.mjs +2 -0
- package/dist/typescript6-HdyOMBv3.mjs +8 -0
- package/package.json +27 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { t as typescript6_default } from "./typescript6-HdyOMBv3.mjs";
|
|
1
2
|
import { createRequire } from "node:module";
|
|
2
3
|
import { readFileSync } from "node:fs";
|
|
3
4
|
import { join } from "node:path";
|
|
4
|
-
import ts from "@typescript/typescript6";
|
|
5
5
|
//#region src/guardrails/installed-typescript.ts
|
|
6
6
|
/** The major version of the `typescript` that `directory` resolves, the compiler its own `tsc` runs; undefined when none resolves. */
|
|
7
7
|
function installedTypeScriptMajor(directory) {
|
|
@@ -16,31 +16,31 @@ function installedTypeScriptMajor(directory) {
|
|
|
16
16
|
return Number.isNaN(major) ? void 0 : major;
|
|
17
17
|
}
|
|
18
18
|
/** The first `module` from which TypeScript 5 turns on `esModuleInterop` by default: `node16` through `nodenext`, and `preserve` above them. */
|
|
19
|
-
const FIRST_NODE_MODULE =
|
|
19
|
+
const FIRST_NODE_MODULE = typescript6_default.ModuleKind.Node16;
|
|
20
20
|
/** How TypeScript 5 resolves modules when the config sets no `moduleResolution`, by `module`. */
|
|
21
21
|
function typescript5Resolution(module) {
|
|
22
|
-
if (module ===
|
|
23
|
-
if (module ===
|
|
24
|
-
if (module ===
|
|
22
|
+
if (module === typescript6_default.ModuleKind.CommonJS) return "node10";
|
|
23
|
+
if (module === typescript6_default.ModuleKind.Preserve) return "bundler";
|
|
24
|
+
if (module === typescript6_default.ModuleKind.NodeNext) return "nodenext";
|
|
25
25
|
if (module >= FIRST_NODE_MODULE) return "node16";
|
|
26
26
|
return "classic";
|
|
27
27
|
}
|
|
28
28
|
/** The `target` TypeScript 5 defaults to for a `module`, with its tsconfig spelling: the Node module kinds imply one, every other kind gets ES5. */
|
|
29
29
|
function typescript5Target(module) {
|
|
30
|
-
if (module ===
|
|
31
|
-
kind:
|
|
30
|
+
if (module === typescript6_default.ModuleKind.Node16 || module === typescript6_default.ModuleKind.Node18) return {
|
|
31
|
+
kind: typescript6_default.ScriptTarget.ES2022,
|
|
32
32
|
name: "es2022"
|
|
33
33
|
};
|
|
34
|
-
if (module ===
|
|
35
|
-
kind:
|
|
34
|
+
if (module === typescript6_default.ModuleKind.Node20) return {
|
|
35
|
+
kind: typescript6_default.ScriptTarget.ES2023,
|
|
36
36
|
name: "es2023"
|
|
37
37
|
};
|
|
38
|
-
if (module ===
|
|
39
|
-
kind:
|
|
38
|
+
if (module === typescript6_default.ModuleKind.NodeNext) return {
|
|
39
|
+
kind: typescript6_default.ScriptTarget.ESNext,
|
|
40
40
|
name: "esnext"
|
|
41
41
|
};
|
|
42
42
|
return {
|
|
43
|
-
kind:
|
|
43
|
+
kind: typescript6_default.ScriptTarget.ES5,
|
|
44
44
|
name: "es5"
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -48,9 +48,9 @@ function typescript5Target(module) {
|
|
|
48
48
|
function typescript5Defaults(options) {
|
|
49
49
|
const defaultTarget = typescript5Target(options.module);
|
|
50
50
|
const target = options.target ?? defaultTarget.kind;
|
|
51
|
-
const module = options.module ?? (target >=
|
|
51
|
+
const module = options.module ?? (target >= typescript6_default.ScriptTarget.ES2015 ? typescript6_default.ModuleKind.ES2015 : typescript6_default.ModuleKind.CommonJS);
|
|
52
52
|
const moduleResolution = typescript5Resolution(module);
|
|
53
|
-
const bundler = options.moduleResolution === void 0 ? moduleResolution === "bundler" : options.moduleResolution ===
|
|
53
|
+
const bundler = options.moduleResolution === void 0 ? moduleResolution === "bundler" : options.moduleResolution === typescript6_default.ModuleResolutionKind.Bundler;
|
|
54
54
|
const esModuleInterop = options.esModuleInterop ?? module >= FIRST_NODE_MODULE;
|
|
55
55
|
return {
|
|
56
56
|
strict: false,
|
|
@@ -58,10 +58,10 @@ function typescript5Defaults(options) {
|
|
|
58
58
|
types: ["*"],
|
|
59
59
|
noUncheckedSideEffectImports: false,
|
|
60
60
|
target: defaultTarget.name,
|
|
61
|
-
module: module ===
|
|
61
|
+
module: module === typescript6_default.ModuleKind.CommonJS ? "commonjs" : "es2015",
|
|
62
62
|
moduleResolution,
|
|
63
63
|
esModuleInterop,
|
|
64
|
-
allowSyntheticDefaultImports: esModuleInterop || module ===
|
|
64
|
+
allowSyntheticDefaultImports: esModuleInterop || module === typescript6_default.ModuleKind.System || bundler
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
/** The `compilerOptions`, as a tsconfig spells them, that make the pack's TypeScript 6 read a config as the `major` a package installs does: for TypeScript 5, its own default for each option TypeScript 6 changed and the config leaves unset, and `ignoreDeprecations: "6.0"`, so the options TypeScript 6 deprecated still compile as TypeScript 5 accepts them. Empty for TypeScript 6 and 7, which share these defaults, and for an unknown major, read as the newest. */
|
|
@@ -77,7 +77,7 @@ function installedCompilerDefaults(options, major) {
|
|
|
77
77
|
function asInstalledCompilerReads(options, major) {
|
|
78
78
|
return {
|
|
79
79
|
...options,
|
|
80
|
-
...
|
|
80
|
+
...typescript6_default.convertCompilerOptionsFromJson(installedCompilerDefaults(options, major), "").options
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as TEST_FILE_GLOBS, t as ASSERTION_FUNCTION_NAMES } from "../../shared-WC0z3y9F.mjs";
|
|
2
|
-
import { t as guardrailsPlugin } from "../../guardrails-
|
|
2
|
+
import { t as guardrailsPlugin } from "../../guardrails-CNmSFSxO.mjs";
|
|
3
3
|
export { ASSERTION_FUNCTION_NAMES, TEST_FILE_GLOBS, guardrailsPlugin as default };
|
package/dist/oxc/lint.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as findGitRoot } from "../ceilings-B7KayYIG.mjs";
|
|
2
2
|
import { t as readCarriedCeilings } from "../renames-L2owF5GD.mjs";
|
|
3
|
-
import { t as PRESET_CONFIGS } from "../templates-
|
|
3
|
+
import { t as PRESET_CONFIGS } from "../templates-Df6SlGLA.mjs";
|
|
4
4
|
import { n as typeAwareRuleSetting, t as TYPE_AWARE_RULES } from "../type-aware-rules-BxhHbizU.mjs";
|
|
5
5
|
import { n as TEST_FILE_GLOBS, t as ASSERTION_FUNCTION_NAMES } from "../shared-WC0z3y9F.mjs";
|
|
6
6
|
import { n as IGNORE_PATTERNS, r as SYNCED_AGENT_PATTERNS } from "../shared-BCFFyp3l.mjs";
|
|
@@ -52,12 +52,6 @@ function toolingRoot() {
|
|
|
52
52
|
directory = parent;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
/** The range of `spec` when it is the npm alias `npm:<name>@<range>`. */
|
|
56
|
-
function aliasedRange(spec, name) {
|
|
57
|
-
const prefix = `npm:${name}@`;
|
|
58
|
-
if (!spec.startsWith(prefix)) throw new Error(`tooling-configs must declare @typescript/native as ${prefix}<range>.`);
|
|
59
|
-
return spec.slice(prefix.length);
|
|
60
|
-
}
|
|
61
55
|
function toolingVersions() {
|
|
62
56
|
const manifest = parseManifest(readFileSync(join(toolingRoot(), "package.json"), "utf8"));
|
|
63
57
|
const dev = (name) => {
|
|
@@ -65,6 +59,8 @@ function toolingVersions() {
|
|
|
65
59
|
if (!range) throw new Error(`tooling-configs must declare ${name} in devDependencies.`);
|
|
66
60
|
return range;
|
|
67
61
|
};
|
|
62
|
+
const typescript = manifest.dependencies?.typescript;
|
|
63
|
+
if (!typescript) throw new Error("tooling-configs must declare typescript in dependencies.");
|
|
68
64
|
if (!manifest.version) throw new Error("tooling-configs must declare its version.");
|
|
69
65
|
return {
|
|
70
66
|
lefthook: dev("lefthook"),
|
|
@@ -72,7 +68,7 @@ function toolingVersions() {
|
|
|
72
68
|
tsgolint: dev("oxlint-tsgolint"),
|
|
73
69
|
oxlint: dev("oxlint"),
|
|
74
70
|
oxfmt: dev("oxfmt"),
|
|
75
|
-
typescript
|
|
71
|
+
typescript,
|
|
76
72
|
nodeTypes: dev("@types/node"),
|
|
77
73
|
capture: CAPTURE_PEERS.map((name) => [name, dev(name)]),
|
|
78
74
|
packageManager: packageManager$1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as parseManifest } from "./package-
|
|
1
|
+
import { s as parseManifest } from "./package-1pH5I0TF.mjs";
|
|
2
2
|
import { l as resolveRevision, u as trackedManifests } from "./files-C-JJhExM.mjs";
|
|
3
|
-
import { o as revisionSuppressions, r as countSuppressions } from "./suppressions-
|
|
3
|
+
import { o as revisionSuppressions, r as countSuppressions } from "./suppressions-BvWGA463.mjs";
|
|
4
4
|
import { copyFileSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, symlinkSync } from "node:fs";
|
|
5
5
|
import { dirname, isAbsolute, join, matchesGlob, relative, sep } from "node:path";
|
|
6
6
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as formatCeilings, c as parseCeilings, n as MAX_FILE_BYTES, o as isPackRelease, s as isRetired, t as CEILINGS_FILE } from "./ceilings-B7KayYIG.mjs";
|
|
2
2
|
import { n as renamedPaths, t as readCarriedCeilings } from "./renames-L2owF5GD.mjs";
|
|
3
|
-
import { f as toolingVersions } from "./package-
|
|
3
|
+
import { f as toolingVersions } from "./package-1pH5I0TF.mjs";
|
|
4
4
|
import { n as authoredSizes, o as isAgentFile, r as changedFiles, t as LINT_CONFIG } from "./files-C-JJhExM.mjs";
|
|
5
5
|
import { n as lintDiagnostics } from "./oxlint-CIeonWMB.mjs";
|
|
6
|
-
import "./suppression-budget-
|
|
6
|
+
import "./suppression-budget-BeJIgSTO.mjs";
|
|
7
7
|
import { n as sizeFailure } from "./size-CCGLY4Ke.mjs";
|
|
8
8
|
import { copyFileSync, existsSync, mkdirSync, mkdtempSync, rmSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { dirname, join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as resolveRevision, o as isAgentFile } from "./files-C-JJhExM.mjs";
|
|
2
|
-
import { a as parseBudget, n as SUPPRESSIONS_FILE, o as safetyCeiling, p as coveredLimits } from "./suppression-budget-
|
|
3
|
-
import { o as revisionSuppressions, r as countSuppressions } from "./suppressions-
|
|
2
|
+
import { a as parseBudget, n as SUPPRESSIONS_FILE, o as safetyCeiling, p as coveredLimits } from "./suppression-budget-BeJIgSTO.mjs";
|
|
3
|
+
import { o as revisionSuppressions, r as countSuppressions } from "./suppressions-BvWGA463.mjs";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as renamedPaths } from "./renames-L2owF5GD.mjs";
|
|
2
2
|
import { o as isAgentFile, r as changedFiles } from "./files-C-JJhExM.mjs";
|
|
3
|
-
import { a as openDisablesIn, i as inWorktree, l as worktreeSuppressions, n as configKey, o as revisionSuppressions, r as countSuppressions, s as sortedKeys, t as atRevision } from "./suppressions-
|
|
3
|
+
import { a as openDisablesIn, i as inWorktree, l as worktreeSuppressions, n as configKey, o as revisionSuppressions, r as countSuppressions, s as sortedKeys, t as atRevision } from "./suppressions-BvWGA463.mjs";
|
|
4
4
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { join, matchesGlob } from "node:path";
|
|
6
6
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { n as markerPattern, t as DEFAULT_SAFETY_MARKERS } from "./require-safety-comment-for-type-assertion-mnb0CIxa.mjs";
|
|
2
|
+
import { t as requireTypeScript6 } from "./typescript-version-CptQKjGz.mjs";
|
|
2
3
|
import { a as gitFiles, i as generatedOutput } from "./files-C-JJhExM.mjs";
|
|
3
4
|
import { createRequire } from "node:module";
|
|
4
5
|
import { existsSync, lstatSync, readFileSync } from "node:fs";
|
|
@@ -8,7 +9,10 @@ import { execFileSync } from "node:child_process";
|
|
|
8
9
|
let compiler;
|
|
9
10
|
/** This package's own TypeScript 6, loaded on first use, so the count never depends on the compiler a repository installs (TypeScript 7 has no parser API). */
|
|
10
11
|
function typescript() {
|
|
11
|
-
compiler
|
|
12
|
+
if (compiler) return compiler;
|
|
13
|
+
const loaded = createRequire(import.meta.url)("typescript");
|
|
14
|
+
requireTypeScript6(loaded.version);
|
|
15
|
+
compiler = loaded;
|
|
12
16
|
return compiler;
|
|
13
17
|
}
|
|
14
18
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as parseManifest } from "./package-
|
|
2
|
-
import {
|
|
1
|
+
import { s as parseManifest } from "./package-1pH5I0TF.mjs";
|
|
2
|
+
import { t as typescript6_default } from "./typescript6-HdyOMBv3.mjs";
|
|
3
|
+
import { n as installedCompilerDefaults, r as installedTypeScriptMajor } from "./installed-typescript-CF_FR9DV.mjs";
|
|
3
4
|
import { u as trackedManifests } from "./files-C-JJhExM.mjs";
|
|
4
|
-
import { n as workspaceDirectories, r as workspacePatterns } from "./docs-compat-
|
|
5
|
+
import { n as workspaceDirectories, r as workspacePatterns } from "./docs-compat-BmczGA1d.mjs";
|
|
5
6
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
6
7
|
import { dirname, join, matchesGlob, relative, resolve, sep } from "node:path";
|
|
7
|
-
import ts from "@typescript/typescript6";
|
|
8
8
|
//#region src/guardrails/declared-typescript.ts
|
|
9
9
|
const DEPENDENCY_FIELDS = [
|
|
10
10
|
"dependencies",
|
|
@@ -111,7 +111,7 @@ function isTestSource(root, file) {
|
|
|
111
111
|
return TEST_SOURCE_GLOBS.some((pattern) => matchesGlob(path, pattern));
|
|
112
112
|
}
|
|
113
113
|
function formatErrors(diagnostics) {
|
|
114
|
-
return
|
|
114
|
+
return typescript6_default.formatDiagnostics(diagnostics.filter((item) => item.category === typescript6_default.DiagnosticCategory.Error), {
|
|
115
115
|
getCanonicalFileName: (file) => file,
|
|
116
116
|
getCurrentDirectory: () => process.cwd(),
|
|
117
117
|
getNewLine: () => "\n"
|
|
@@ -145,9 +145,9 @@ function copyDeclarations(program, directory, output, modules) {
|
|
|
145
145
|
const EMPTY_FILES_LIST = 18002;
|
|
146
146
|
function readConfig(directory) {
|
|
147
147
|
const file = join(directory, "tsconfig.json");
|
|
148
|
-
const config =
|
|
148
|
+
const config = typescript6_default.readConfigFile(file, typescript6_default.sys.readFile);
|
|
149
149
|
if (config.error) failDiagnostics([config.error]);
|
|
150
|
-
return
|
|
150
|
+
return typescript6_default.parseJsonConfigFileContent(config.config, typescript6_default.sys, directory, void 0, file);
|
|
151
151
|
}
|
|
152
152
|
/** Parses `tsconfig.json` as the package's own `tsc -p` would from the package directory, failing on any configuration error. */
|
|
153
153
|
function parseConfig(directory) {
|
|
@@ -159,7 +159,7 @@ function parseConfig(directory) {
|
|
|
159
159
|
defaults,
|
|
160
160
|
options: {
|
|
161
161
|
...parsed.options,
|
|
162
|
-
...
|
|
162
|
+
...typescript6_default.convertCompilerOptionsFromJson(defaults, directory).options
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
}
|
|
@@ -171,8 +171,8 @@ function listsNoFiles(directory) {
|
|
|
171
171
|
/** The absolute paths of the configs `tsconfig.json` extends, directly or through another config. */
|
|
172
172
|
function extendedConfigs(directory) {
|
|
173
173
|
const file = join(directory, "tsconfig.json");
|
|
174
|
-
const source =
|
|
175
|
-
|
|
174
|
+
const source = typescript6_default.readJsonConfigFile(file, typescript6_default.sys.readFile);
|
|
175
|
+
typescript6_default.parseJsonSourceFileConfigFileContent(source, typescript6_default.sys, directory, void 0, file);
|
|
176
176
|
return (source.extendedSourceFiles ?? []).map((path) => resolve(path));
|
|
177
177
|
}
|
|
178
178
|
/** TypeScript records on parsed options, untyped, the directory of the config that declares `paths`, which its targets resolve against when no `baseUrl` is set. */
|
|
@@ -232,7 +232,7 @@ function emitPackage(directory, output, declarations) {
|
|
|
232
232
|
};
|
|
233
233
|
const rootNames = parsed.fileNames.filter((file) => !isTestSource(directory, file));
|
|
234
234
|
const projectReferences = parsed.projectReferences;
|
|
235
|
-
const laidOut =
|
|
235
|
+
const laidOut = typescript6_default.createProgram({
|
|
236
236
|
rootNames,
|
|
237
237
|
options: configured,
|
|
238
238
|
projectReferences
|
|
@@ -241,7 +241,7 @@ function emitPackage(directory, output, declarations) {
|
|
|
241
241
|
...configured,
|
|
242
242
|
rootDir: configured.rootDir ?? emitRoot(laidOut)
|
|
243
243
|
};
|
|
244
|
-
const program = configured.rootDir === void 0 ?
|
|
244
|
+
const program = configured.rootDir === void 0 ? typescript6_default.createProgram({
|
|
245
245
|
rootNames,
|
|
246
246
|
options,
|
|
247
247
|
projectReferences,
|
|
@@ -278,7 +278,7 @@ function emitPackage(directory, output, declarations) {
|
|
|
278
278
|
/** The formatted declaration errors of the modules `sources` reach; empty when there are none. A declaration error in a module no published entry reaches never fails the proof. */
|
|
279
279
|
declarationErrors(sources) {
|
|
280
280
|
if (!declarationDiagnostics.length) return "";
|
|
281
|
-
const reached = new Set(
|
|
281
|
+
const reached = new Set(typescript6_default.createProgram({
|
|
282
282
|
rootNames: sources,
|
|
283
283
|
options,
|
|
284
284
|
projectReferences: parsed.projectReferences,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/typescript-version.ts
|
|
2
|
+
/**
|
|
3
|
+
* Throws unless `version`, the version of the `typescript` the pack resolves, is TypeScript 6, the compiler API every
|
|
4
|
+
* analysis of the pack is written against. The pack depends on `typescript` ^6, so only an override of `typescript` in
|
|
5
|
+
* the project that installs it, which package managers apply to the pack's dependency too, yields another version; the
|
|
6
|
+
* message names the override that exempts the pack under each package manager.
|
|
7
|
+
*/
|
|
8
|
+
function requireTypeScript6(version) {
|
|
9
|
+
if (version.startsWith("6.")) return;
|
|
10
|
+
throw new Error([
|
|
11
|
+
`@antelopejs/tooling-configs needs TypeScript 6 for its analyses, but the typescript it resolves is ${version}, most likely forced by an override of typescript in this project. Exempt the pack from it, then install again:`,
|
|
12
|
+
` npm or bun, package.json: "overrides": { "@antelopejs/tooling-configs": { "typescript": "^6.0.2" } }`,
|
|
13
|
+
` pnpm, pnpm-workspace.yaml: overrides: { "@antelopejs/tooling-configs>typescript": "^6.0.2" }`,
|
|
14
|
+
` yarn 1, package.json: "resolutions": { "**/@antelopejs/tooling-configs/typescript": "^6.0.2" }, as the first key: yarn 1 applies the first that matches`
|
|
15
|
+
].join("\n"));
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { requireTypeScript6 as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as requireTypeScript6 } from "./typescript-version-CptQKjGz.mjs";
|
|
2
|
+
import ts from "typescript";
|
|
3
|
+
//#region src/typescript6.ts
|
|
4
|
+
requireTypeScript6(ts.version);
|
|
5
|
+
/** The pack's own TypeScript 6, checked on load: every module that uses the compiler API at runtime imports it from here. */
|
|
6
|
+
var typescript6_default = ts;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { typescript6_default as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/tooling-configs",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Shared tooling presets for AntelopeJS repositories: oxlint (with the vendored anti-slop rules), oxfmt, ESLint for Nuxt layers, Knip, and a dependency range check",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"antelopejs-suppressions": "./dist/bin/suppressions.mjs",
|
|
35
35
|
"antelopejs-sync": "./dist/bin/sync.mjs",
|
|
36
36
|
"antelopejs-triage": "./dist/bin/triage.mjs",
|
|
37
|
+
"antelopejs-tsc": "./dist/bin/tsc.mjs",
|
|
37
38
|
"antelopejs-verify": "./dist/bin/verify.mjs"
|
|
38
39
|
},
|
|
39
40
|
"files": [
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"format": "oxfmt .",
|
|
64
65
|
"prepack": "pnpm run build",
|
|
65
66
|
"release": "pnpm run lint && pnpm run typecheck && pnpm run prepack && release-it",
|
|
66
|
-
"typecheck": "tsc --noEmit",
|
|
67
|
+
"typecheck": "node src/bin/tsc.ts --noEmit",
|
|
67
68
|
"test": "node --test \"src/**/*.test.ts\"",
|
|
68
69
|
"checks": "node src/bin/checks.ts",
|
|
69
70
|
"format:check": "oxfmt --check .",
|
|
@@ -81,10 +82,10 @@
|
|
|
81
82
|
},
|
|
82
83
|
"dependencies": {
|
|
83
84
|
"@oxlint/plugins": "1.81.0",
|
|
84
|
-
"@typescript/typescript6": "^6.0.2",
|
|
85
85
|
"dts-bundle-generator": "^9.5.1",
|
|
86
86
|
"minimatch": "^10.2.6",
|
|
87
87
|
"semver": "^7.8.5",
|
|
88
|
+
"typescript": "^6.0.2",
|
|
88
89
|
"yaml": "^2.9.1"
|
|
89
90
|
},
|
|
90
91
|
"devDependencies": {
|
|
@@ -93,7 +94,6 @@
|
|
|
93
94
|
"@types/node": "^24.13.3",
|
|
94
95
|
"@types/semver": "^7.8.0",
|
|
95
96
|
"@typescript-eslint/parser": "8.69.0",
|
|
96
|
-
"@typescript/native": "npm:typescript@^7.0.2",
|
|
97
97
|
"eslint": "10.9.1",
|
|
98
98
|
"eslint-plugin-perfectionist": "^5.11.0",
|
|
99
99
|
"knip": "^6.34.0",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"release-it-changelogen": "^0.1.0",
|
|
109
109
|
"sharp": "^0.35.5",
|
|
110
110
|
"tsdown": "^0.22.14",
|
|
111
|
-
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
112
111
|
"typescript5": "npm:typescript@^5.9.3",
|
|
112
|
+
"typescript7": "npm:typescript@~7.0.2",
|
|
113
113
|
"vite": "^8.3.4"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
@@ -152,6 +152,28 @@
|
|
|
152
152
|
"optional": true
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
+
"optionalDependencies": {
|
|
156
|
+
"@typescript/typescript-aix-ppc64": "~7.0.2",
|
|
157
|
+
"@typescript/typescript-darwin-arm64": "~7.0.2",
|
|
158
|
+
"@typescript/typescript-darwin-x64": "~7.0.2",
|
|
159
|
+
"@typescript/typescript-freebsd-arm64": "~7.0.2",
|
|
160
|
+
"@typescript/typescript-freebsd-x64": "~7.0.2",
|
|
161
|
+
"@typescript/typescript-linux-arm": "~7.0.2",
|
|
162
|
+
"@typescript/typescript-linux-arm64": "~7.0.2",
|
|
163
|
+
"@typescript/typescript-linux-loong64": "~7.0.2",
|
|
164
|
+
"@typescript/typescript-linux-mips64el": "~7.0.2",
|
|
165
|
+
"@typescript/typescript-linux-ppc64": "~7.0.2",
|
|
166
|
+
"@typescript/typescript-linux-riscv64": "~7.0.2",
|
|
167
|
+
"@typescript/typescript-linux-s390x": "~7.0.2",
|
|
168
|
+
"@typescript/typescript-linux-x64": "~7.0.2",
|
|
169
|
+
"@typescript/typescript-netbsd-arm64": "~7.0.2",
|
|
170
|
+
"@typescript/typescript-netbsd-x64": "~7.0.2",
|
|
171
|
+
"@typescript/typescript-openbsd-arm64": "~7.0.2",
|
|
172
|
+
"@typescript/typescript-openbsd-x64": "~7.0.2",
|
|
173
|
+
"@typescript/typescript-sunos-x64": "~7.0.2",
|
|
174
|
+
"@typescript/typescript-win32-arm64": "~7.0.2",
|
|
175
|
+
"@typescript/typescript-win32-x64": "~7.0.2"
|
|
176
|
+
},
|
|
155
177
|
"engines": {
|
|
156
178
|
"node": ">=22.18.0"
|
|
157
179
|
},
|