@absolutejs/absolute 0.19.0-beta.711 → 0.19.0-beta.712
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/cli/index.js +15 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1262,7 +1262,15 @@ var isCommandService3 = (service) => service.kind === "command" || Array.isArray
|
|
|
1262
1262
|
Found ${errorCount} error${suffix}.`;
|
|
1263
1263
|
}
|
|
1264
1264
|
return formatted;
|
|
1265
|
-
}, TYPECHECK_EXCLUDE, TYPECHECK_INCLUDE,
|
|
1265
|
+
}, TYPECHECK_EXCLUDE, TYPECHECK_INCLUDE, resolveAbsoluteTypeFile = (fileName) => {
|
|
1266
|
+
const candidates = [
|
|
1267
|
+
resolve8("node_modules/@absolutejs/absolute/dist/types", fileName),
|
|
1268
|
+
resolve8(import.meta.dir, "../types", fileName),
|
|
1269
|
+
resolve8(import.meta.dir, "../../types", fileName),
|
|
1270
|
+
resolve8(import.meta.dir, "../../../types", fileName)
|
|
1271
|
+
];
|
|
1272
|
+
return candidates.find((candidate) => existsSync10(candidate)) ?? candidates[0];
|
|
1273
|
+
}, ABSOLUTE_TYPECHECK_INCLUDE, ABSOLUTE_TYPECHECK_FILES, buildVueTscCheck = (cacheDir) => {
|
|
1266
1274
|
const vueTscBin = findBin("vue-tsc");
|
|
1267
1275
|
if (!vueTscBin) {
|
|
1268
1276
|
console.error("\x1B[31m\u2717\x1B[0m vue-tsc is required for Vue type checking. Install it: bun add -d vue-tsc");
|
|
@@ -1275,6 +1283,7 @@ Found ${errorCount} error${suffix}.`;
|
|
|
1275
1283
|
},
|
|
1276
1284
|
exclude: TYPECHECK_EXCLUDE,
|
|
1277
1285
|
extends: resolve8("tsconfig.json"),
|
|
1286
|
+
files: ABSOLUTE_TYPECHECK_FILES,
|
|
1278
1287
|
include: ABSOLUTE_TYPECHECK_INCLUDE
|
|
1279
1288
|
}, null, "\t")).then(() => run("vue-tsc", [
|
|
1280
1289
|
vueTscBin,
|
|
@@ -1319,6 +1328,7 @@ Found ${errorCount} error${suffix}.`;
|
|
|
1319
1328
|
},
|
|
1320
1329
|
exclude: TYPECHECK_EXCLUDE,
|
|
1321
1330
|
extends: resolve8("tsconfig.json"),
|
|
1331
|
+
files: ABSOLUTE_TYPECHECK_FILES,
|
|
1322
1332
|
include: ABSOLUTE_TYPECHECK_INCLUDE
|
|
1323
1333
|
}, null, "\t")).then(() => run("tsc", [
|
|
1324
1334
|
tscBin,
|
|
@@ -1339,6 +1349,7 @@ Found ${errorCount} error${suffix}.`;
|
|
|
1339
1349
|
const svelteTsconfigPath = join7(cacheDir, "tsconfig.svelte-check.json");
|
|
1340
1350
|
await writeFile(svelteTsconfigPath, JSON.stringify({
|
|
1341
1351
|
extends: resolve8("tsconfig.json"),
|
|
1352
|
+
files: ABSOLUTE_TYPECHECK_FILES,
|
|
1342
1353
|
include: [`../${svelteDir}/**/*`]
|
|
1343
1354
|
}, null, "\t"));
|
|
1344
1355
|
return run("svelte-check", [
|
|
@@ -1412,9 +1423,9 @@ var init_typecheck = __esm(() => {
|
|
|
1412
1423
|
"../test/**/*",
|
|
1413
1424
|
"../scripts/**/*"
|
|
1414
1425
|
];
|
|
1415
|
-
ABSOLUTE_TYPECHECK_INCLUDE = [
|
|
1416
|
-
|
|
1417
|
-
|
|
1426
|
+
ABSOLUTE_TYPECHECK_INCLUDE = [...TYPECHECK_INCLUDE];
|
|
1427
|
+
ABSOLUTE_TYPECHECK_FILES = [
|
|
1428
|
+
resolveAbsoluteTypeFile("style-module-shim.d.ts")
|
|
1418
1429
|
];
|
|
1419
1430
|
});
|
|
1420
1431
|
|
package/package.json
CHANGED