@absolutejs/absolute 0.19.0-beta.1006 → 0.19.0-beta.1007

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 CHANGED
@@ -2247,7 +2247,10 @@ __export(exports_typecheck, {
2247
2247
  import { resolve as resolve12, join as join11 } from "path";
2248
2248
  import { existsSync as existsSync12, readFileSync as readFileSync13 } from "fs";
2249
2249
  import { mkdir as mkdir2, writeFile } from "fs/promises";
2250
- var isCommandService3 = (service) => service.kind === "command" || Array.isArray(service.command), getTypecheckTargets = async (configPath2) => {
2250
+ var isCommandService3 = (service) => service.kind === "command" || Array.isArray(service.command), resolveConfigPath = (configPath2) => resolve12(configPath2 ?? process.env.ABSOLUTE_CONFIG ?? "absolute.config.ts"), getTypecheckTargets = async (configPath2) => {
2251
+ if (!existsSync12(resolveConfigPath(configPath2))) {
2252
+ return [{}];
2253
+ }
2251
2254
  const rawConfig = await loadRawConfig(configPath2);
2252
2255
  if (!isWorkspaceConfig(rawConfig)) {
2253
2256
  return [await loadConfig(configPath2)];
@@ -3589,6 +3592,10 @@ var eslint = async (args) => {
3589
3592
  handleClearCache(cacheLocation);
3590
3593
  return;
3591
3594
  }
3595
+ if (!existsSync6(resolve4("node_modules", ".bin", "eslint"))) {
3596
+ console.error("\x1B[31m\u2717\x1B[0m ESLint is not installed in this project. Add it (and a flat `eslint.config.*`): bun add -d eslint");
3597
+ process.exit(1);
3598
+ }
3592
3599
  checkForMisplacedIgnores();
3593
3600
  const command = [
3594
3601
  "bun",
package/package.json CHANGED
@@ -402,5 +402,5 @@
402
402
  ]
403
403
  }
404
404
  },
405
- "version": "0.19.0-beta.1006"
405
+ "version": "0.19.0-beta.1007"
406
406
  }