@jterrazz/typescript 8.1.1 → 8.1.3

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.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * Dynamic detection:
16
16
  * - Published library (main/exports/publishConfig) → disable exports/types/files rules
17
- * - Auto-ignore docs/**, fixtures/**, expected/** convention paths — at the root
17
+ * - Auto-ignore docs/**, _fixtures/**, _expected/** convention paths — at the root
18
18
  * AND inside every workspace member, because the convention is the package's
19
19
  * and knip resolves `ignore` globs from the root
20
20
  * - Vitest workspace workaround → explicit vitest config when vitest is a dependency
@@ -91,7 +91,7 @@ for (const unit of units) {
91
91
  conventionIgnores.push(`${prefix}docs/**`);
92
92
  }
93
93
 
94
- // Scan for fixtures/** and expected/** directories anywhere in the unit (up to 3 levels)
94
+ // Scan for _fixtures/** and _expected/** directories anywhere in the unit (up to 3 levels)
95
95
  for (const scanDir of ['specs', 'tests', 'test', 'src']) {
96
96
  if (existsSync(`${prefix}${scanDir}`)) {
97
97
  findConventionDirs(`${prefix}${scanDir}`, 0);
@@ -113,7 +113,9 @@ function findConventionDirs(dir, depth) {
113
113
  if (!entry.isDirectory()) {
114
114
  continue;
115
115
  }
116
- if (entry.name === 'fixtures' || entry.name === 'expected') {
116
+ // The ground of a spec carries a leading underscore since @jterrazz/test
117
+ // 14; the bare names are pre-14 and no resolver reads them any more.
118
+ if (entry.name === '_fixtures' || entry.name === '_expected') {
117
119
  conventionIgnores.push(`${dir}/${entry.name}/**`);
118
120
  } else if (entry.name !== 'node_modules') {
119
121
  findConventionDirs(`${dir}/${entry.name}`, depth + 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jterrazz/typescript",
3
- "version": "8.1.1",
3
+ "version": "8.1.3",
4
4
  "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "scripts": {
43
43
  "build": "# no build script",
44
- "lint": "./bin/typescript.sh check --ignore-pattern '**/fixtures/**'",
45
- "lint:fix": "./bin/typescript.sh fix --ignore-pattern '**/fixtures/**'",
44
+ "lint": "./bin/typescript.sh check --ignore-pattern '**/_fixtures/**'",
45
+ "lint:fix": "./bin/typescript.sh fix --ignore-pattern '**/_fixtures/**'",
46
46
  "test": "vitest --run"
47
47
  },
48
48
  "dependencies": {
@@ -56,7 +56,7 @@
56
56
  "typescript": "^6.0.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@jterrazz/test": "^9.0.0",
59
+ "@jterrazz/test": "^14.0.0",
60
60
  "@types/node": "^26.1.1",
61
61
  "vitest": "^4.1.10"
62
62
  },
@@ -43,11 +43,11 @@ test('concatenates and dedupes ignorePatterns', () => {
43
43
  // Given - overlapping ignore lists
44
44
  const merged = compose(
45
45
  { ignorePatterns: ['dist/**', 'node_modules/**'] },
46
- { ignorePatterns: ['node_modules/**', '**/fixtures/**'] },
46
+ { ignorePatterns: ['node_modules/**', '**/_fixtures/**'] },
47
47
  );
48
48
 
49
49
  // Then - one entry each
50
- expect(merged.ignorePatterns).toEqual(['dist/**', 'node_modules/**', '**/fixtures/**']);
50
+ expect(merged.ignorePatterns).toEqual(['dist/**', 'node_modules/**', '**/_fixtures/**']);
51
51
  });
52
52
 
53
53
  test('takes unknown scalar keys from the last fragment', () => {