@next-vibe/checker 1.0.12 → 1.0.13

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.
@@ -28108,6 +28108,7 @@ var init_enum2 = __esm(() => {
28108
28108
  })(ViteBuildTypeEnum ||= {});
28109
28109
  ((BunBuildTypeEnum2) => {
28110
28110
  BunBuildTypeEnum2["EXECUTABLE"] = "executable";
28111
+ BunBuildTypeEnum2["MODULE"] = "module";
28111
28112
  })(BunBuildTypeEnum ||= {});
28112
28113
  BuildTypeEnum = {
28113
28114
  ...ViteBuildTypeEnum,
@@ -37206,17 +37207,28 @@ class ConfigRepositoryImpl {
37206
37207
  return resolve12(process.cwd(), "check.config.ts");
37207
37208
  }
37208
37209
  static resolveJsPluginPath(pluginPath) {
37209
- const patterns = [
37210
- { prefix: "@next-vibe/checker/", nodeModules: ["@next-vibe", "checker"] },
37211
- { prefix: "next-vibe/", nodeModules: ["next-vibe"] }
37212
- ];
37213
- for (const { prefix, nodeModules } of patterns) {
37214
- if (pluginPath.startsWith(prefix)) {
37215
- const relativePath = pluginPath.slice(prefix.length);
37216
- return resolve12(process.cwd(), "node_modules", ...nodeModules, relativePath);
37210
+ if (pluginPath.startsWith("@next-vibe/checker/oxlint-plugins/")) {
37211
+ const fileName = pluginPath.slice("@next-vibe/checker/oxlint-plugins/".length);
37212
+ const baseName = fileName.replace(/\.(ts|js)$/, "");
37213
+ const extension = fileName.endsWith(".ts") ? "ts" : "js";
37214
+ if (extension === "ts") {
37215
+ const sourcePath = resolve12(process.cwd(), "src", "app", "api", "[locale]", "system", "check", "oxlint", "plugins", baseName, "src", "index.ts");
37216
+ if (existsSync11(sourcePath)) {
37217
+ return sourcePath;
37218
+ }
37219
+ } else {
37220
+ const compiledPath = resolve12(process.cwd(), "node_modules", "@next-vibe", "checker", "oxlint-plugins", fileName);
37221
+ if (existsSync11(compiledPath)) {
37222
+ return compiledPath;
37223
+ }
37217
37224
  }
37225
+ return extension === "ts" ? resolve12(process.cwd(), "src", "app", "api", "[locale]", "system", "check", "oxlint", "plugins", baseName, "src", "index.ts") : resolve12(process.cwd(), "node_modules", "@next-vibe", "checker", "oxlint-plugins", fileName);
37226
+ }
37227
+ if (pluginPath.startsWith("/")) {
37228
+ return pluginPath;
37218
37229
  }
37219
- return pluginPath;
37230
+ const absolutePath = resolve12(process.cwd(), pluginPath);
37231
+ return existsSync11(absolutePath) ? absolutePath : pluginPath;
37220
37232
  }
37221
37233
  static resolveJsPlugins(jsPlugins) {
37222
37234
  if (!jsPlugins || jsPlugins.length === 0) {
@@ -37537,7 +37549,8 @@ export default checkConfig.eslint?.buildFlatConfig?.(
37537
37549
  error: `Template check.config.ts not found at ${templatePath}`
37538
37550
  };
37539
37551
  }
37540
- const templateContent = await fs.readFile(templatePath, "utf8");
37552
+ let templateContent = await fs.readFile(templatePath, "utf8");
37553
+ templateContent = templateContent.replace(/@next-vibe\/checker\/oxlint-plugins\/([^"']+)\.ts/g, "@next-vibe/checker/oxlint-plugins/$1.js");
37541
37554
  await fs.writeFile(configPath, templateContent, "utf8");
37542
37555
  logger.info("Created check.config.ts from template", {
37543
37556
  path: configPath,
@@ -38706,7 +38719,7 @@ class OxlintRepositoryImpl {
38706
38719
  } catch (parseError2) {
38707
38720
  logger.warn("Failed to parse oxlint JSON output", {
38708
38721
  error: parseError2 instanceof Error ? parseError2.message : String(parseError2),
38709
- stdoutPreview: stdout.slice(0, 200)
38722
+ stdout
38710
38723
  });
38711
38724
  return { issues };
38712
38725
  }
@@ -55470,4 +55483,4 @@ export {
55470
55483
  binaryStartTime
55471
55484
  };
55472
55485
 
55473
- //# debugId=E987823ED4EF9AEA64756E2164756E21
55486
+ //# debugId=726E9B216EB061AF64756E2164756E21