diff --git a/README.md b/README.md index 9a714cd..a7ec96d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Managing these rules across numerous projects can be tedious. `sync-rules` lets ## Installation -Requires Node.js v22.19.0 or higher. +Requires Node.js v24.0.0 or higher. ```bash npm install -g sync-rules diff --git a/knip.json b/knip.json index 6fd95fc..0ebd5e5 100644 --- a/knip.json +++ b/knip.json @@ -1,5 +1,5 @@ { "$schema": "https://unpkg.com/knip@6/schema.json", - "entry": ["src/cli/main.ts", "types/ts-reset.d.ts", "types/css-modules.d.ts"], + "entry": ["src/cli/main.ts", "types/ts-reset.d.ts"], "project": ["src/**/*.ts", "types/**/*.d.ts"] } diff --git a/types/css-modules.d.ts b/types/css-modules.d.ts deleted file mode 100644 index fbc38f9..0000000 --- a/types/css-modules.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Under tsgo build mode the strict base type-checks CSS side-effect imports -// (`import "./styles.css"`), which fail with TS2882 unless an ambient `*.css` -// module is in scope. This shim supplies them for every solution-root repo — -// Next.js apps, but also Vite/React and Tailwind repos that side-effect-import -// CSS. Next.js also ships its own copies (next/types/global.d.ts) via a generated -// `next-env.d.ts`; the overlap is harmless (`skipLibCheck` is on and both -// declarations are type-compatible) and this shim keeps the gate green even -// before `next typegen` runs. -// -// The typed `*.module.css` must come first: tsgo ranks pattern modules by prefix -// length only, both prefixes are empty, so the first-declared wins the tie. A -// leading bare `*.css` would shadow `*.module.css` and collapse every module-CSS -// import to `any` (verified against tsgo 7.0.2). -declare module "*.module.css" { - const classes: Readonly>; - export default classes; -} -declare module "*.css";