@absolutejs/absolute 0.19.0-beta.758 → 0.19.0-beta.759

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.
Files changed (2) hide show
  1. package/dist/cli/index.js +30 -9
  2. package/package.json +7 -7
package/dist/cli/index.js CHANGED
@@ -1258,7 +1258,7 @@ __export(exports_typecheck, {
1258
1258
  typecheck: () => typecheck
1259
1259
  });
1260
1260
  import { resolve as resolve9, join as join7 } from "path";
1261
- import { existsSync as existsSync10 } from "fs";
1261
+ import { existsSync as existsSync10, readFileSync as readFileSync10 } from "fs";
1262
1262
  import { mkdir as mkdir2, writeFile } from "fs/promises";
1263
1263
  var isCommandService3 = (service) => service.kind === "command" || Array.isArray(service.command), getTypecheckTargets = async (configPath2) => {
1264
1264
  const rawConfig = await loadRawConfig(configPath2);
@@ -1332,7 +1332,31 @@ Found ${errorCount} error${suffix}.`;
1332
1332
  resolve9(import.meta.dir, "../../../types", fileName)
1333
1333
  ];
1334
1334
  return candidates.find((candidate) => existsSync10(candidate)) ?? candidates[0];
1335
- }, ABSOLUTE_TYPECHECK_INCLUDE, ABSOLUTE_TYPECHECK_FILES, buildVueTscCheck = (cacheDir) => {
1335
+ }, ABSOLUTE_TYPECHECK_FILES, readProjectTsconfig = () => {
1336
+ try {
1337
+ return JSON.parse(readFileSync10(resolve9("tsconfig.json"), "utf-8"));
1338
+ } catch {
1339
+ return {};
1340
+ }
1341
+ }, toGeneratedConfigPath = (path) => path.startsWith("/") ? path : `../${path}`, getProjectTypecheckIncludes = () => {
1342
+ const config = readProjectTsconfig();
1343
+ const includes = Array.isArray(config.include) && config.include.length > 0 ? config.include : TYPECHECK_INCLUDE;
1344
+ const files = Array.isArray(config.files) ? config.files : [];
1345
+ return [
1346
+ ...includes.map(toGeneratedConfigPath),
1347
+ ...files.map(toGeneratedConfigPath),
1348
+ ...ABSOLUTE_TYPECHECK_FILES
1349
+ ];
1350
+ }, getProjectTypecheckExcludes = () => {
1351
+ const config = readProjectTsconfig();
1352
+ const excludes = Array.isArray(config.exclude) ? config.exclude : [];
1353
+ return [
1354
+ ...new Set([
1355
+ ...TYPECHECK_EXCLUDE,
1356
+ ...excludes.map(toGeneratedConfigPath)
1357
+ ])
1358
+ ];
1359
+ }, buildVueTscCheck = (cacheDir) => {
1336
1360
  const vueTscBin = findBin("vue-tsc");
1337
1361
  if (!vueTscBin) {
1338
1362
  console.error("\x1B[31m\u2717\x1B[0m vue-tsc is required for Vue type checking. Install it: bun add -d vue-tsc");
@@ -1343,10 +1367,9 @@ Found ${errorCount} error${suffix}.`;
1343
1367
  compilerOptions: {
1344
1368
  rootDir: ".."
1345
1369
  },
1346
- exclude: TYPECHECK_EXCLUDE,
1370
+ exclude: getProjectTypecheckExcludes(),
1347
1371
  extends: resolve9("tsconfig.json"),
1348
- files: ABSOLUTE_TYPECHECK_FILES,
1349
- include: ABSOLUTE_TYPECHECK_INCLUDE
1372
+ include: getProjectTypecheckIncludes()
1350
1373
  }, null, "\t")).then(() => run("vue-tsc", [
1351
1374
  vueTscBin,
1352
1375
  "--noEmit",
@@ -1388,10 +1411,9 @@ Found ${errorCount} error${suffix}.`;
1388
1411
  compilerOptions: {
1389
1412
  rootDir: ".."
1390
1413
  },
1391
- exclude: TYPECHECK_EXCLUDE,
1414
+ exclude: getProjectTypecheckExcludes(),
1392
1415
  extends: resolve9("tsconfig.json"),
1393
- files: ABSOLUTE_TYPECHECK_FILES,
1394
- include: ABSOLUTE_TYPECHECK_INCLUDE
1416
+ include: getProjectTypecheckIncludes()
1395
1417
  }, null, "\t")).then(() => run("tsc", [
1396
1418
  tscBin,
1397
1419
  "--noEmit",
@@ -1485,7 +1507,6 @@ var init_typecheck = __esm(() => {
1485
1507
  "../test/**/*",
1486
1508
  "../scripts/**/*"
1487
1509
  ];
1488
- ABSOLUTE_TYPECHECK_INCLUDE = [...TYPECHECK_INCLUDE];
1489
1510
  ABSOLUTE_TYPECHECK_FILES = [
1490
1511
  resolveAbsoluteTypeFile("style-module-shim.d.ts")
1491
1512
  ];
package/package.json CHANGED
@@ -187,12 +187,12 @@
187
187
  "main": "./dist/index.js",
188
188
  "name": "@absolutejs/absolute",
189
189
  "optionalDependencies": {
190
- "@absolutejs/native-darwin-arm64": "0.19.0-beta.758",
191
- "@absolutejs/native-darwin-x64": "0.19.0-beta.758",
192
- "@absolutejs/native-linux-arm64": "0.19.0-beta.758",
193
- "@absolutejs/native-linux-x64": "0.19.0-beta.758",
194
- "@absolutejs/native-windows-arm64": "0.19.0-beta.758",
195
- "@absolutejs/native-windows-x64": "0.19.0-beta.758"
190
+ "@absolutejs/native-darwin-arm64": "0.19.0-beta.759",
191
+ "@absolutejs/native-darwin-x64": "0.19.0-beta.759",
192
+ "@absolutejs/native-linux-arm64": "0.19.0-beta.759",
193
+ "@absolutejs/native-linux-x64": "0.19.0-beta.759",
194
+ "@absolutejs/native-windows-arm64": "0.19.0-beta.759",
195
+ "@absolutejs/native-windows-x64": "0.19.0-beta.759"
196
196
  },
197
197
  "overrides": {
198
198
  "@typescript-eslint/utils": "8.56.1"
@@ -349,5 +349,5 @@
349
349
  ]
350
350
  }
351
351
  },
352
- "version": "0.19.0-beta.758"
352
+ "version": "0.19.0-beta.759"
353
353
  }