Skip to content

Commit 90699c2

Browse files
committed
chore: cleanup
1 parent 24f44b5 commit 90699c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1314
-1073
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@apitree.cz/lint-staged-config': major
3+
---
4+
5+
Remove `library` export
6+
7+
The `library` export has been removed as it is now identical to the `workspace` export. Use `workspace` instead for all workspace configurations.
8+
9+
**Breaking change:**
10+
11+
```diff
12+
- export { library as default } from '@apitree.cz/lint-staged-config';
13+
+ export { workspace as default } from '@apitree.cz/lint-staged-config';
14+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@apitree.cz/cli': minor
3+
---
4+
5+
Remove `lib` configuration option from sync-project-references
6+
7+
The `lib` property has been removed from the `SyncProjectReferencesTsConfigs` interface and default configuration. This option was never actually used by the CLI and has been deprecated in favor of a simpler two-config pattern (tsconfig.json and tsconfig.build.json).
8+
9+
If you have custom configuration that references `tsConfigs.lib`, you can safely remove it as it had no effect.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@apitree.cz/ts-config': patch
3+
---
4+
5+
Update documentation to reflect simplified TypeScript configuration pattern
6+
7+
Updated README to document the new two-config pattern (tsconfig.json + tsconfig.build.json) instead of the previous three-config pattern. The library configuration is now directly in tsconfig.json rather than in a separate tsconfig.lib.json file.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@apitree.cz/eslint-config': patch
3+
'@apitree.cz/prettier-config': patch
4+
'@apitree.cz/testing-library': patch
5+
'@apitree.cz/ts-utils': patch
6+
'@apitree.cz/typedoc-config': patch
7+
'@apitree.cz/vitest-config': patch
8+
---
9+
10+
Simplify TypeScript configuration structure
11+
12+
Removed `tsconfig.lib.json` files and consolidated configuration into `tsconfig.json`. The new pattern uses only two config files per package:
13+
14+
- `tsconfig.json` - Main configuration for type checking (extends from @apitree.cz/ts-config/library)
15+
- `tsconfig.build.json` - Build configuration (inherits from tsconfig.json)
16+
17+
Updated package.json scripts to reference `tsconfig.json` instead of `tsconfig.lib.json` for type checking and documentation generation. This is an internal change and does not affect package consumers.

.github/copilot-instructions.md

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -111,45 +111,34 @@ Every package should have consistent scripts in package.json:
111111
"qa": "run-p ts format lint",
112112
"test": "vitest run",
113113
"test:coverage": "vitest run --coverage",
114-
"ts": "tsc --build tsconfig.lib.json"
114+
"ts": "tsc --build tsconfig.json"
115115
}
116116
}
117117
```
118118

119119
## TypeScript Configuration Files
120120

121-
Each package needs three tsconfig files:
121+
Each package needs two tsconfig files:
122122

123-
**tsconfig.json** - Main config for IDE:
123+
**tsconfig.json** - Main config for type checking:
124124

125125
```json
126126
{
127-
"extends": "@apitree.cz/ts-config/library.json",
128-
"include": [],
129-
"references": [{ "path": "./tsconfig.lib.json" }]
127+
"extends": "@apitree.cz/ts-config/library",
128+
"compilerOptions": { "rootDir": "./src", "outDir": "./dist" },
129+
"include": ["./src"],
130+
"exclude": ["dist", "node_modules"],
131+
"references": []
130132
}
131133
```
132134

133-
**tsconfig.lib.json** - Type checking without emit:
135+
**tsconfig.build.json** - Build configuration (inherits from tsconfig.json):
134136

135137
```json
136138
{
137139
"extends": "./tsconfig.json",
138-
"include": ["src/**/*", "tests/**/*"]
139-
}
140-
```
141-
142-
**tsconfig.build.json** - Build configuration:
143-
144-
```json
145-
{
146-
"extends": "./tsconfig.json",
147-
"compilerOptions": {
148-
"noEmit": false,
149-
"rootDir": "./src",
150-
"outDir": "./dist"
151-
},
152-
"include": ["src/**/*"]
140+
"compilerOptions": { "noEmit": false },
141+
"references": []
153142
}
154143
```
155144

CLAUDE.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ Internal dependencies use workspace protocol:
105105

106106
### TypeScript Configuration Pattern
107107

108-
Each package has three TypeScript config files:
108+
Each package has two TypeScript config files:
109109

110-
- `tsconfig.json` - Main config (references lib for type checking)
111-
- `tsconfig.build.json` - Build config with `noEmit: false`, includes src files
112-
- `tsconfig.lib.json` - Library config (extends from ts-config package)
110+
- `tsconfig.json` - Main config (extends from ts-config package, used for type checking)
111+
- `tsconfig.build.json` - Build config with `noEmit: false` (inherits from tsconfig.json)
113112

114113
**Configuration hierarchy:**
115114

@@ -137,7 +136,7 @@ build → tsc --build tsconfig.build.json
137136
├── outputs: dist/**, tsconfig.build.tsbuildinfo
138137
└── dependsOn: ^build (dependencies first)
139138
140-
ts → tsc --build tsconfig.lib.json
139+
ts → tsc --build tsconfig.json
141140
├── Type checking without emission
142141
└── Faster feedback loop
143142
```

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,22 @@
5353
"@apitree.cz/prettier-config": "workspace:*",
5454
"@apitree.cz/ts-config": "workspace:*",
5555
"@apitree.cz/typedoc-config": "workspace:*",
56-
"@changesets/cli": "^2.29.7",
57-
"@commitlint/cli": "^20.1.0",
58-
"@commitlint/config-conventional": "^20.0.0",
56+
"@changesets/cli": "^2.29.8",
57+
"@commitlint/cli": "^20.2.0",
58+
"@commitlint/config-conventional": "^20.2.0",
5959
"@manypkg/cli": "^0.25.1",
60-
"@types/node": "^24.10.1",
60+
"@types/node": "^24.10.3",
6161
"del-cli": "^7.0.0",
6262
"eslint": "^9.39.1",
6363
"husky": "^9.1.7",
6464
"husky-check-email": "^0.0.8",
65-
"lint-staged": "^16.2.6",
66-
"prettier": "^3.6.2",
67-
"turbo": "^2.6.1",
68-
"typedoc": "^0.28.14",
65+
"lint-staged": "^16.2.7",
66+
"prettier": "^3.7.4",
67+
"turbo": "^2.6.3",
68+
"typedoc": "^0.28.15",
6969
"typescript": "^5.9.3"
7070
},
71-
"packageManager": "pnpm@10.22.0",
71+
"packageManager": "pnpm@10.25.0",
7272
"engines": {
7373
"node": "24.x"
7474
},

packages/cli/docs/interfaces/SyncProjectReferencesConfig.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
# Interface: SyncProjectReferencesConfig
66

7-
Defined in: [types.ts:29](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L29)
7+
Defined in: [types.ts:24](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L24)
88

99
## Properties
1010

1111
### hooks?
1212

1313
> `optional` **hooks**: [`SyncProjectReferencesHooks`](SyncProjectReferencesHooks.md)
1414
15-
Defined in: [types.ts:33](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L33)
15+
Defined in: [types.ts:28](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L28)
1616

1717
Custom hooks to run as parts of the sync process.
1818

@@ -22,6 +22,6 @@ Custom hooks to run as parts of the sync process.
2222

2323
> `optional` **tsConfigs**: [`SyncProjectReferencesTsConfigs`](SyncProjectReferencesTsConfigs.md)
2424
25-
Defined in: [types.ts:37](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L37)
25+
Defined in: [types.ts:32](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L32)
2626

2727
Custom names for TS config files.

packages/cli/docs/interfaces/SyncProjectReferencesTsConfigs.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,3 @@ Name of the main TS config file.
3333
#### Default Value
3434

3535
`'tsconfig.json'`
36-
37-
---
38-
39-
### lib?
40-
41-
> `optional` **lib**: `string`
42-
43-
Defined in: [types.ts:26](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L26)
44-
45-
Name of the TS config file for distributable libraries.
46-
47-
#### Default Value
48-
49-
`'tsconfig.lib.json'`

packages/cli/docs/interfaces/WorkspacePackageProps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
# Interface: WorkspacePackageProps
66

7-
Defined in: [types.ts:40](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L40)
7+
Defined in: [types.ts:35](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L35)
88

99
## Properties
1010

1111
### workspacePackage
1212

1313
> **workspacePackage**: `Package`
1414
15-
Defined in: [types.ts:44](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L44)
15+
Defined in: [types.ts:39](https://github.com/ApiTreeCZ/toolbox/blob/main/packages/cli/src/commands/sync-project-references/types.ts#L39)
1616

1717
Workspace package.

0 commit comments

Comments
 (0)