@yasainet/eslint 0.0.12 → 0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasainet/eslint",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,7 +20,7 @@ function findProjectRoot() {
20
20
 
21
21
  const PROJECT_ROOT = findProjectRoot();
22
22
 
23
- const EXCLUDE_LIST = ["proxy.lib.ts", "types"];
23
+ const EXCLUDE_LIST = ["proxy.lib.ts"];
24
24
 
25
25
  /** @description Extract the base name from a .ts filename by stripping all extensions. */
26
26
  function baseName(filename) {
@@ -51,16 +51,16 @@ export function generatePrefixLibMapping(featureRoot) {
51
51
  for (const subEntry of subEntries) {
52
52
  if (
53
53
  subEntry.isFile() &&
54
- subEntry.name.endsWith(".ts") &&
54
+ subEntry.name.endsWith(".lib.ts") &&
55
55
  !EXCLUDE_LIST.includes(subEntry.name)
56
56
  ) {
57
57
  const prefix = baseName(subEntry.name);
58
- mapping[prefix] = `${entry.name}/${subEntry.name.replace(".ts", "")}`;
58
+ mapping[prefix] = `${entry.name}/${subEntry.name.replace(".lib.ts", "")}`;
59
59
  }
60
60
  }
61
- } else if (entry.isFile() && entry.name.endsWith(".ts")) {
61
+ } else if (entry.isFile() && entry.name.endsWith(".lib.ts")) {
62
62
  const prefix = baseName(entry.name);
63
- mapping[prefix] = entry.name.replace(".ts", "");
63
+ mapping[prefix] = entry.name.replace(".lib.ts", "");
64
64
  }
65
65
  }
66
66