@absolutejs/absolute 0.19.0-beta.1136 → 0.19.0-beta.1138
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +7 -8
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +55 -15
- package/dist/index.js +7 -8
- package/dist/index.js.map +3 -3
- package/dist/src/cli/scripts/eslint.d.ts +23 -1
- package/dist/src/cli/scripts/eslintChunked.d.ts +7 -0
- package/dist/src/cli/scripts/lintProof.d.ts +5 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1163,6 +1163,7 @@ var exports_eslintChunked = {};
|
|
|
1163
1163
|
__export(exports_eslintChunked, {
|
|
1164
1164
|
upstreamRef: () => upstreamRef,
|
|
1165
1165
|
ruleSummary: () => ruleSummary,
|
|
1166
|
+
resolveLintTargets: () => resolveLintTargets,
|
|
1166
1167
|
parseChunkedArgs: () => parseChunkedArgs,
|
|
1167
1168
|
gitVisibleFiles: () => gitVisibleFiles,
|
|
1168
1169
|
gitChangedFiles: () => gitChangedFiles,
|
|
@@ -1182,7 +1183,7 @@ var DEFAULT_CHUNK_SIZE = 20, DEFAULT_SHARDS = 4, DEFAULT_CONCURRENCY = 2, DEFAUL
|
|
|
1182
1183
|
const visible = gitVisibleFiles(cwd);
|
|
1183
1184
|
const matched = parsed.globs.length === 0 ? visible.filter((file) => LINTABLE_EXTENSIONS.test(file)) : visible.filter((file) => matchesAnyGlob(file, parsed.globs));
|
|
1184
1185
|
return matched.filter((file) => existsSync6(resolve4(cwd, file))).sort();
|
|
1185
|
-
}, buildShardChunks = (files, shards, chunkSize) => {
|
|
1186
|
+
}, resolveLintTargets = (args, cwd = process.cwd()) => resolveLintSet(parseChunkedArgs(args), cwd), buildShardChunks = (files, shards, chunkSize) => {
|
|
1186
1187
|
const shardFiles = Array.from({ length: shards }, () => []);
|
|
1187
1188
|
for (const file of files)
|
|
1188
1189
|
shardFiles[shardOf(file, shards)]?.push(file);
|
|
@@ -1407,7 +1408,7 @@ var DEFAULT_CACHE_LOCATION = ".absolutejs/eslint-cache", CACHE_CONTRACT_VERSION
|
|
|
1407
1408
|
return true;
|
|
1408
1409
|
}
|
|
1409
1410
|
return false;
|
|
1410
|
-
},
|
|
1411
|
+
}, findEslintConfigPath = (cwd = process.cwd()) => {
|
|
1411
1412
|
for (const name of CONFIG_CANDIDATES) {
|
|
1412
1413
|
const candidate = resolve5(cwd, name);
|
|
1413
1414
|
if (existsSync7(candidate))
|
|
@@ -1477,15 +1478,20 @@ var DEFAULT_CACHE_LOCATION = ".absolutejs/eslint-cache", CACHE_CONTRACT_VERSION
|
|
|
1477
1478
|
}, createEslintCacheFingerprint = (cwd = process.cwd()) => {
|
|
1478
1479
|
const hash = createHash("sha256");
|
|
1479
1480
|
hash.update(`absolute-eslint-cache:${CACHE_CONTRACT_VERSION}\x00`);
|
|
1480
|
-
const configPath2 =
|
|
1481
|
-
if (configPath2)
|
|
1482
|
-
addFileToFingerprint(hash, configPath2, relative2(cwd, configPath2));
|
|
1481
|
+
const configPath2 = findEslintConfigPath(cwd);
|
|
1483
1482
|
for (const dependency of lintDependencyNames(cwd, configPath2).sort()) {
|
|
1484
1483
|
const manifestPath = findInstalledManifest(cwd, dependency);
|
|
1485
1484
|
if (manifestPath)
|
|
1486
1485
|
addFileToFingerprint(hash, manifestPath, dependency);
|
|
1487
1486
|
}
|
|
1488
1487
|
return hash.digest("hex");
|
|
1488
|
+
}, createEslintConfigDigest = (cwd = process.cwd()) => {
|
|
1489
|
+
const hash = createHash("sha256");
|
|
1490
|
+
hash.update(`absolute-eslint-config:${CACHE_CONTRACT_VERSION}\x00`);
|
|
1491
|
+
const configPath2 = findEslintConfigPath(cwd);
|
|
1492
|
+
if (configPath2)
|
|
1493
|
+
addFileToFingerprint(hash, configPath2, relative2(cwd, configPath2));
|
|
1494
|
+
return hash.digest("hex");
|
|
1489
1495
|
}, writeFingerprint = (path, fingerprint) => {
|
|
1490
1496
|
mkdirSync5(dirname3(path), { recursive: true });
|
|
1491
1497
|
const temporary = `${path}.${process.pid}.tmp`;
|
|
@@ -1580,7 +1586,7 @@ var DEFAULT_CACHE_LOCATION = ".absolutejs/eslint-cache", CACHE_CONTRACT_VERSION
|
|
|
1580
1586
|
}
|
|
1581
1587
|
return blocks;
|
|
1582
1588
|
}, checkForMisplacedIgnores = () => {
|
|
1583
|
-
const configPath2 =
|
|
1589
|
+
const configPath2 = findEslintConfigPath();
|
|
1584
1590
|
if (!configPath2)
|
|
1585
1591
|
return;
|
|
1586
1592
|
let source;
|
|
@@ -172012,7 +172018,7 @@ import {
|
|
|
172012
172018
|
} from "fs";
|
|
172013
172019
|
import { tmpdir as tmpdir2 } from "os";
|
|
172014
172020
|
import { delimiter, dirname as dirname5, relative as relative4, resolve as resolve12 } from "path";
|
|
172015
|
-
var DEFAULT_PROOF_LOCATION = ".absolutejs/lint-proof.json", PROOF_CONTRACT_VERSION =
|
|
172021
|
+
var DEFAULT_PROOF_LOCATION = ".absolutejs/lint-proof.json", PROOF_CONTRACT_VERSION = 2, FLAG_NOT_FOUND = -1, CHUNKED_FLAG = "--chunked", TSCONFIG_PATTERN, ABSOLUTE_BINARY, runGit = (args, options) => {
|
|
172016
172022
|
const proc = Bun.spawnSync(["git", ...args], {
|
|
172017
172023
|
cwd: options.cwd,
|
|
172018
172024
|
env: { ...process.env, ...options.env },
|
|
@@ -172060,7 +172066,30 @@ var DEFAULT_PROOF_LOCATION = ".absolutejs/lint-proof.json", PROOF_CONTRACT_VERSI
|
|
|
172060
172066
|
env: env3
|
|
172061
172067
|
});
|
|
172062
172068
|
}
|
|
172063
|
-
},
|
|
172069
|
+
}, eslintChunkedArgs = (command) => {
|
|
172070
|
+
const index = command.indexOf("eslint");
|
|
172071
|
+
if (index <= 0)
|
|
172072
|
+
return null;
|
|
172073
|
+
const binary = command[index - 1];
|
|
172074
|
+
if (binary === undefined || !ABSOLUTE_BINARY.test(binary))
|
|
172075
|
+
return null;
|
|
172076
|
+
const args = command.slice(index + 1);
|
|
172077
|
+
return args.includes(CHUNKED_FLAG) ? args : null;
|
|
172078
|
+
}, lintScopedFiles = (command, root) => {
|
|
172079
|
+
const args = eslintChunkedArgs(command);
|
|
172080
|
+
if (args === null)
|
|
172081
|
+
return null;
|
|
172082
|
+
const auxiliary = gitVisibleFiles(root).filter((file) => TSCONFIG_PATTERN.test(file));
|
|
172083
|
+
const configPath2 = findEslintConfigPath(root);
|
|
172084
|
+
const configRelative = configPath2 === null ? null : relative4(root, configPath2).replaceAll("\\", "/");
|
|
172085
|
+
return [
|
|
172086
|
+
...new Set([
|
|
172087
|
+
...resolveLintTargets(args, root),
|
|
172088
|
+
...auxiliary,
|
|
172089
|
+
...configRelative === null || configRelative.startsWith("../") ? [] : [configRelative]
|
|
172090
|
+
])
|
|
172091
|
+
].sort();
|
|
172092
|
+
}, createLintSourceTree = (cwd = process.cwd(), proofLocation = DEFAULT_PROOF_LOCATION, command = []) => {
|
|
172064
172093
|
const root = gitRoot(cwd);
|
|
172065
172094
|
const proofPath = resolve12(cwd, proofLocation);
|
|
172066
172095
|
const proofRelative = relative4(root, proofPath).replaceAll("\\", "/");
|
|
@@ -172084,7 +172113,15 @@ var DEFAULT_PROOF_LOCATION = ".absolutejs/lint-proof.json", PROOF_CONTRACT_VERSI
|
|
|
172084
172113
|
};
|
|
172085
172114
|
try {
|
|
172086
172115
|
runGit(["read-tree", "--empty"], { cwd: root, env: env3 });
|
|
172087
|
-
const
|
|
172116
|
+
const scoped = lintScopedFiles(command, root);
|
|
172117
|
+
const visible = scoped ?? runGit([
|
|
172118
|
+
"ls-files",
|
|
172119
|
+
"--cached",
|
|
172120
|
+
"--others",
|
|
172121
|
+
"--exclude-standard",
|
|
172122
|
+
"-z"
|
|
172123
|
+
], { cwd: root }).split("\x00");
|
|
172124
|
+
const files = visible.filter((path) => {
|
|
172088
172125
|
if (!path || path === proofRelative)
|
|
172089
172126
|
return false;
|
|
172090
172127
|
try {
|
|
@@ -172099,7 +172136,7 @@ var DEFAULT_PROOF_LOCATION = ".absolutejs/lint-proof.json", PROOF_CONTRACT_VERSI
|
|
|
172099
172136
|
} finally {
|
|
172100
172137
|
rmSync5(temporaryDirectory, { force: true, recursive: true });
|
|
172101
172138
|
}
|
|
172102
|
-
}, proofFingerprint = (cwd) => createHash2("sha256").update(`absolute-lint-proof:${PROOF_CONTRACT_VERSION}\x00`).update(createEslintCacheFingerprint(cwd)).digest("hex"), createLintProof = (command, options = {}) => {
|
|
172139
|
+
}, proofFingerprint = (cwd) => createHash2("sha256").update(`absolute-lint-proof:${PROOF_CONTRACT_VERSION}\x00`).update(createEslintCacheFingerprint(cwd)).update("\x00").update(createEslintConfigDigest(cwd)).digest("hex"), createLintProof = (command, options = {}) => {
|
|
172103
172140
|
const cwd = options.cwd ?? process.cwd();
|
|
172104
172141
|
const proofLocation = options.proofLocation ?? DEFAULT_PROOF_LOCATION;
|
|
172105
172142
|
return {
|
|
@@ -172107,7 +172144,7 @@ var DEFAULT_PROOF_LOCATION = ".absolutejs/lint-proof.json", PROOF_CONTRACT_VERSI
|
|
|
172107
172144
|
contractVersion: PROOF_CONTRACT_VERSION,
|
|
172108
172145
|
createdAt: new Date().toISOString(),
|
|
172109
172146
|
lintFingerprint: proofFingerprint(cwd),
|
|
172110
|
-
sourceTree: createLintSourceTree(cwd, proofLocation)
|
|
172147
|
+
sourceTree: createLintSourceTree(cwd, proofLocation, command)
|
|
172111
172148
|
};
|
|
172112
172149
|
}, writeLintProof = (command, options = {}) => {
|
|
172113
172150
|
const cwd = options.cwd ?? process.cwd();
|
|
@@ -172189,7 +172226,7 @@ var DEFAULT_PROOF_LOCATION = ".absolutejs/lint-proof.json", PROOF_CONTRACT_VERSI
|
|
|
172189
172226
|
reason: "ESLint configuration or toolchain changed",
|
|
172190
172227
|
valid: false
|
|
172191
172228
|
};
|
|
172192
|
-
if (proof.sourceTree !== createLintSourceTree(cwd, proofLocation))
|
|
172229
|
+
if (proof.sourceTree !== createLintSourceTree(cwd, proofLocation, command))
|
|
172193
172230
|
return {
|
|
172194
172231
|
reason: "source tree changed since lint passed",
|
|
172195
172232
|
valid: false
|
|
@@ -172278,6 +172315,9 @@ var DEFAULT_PROOF_LOCATION = ".absolutejs/lint-proof.json", PROOF_CONTRACT_VERSI
|
|
|
172278
172315
|
};
|
|
172279
172316
|
var init_lintProof = __esm(() => {
|
|
172280
172317
|
init_eslint();
|
|
172318
|
+
init_eslintChunked();
|
|
172319
|
+
TSCONFIG_PATTERN = /(?:^|\/)tsconfig[^/]*\.json$/;
|
|
172320
|
+
ABSOLUTE_BINARY = /(?:^|[\\/])absolute(?:\.[cm]?[jt]s|\.exe)?$/;
|
|
172281
172321
|
});
|
|
172282
172322
|
|
|
172283
172323
|
// src/build/scanConventions.ts
|
|
@@ -173751,7 +173791,7 @@ var init_fromType = __esm(() => {
|
|
|
173751
173791
|
// src/cli/config/absolute/resolveAbsoluteConfig.ts
|
|
173752
173792
|
import { existsSync as existsSync17, readFileSync as readFileSync18 } from "fs";
|
|
173753
173793
|
import { resolve as resolve14 } from "path";
|
|
173754
|
-
var import_typescript5, CONFIG_CANDIDATES2, RUNTIME_FIELDS,
|
|
173794
|
+
var import_typescript5, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath = (cwd, override) => {
|
|
173755
173795
|
if (override) {
|
|
173756
173796
|
const resolved = resolve14(cwd, override);
|
|
173757
173797
|
return existsSync17(resolved) ? resolved : null;
|
|
@@ -173843,7 +173883,7 @@ var import_typescript5, CONFIG_CANDIDATES2, RUNTIME_FIELDS, findConfigPath2 = (c
|
|
|
173843
173883
|
}
|
|
173844
173884
|
return { current, opaqueKeys };
|
|
173845
173885
|
}, readAbsoluteConfigValues = (cwd, override) => {
|
|
173846
|
-
const configPath2 =
|
|
173886
|
+
const configPath2 = findConfigPath(cwd, override);
|
|
173847
173887
|
const { current, opaqueKeys } = configPath2 ? readCurrent(configPath2) : { current: {}, opaqueKeys: [] };
|
|
173848
173888
|
return { configPath: configPath2, current, opaqueKeys };
|
|
173849
173889
|
};
|
|
@@ -174017,7 +174057,7 @@ var asString = (value) => typeof value === "string" ? value : undefined, isRecor
|
|
|
174017
174057
|
const entry = asString(config.entry) ?? DEFAULT_SERVER_ENTRY;
|
|
174018
174058
|
return {
|
|
174019
174059
|
config,
|
|
174020
|
-
configPath:
|
|
174060
|
+
configPath: findConfigPath(cwd, configOverride),
|
|
174021
174061
|
cwd,
|
|
174022
174062
|
frameworkDirs,
|
|
174023
174063
|
serverEntry: resolveDir(cwd, entry),
|
package/dist/index.js
CHANGED
|
@@ -34440,7 +34440,7 @@ __export(exports_moduleServer, {
|
|
|
34440
34440
|
});
|
|
34441
34441
|
import { existsSync as existsSync35, readFileSync as readFileSync30, realpathSync as realpathSync3, statSync as statSync6 } from "fs";
|
|
34442
34442
|
import { basename as basename16, dirname as dirname26, extname as extname12, join as join44, resolve as resolve39, relative as relative16 } from "path";
|
|
34443
|
-
var SRC_PREFIX = "/@src/", jsTranspiler2, legacyDecoratorTsconfig, tsTranspiler2, tsxTranspiler, TRANSPILABLE,
|
|
34443
|
+
var SRC_PREFIX = "/@src/", BROWSER_DEFINE, jsTranspiler2, legacyDecoratorTsconfig, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
|
|
34444
34444
|
const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
|
|
34445
34445
|
const allExports = [];
|
|
34446
34446
|
let match;
|
|
@@ -34651,9 +34651,6 @@ ${transpiled}`;
|
|
|
34651
34651
|
const ext = extname12(filePath);
|
|
34652
34652
|
const isTS = ext === ".ts" || ext === ".tsx";
|
|
34653
34653
|
const isTSX = ext === ".tsx" || ext === ".jsx";
|
|
34654
|
-
if (isPrebuiltDependencyModule(filePath, ext, raw)) {
|
|
34655
|
-
return rewriteImports(raw, filePath, projectRoot, rewriter);
|
|
34656
|
-
}
|
|
34657
34654
|
let transpiler6 = jsTranspiler2;
|
|
34658
34655
|
if (isTSX)
|
|
34659
34656
|
transpiler6 = tsxTranspiler;
|
|
@@ -35253,7 +35250,9 @@ var init_moduleServer = __esm(() => {
|
|
|
35253
35250
|
init_lowerIslandSyntax();
|
|
35254
35251
|
init_logger();
|
|
35255
35252
|
init_transformCache();
|
|
35253
|
+
BROWSER_DEFINE = { require: "undefined" };
|
|
35256
35254
|
jsTranspiler2 = new Bun.Transpiler({
|
|
35255
|
+
define: BROWSER_DEFINE,
|
|
35257
35256
|
loader: "js",
|
|
35258
35257
|
trimUnusedImports: true
|
|
35259
35258
|
});
|
|
@@ -35264,19 +35263,18 @@ var init_moduleServer = __esm(() => {
|
|
|
35264
35263
|
}
|
|
35265
35264
|
});
|
|
35266
35265
|
tsTranspiler2 = new Bun.Transpiler({
|
|
35266
|
+
define: BROWSER_DEFINE,
|
|
35267
35267
|
loader: "ts",
|
|
35268
35268
|
trimUnusedImports: true,
|
|
35269
35269
|
tsconfig: legacyDecoratorTsconfig
|
|
35270
35270
|
});
|
|
35271
35271
|
tsxTranspiler = new Bun.Transpiler({
|
|
35272
|
+
define: BROWSER_DEFINE,
|
|
35272
35273
|
loader: "tsx",
|
|
35273
35274
|
trimUnusedImports: true,
|
|
35274
35275
|
tsconfig: legacyDecoratorTsconfig
|
|
35275
35276
|
});
|
|
35276
35277
|
TRANSPILABLE = new Set([".ts", ".tsx", ".js", ".jsx", ".mjs"]);
|
|
35277
|
-
NODE_MODULES_SEGMENT = /[/\\]node_modules[/\\]/u;
|
|
35278
|
-
PREBUILT_EXTENSIONS = new Set([".js", ".mjs"]);
|
|
35279
|
-
ESM_SYNTAX = /^\s*(?:import|export)[\s{*("']/mu;
|
|
35280
35278
|
ALL_EXPORTS_RE = /export\s+(?:type|interface|const|let|var|function|class|enum|abstract\s+class)\s+(\w+)/g;
|
|
35281
35279
|
STRING_CONTENTS_RE = /`(?:[^`\\]|\\.)*`|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/gs;
|
|
35282
35280
|
IMPORT_EXTENSIONS = [".tsx", ".ts", ".jsx", ".js", ".svelte", ".vue"];
|
|
@@ -35305,6 +35303,7 @@ var init_moduleServer = __esm(() => {
|
|
|
35305
35303
|
JSX_PROD_RE = /\b(jsx_[a-z0-9]+)\b/;
|
|
35306
35304
|
FRAGMENT_RE = /\b(Fragment_[a-z0-9]+)\b/;
|
|
35307
35305
|
reactTranspilerOptions = {
|
|
35306
|
+
define: BROWSER_DEFINE,
|
|
35308
35307
|
loader: "tsx",
|
|
35309
35308
|
reactFastRefresh: true,
|
|
35310
35309
|
trimUnusedImports: true
|
|
@@ -48063,5 +48062,5 @@ export {
|
|
|
48063
48062
|
ANGULAR_INIT_TIMEOUT_MS
|
|
48064
48063
|
};
|
|
48065
48064
|
|
|
48066
|
-
//# debugId=
|
|
48065
|
+
//# debugId=2428F637392E781D64756E2164756E21
|
|
48067
48066
|
//# sourceMappingURL=index.js.map
|