ts-repo-utils 9.0.0 → 9.0.1

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/README.md CHANGED
@@ -130,6 +130,9 @@ npm exec -- gen-index-ts ./src --target-ext .mts --target-ext .tsx --index-ext .
130
130
  # With exclude patterns
131
131
  npm exec -- gen-index-ts ./src --target-ext .ts --index-ext .ts --export-ext .js --exclude '*.test.ts' --exclude '*.spec.ts'
132
132
 
133
+ # Skip generating index files at the root level (depth 0), only generate from depth 1 onwards
134
+ npm exec -- gen-index-ts ./src --target-ext .mts --index-ext .mts --export-ext .mjs --min-depth 1
135
+
133
136
  # Example in npm scripts
134
137
  "gi": "gen-index-ts ./src --index-ext .mts --export-ext .mjs --target-ext .mts --target-ext .tsx --fmt 'npm run fmt'"
135
138
  ```
@@ -155,6 +158,7 @@ npm exec -- gen-index-ts ./src --target-ext .ts --index-ext .ts --export-ext .js
155
158
  - `--export-ext` - Extension of the export statements in the index file (required, or 'none')
156
159
  - `--exclude` - Glob patterns of files to exclude (optional, can be specified multiple times)
157
160
  - `--fmt` - Command to format after generating the index file (optional)
161
+ - `--min-depth` - Minimum depth to start generating index files (default: 0)
158
162
  - `--silent` - Suppress output messages (optional)
159
163
 
160
164
  ### `check-should-run-type-checks`
@@ -14,7 +14,7 @@ import '@sindresorhus/is';
14
14
 
15
15
  const cmdDef = cmd.command({
16
16
  name: 'assert-repo-is-clean-cli',
17
- version: '9.0.0',
17
+ version: '9.0.1',
18
18
  args: {
19
19
  silent: cmd.flag({
20
20
  long: 'silent',
@@ -14,7 +14,7 @@ import '@sindresorhus/is';
14
14
 
15
15
  const cmdDef = cmd.command({
16
16
  name: 'check-should-run-type-checks-cli',
17
- version: '9.0.0',
17
+ version: '9.0.1',
18
18
  args: {
19
19
  pathsIgnore: cmd.multioption({
20
20
  long: 'paths-ignore',
@@ -13,7 +13,7 @@ import '@sindresorhus/is';
13
13
 
14
14
  const cmdDef = cmd.command({
15
15
  name: 'format-diff-from-cli',
16
- version: '9.0.0',
16
+ version: '9.0.1',
17
17
  args: {
18
18
  base: cmd.positional({
19
19
  type: cmd.string,
@@ -13,7 +13,7 @@ import '@sindresorhus/is';
13
13
 
14
14
  const cmdDef = cmd.command({
15
15
  name: 'format-uncommitted-cli',
16
- version: '9.0.0',
16
+ version: '9.0.1',
17
17
  args: {
18
18
  excludeUntracked: cmd.flag({
19
19
  long: 'exclude-untracked',
@@ -35,7 +35,7 @@ cmd.array(t), {
35
35
  });
36
36
  const cmdDef = cmd.command({
37
37
  name: 'gen-index-ts-cli',
38
- version: '9.0.0',
38
+ version: '9.0.1',
39
39
  args: {
40
40
  // required args
41
41
  targetDirectory: cmd.positional({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-repo-utils",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "typescript"
@@ -93,7 +93,7 @@
93
93
  "cmd-ts": "^0.15.0",
94
94
  "fast-glob": "^3.3.3",
95
95
  "micromatch": "^4.0.8",
96
- "ts-data-forge": "^6.5.0",
96
+ "ts-data-forge": "^6.9.0",
97
97
  "tsx": "^4.21.0"
98
98
  },
99
99
  "devDependencies": {
@@ -105,35 +105,35 @@
105
105
  "@semantic-release/exec": "7.1.0",
106
106
  "@semantic-release/git": "10.0.1",
107
107
  "@semantic-release/github": "12.0.6",
108
- "@semantic-release/npm": "13.1.4",
108
+ "@semantic-release/npm": "13.1.5",
109
109
  "@semantic-release/release-notes-generator": "14.1.0",
110
- "@types/node": "25.3.2",
111
- "@vitest/coverage-v8": "4.0.18",
112
- "@vitest/ui": "4.0.18",
113
- "conventional-changelog-conventionalcommits": "9.1.0",
114
- "cspell": "9.6.4",
115
- "dedent": "1.7.1",
116
- "eslint": "9.39.2",
117
- "eslint-config-typed": "4.6.4",
118
- "github-settings-as-code": "1.1.9",
110
+ "@types/node": "25.5.2",
111
+ "@vitest/coverage-v8": "4.1.2",
112
+ "@vitest/ui": "4.1.2",
113
+ "conventional-changelog-conventionalcommits": "9.3.1",
114
+ "cspell": "9.7.0",
115
+ "dedent": "1.7.2",
116
+ "eslint": "9.39.4",
117
+ "eslint-config-typed": "4.9.0",
118
+ "github-settings-as-code": "1.2.2",
119
119
  "jiti": "2.6.1",
120
120
  "markdownlint": "0.40.0",
121
- "markdownlint-cli2": "0.21.0",
121
+ "markdownlint-cli2": "0.22.0",
122
122
  "npm-run-all2": "8.0.4",
123
123
  "prettier": "3.8.1",
124
124
  "prettier-plugin-organize-imports": "4.3.0",
125
- "prettier-plugin-packagejson": "3.0.0",
126
- "rollup": "4.59.0",
125
+ "prettier-plugin-packagejson": "3.0.2",
126
+ "rollup": "4.60.1",
127
127
  "semantic-release": "25.0.3",
128
- "ts-codemod-lib": "^2.0.5",
129
- "ts-repo-utils": "^8.2.0",
130
- "ts-type-forge": "2.3.1",
128
+ "ts-codemod-lib": "^2.1.1",
129
+ "ts-repo-utils": "^9.0.0",
130
+ "ts-type-forge": "2.4.0",
131
131
  "tslib": "2.8.1",
132
- "typedoc": "0.28.17",
132
+ "typedoc": "0.28.18",
133
133
  "typedoc-github-theme": "0.4.0",
134
134
  "typescript": "5.9.3",
135
- "vite": "7.3.1",
136
- "vitest": "4.0.18"
135
+ "vite": "8.0.3",
136
+ "vitest": "4.1.2"
137
137
  },
138
138
  "peerDependencies": {
139
139
  "prettier": ">=3.0.0"
@@ -5,7 +5,7 @@ import { assertRepoIsClean } from '../functions/index.mjs';
5
5
 
6
6
  const cmdDef = cmd.command({
7
7
  name: 'assert-repo-is-clean-cli',
8
- version: '9.0.0',
8
+ version: '9.0.1',
9
9
  args: {
10
10
  silent: cmd.flag({
11
11
  long: 'silent',
@@ -5,7 +5,7 @@ import { checkShouldRunTypeChecks } from '../functions/index.mjs';
5
5
 
6
6
  const cmdDef = cmd.command({
7
7
  name: 'check-should-run-type-checks-cli',
8
- version: '9.0.0',
8
+ version: '9.0.1',
9
9
  args: {
10
10
  pathsIgnore: cmd.multioption({
11
11
  long: 'paths-ignore',
@@ -6,7 +6,7 @@ import { formatDiffFrom } from '../functions/index.mjs';
6
6
 
7
7
  const cmdDef = cmd.command({
8
8
  name: 'format-diff-from-cli',
9
- version: '9.0.0',
9
+ version: '9.0.1',
10
10
  args: {
11
11
  base: cmd.positional({
12
12
  type: cmd.string,
@@ -6,7 +6,7 @@ import { formatUncommittedFiles } from '../functions/index.mjs';
6
6
 
7
7
  const cmdDef = cmd.command({
8
8
  name: 'format-uncommitted-cli',
9
- version: '9.0.0',
9
+ version: '9.0.1',
10
10
  args: {
11
11
  excludeUntracked: cmd.flag({
12
12
  long: 'exclude-untracked',
@@ -45,7 +45,7 @@ const nonEmptyArray = <T extends cmd.Type<any, any>>(
45
45
 
46
46
  const cmdDef = cmd.command({
47
47
  name: 'gen-index-ts-cli',
48
- version: '9.0.0',
48
+ version: '9.0.1',
49
49
  args: {
50
50
  // required args
51
51
  targetDirectory: cmd.positional({