Skip to content

Commit 96a8bce

Browse files
chore: docs and scripts.
1 parent b74bfbd commit 96a8bce

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/playwright/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ The mode demo (`/mode.html`) is built via `rspack.mode.config.js`. It depends on
2020
Key pieces:
2121

2222
- `npm run types:mode` generates declaration sidecars for the mode fixtures, including a strict-only path for `strict-ok-card.tsx`.
23-
- `rspack.mode.config.js` runs the generator and writes the merged manifest to
24-
`.knighted-css-mode/knighted-manifest.json`.
23+
- `npm run types:mode` also writes the merged strict manifest to
24+
`.knighted-css-mode/knighted-manifest.json` via `scripts/generate-mode-types.ts`.
2525
- The resolver plugin is configured with `strictSidecar: true` and `manifestPath` so single-specifier imports like `./declaration-card.js` rewrite to `?knighted-css` at build time without warnings.
2626

2727
If you are debugging the mode fixture, use `KNIGHTED_CSS_DEBUG_MODE=1 npm run build:mode` to see rewrite decisions in the terminal.

packages/playwright/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"precheck-types": "npm run types",
2222
"check-types": "tsc --noEmit",
2323
"prebuild": "npm run build -w @knighted/css",
24+
"prebuild:mode": "npm run types:mode",
2425
"preview": "npm run build && http-server . -p 4174",
2526
"preview:mode": "npm run build:mode && http-server . -p 4179 -o /mode.html",
2627
"preview:hashed": "npm run build:hashed && http-server . -p 4178 -o /hashed.html",

0 commit comments

Comments
 (0)