Allow .mts and .mjs imports in no-asset-imports
Check / check (pull_request) Successful in 42s

This commit is contained in:
Danny Kim
2026-10-17 15:59:45 +09:00
parent 6b87ff66b9
commit c778c00068
3 changed files with 31 additions and 21 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ registerHooks({
- Node runs the `.ts` script directly (type stripping), so no build step.
- Import the package entry, or spawn the package's bin with
`node:child_process`, rather than `await import("lit-analyzer/cli.js")`.
`project/no-asset-imports` allows `.js` subpaths, but the CLI file runs on
`project/no-asset-imports` allows `.js` (and `.mts`/`.mjs`) subpaths, but the CLI file runs on
import and bypasses the package's public entry.
- CI runs `npm run lit-check` as its own step.
- It is tooling under `scripts/`: no tests; a narrow `overrides` entry for it