You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,7 @@ CSS Modules hash class names after the loader extracts selectors, so the stylesh
204
204
205
205
Run `npxknighted-css-generate-types--root .` to scan your project for `?knighted-css&types` imports. The CLI:
206
206
207
-
- extracts selectors via the loader, then writes literal module declarations into `node_modules/@knighted/css/node_modules/.knighted-css`
207
+
- extracts selectors via the loader, then writes literal module declarations whose specifiers resolve to the real stylesheet paths (TypeScript picks up `import'./foo.scss?knighted-css&types'` directly—no registries or casting helpers required). The default output still lands in `node_modules/@knighted/css/node_modules/.knighted-css`, but every module declaration points back to your source tree.
208
208
- updates the packaged stub at `node_modules/@knighted/css/types-stub/index.d.ts`
209
209
- exposes the declarations automatically because `types.d.ts` references the stub, so no `tsconfig` wiring is required
210
210
@@ -316,7 +316,7 @@ or wire it into `package.json` for local workflows:
Copy file name to clipboardExpand all lines: packages/css/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@knighted/css",
3
-
"version": "1.0.0-rc.10",
3
+
"version": "1.0.0-rc.11",
4
4
"description": "A build-time utility that traverses JavaScript/TypeScript module dependency graphs to extract, compile, and optimize all imported CSS into a single, in-memory string.",
0 commit comments