diff --git a/.npmrc b/.npmrc index c1ca392..8783d62 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ package-lock = false +install-links = false diff --git a/jsr.json b/jsr.json index 72ea2cb..7a2b6f6 100644 --- a/jsr.json +++ b/jsr.json @@ -8,7 +8,9 @@ "dist/esm/index.d.ts", "README.md", "jsr.json", - "LICENSE" + "LICENSE", + "typings/css-tree/index.d.ts", + "typings/css-tree/LICENSE" ] } } diff --git a/package.json b/package.json index a0d5924..6fea3fa 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ } }, "files": [ - "dist" + "dist", + "typings" ], "publishConfig": { "access": "public" @@ -69,13 +70,13 @@ ], "license": "Apache-2.0", "dependencies": { - "@eslint/plugin-kit": "^0.2.3", + "@eslint/core": "^0.10.0", + "@eslint/plugin-kit": "^0.2.5", + "@types/css-tree": "file:./typings/css-tree", "css-tree": "^3.1.0" }, "devDependencies": { - "@eslint/core": "^0.7.0", "@eslint/json": "^0.5.0", - "@types/eslint": "^8.56.10", "c8": "^9.1.0", "dedent": "^1.5.3", "eslint": "^9.11.1", diff --git a/tests/types/cjs-import.test.cts b/tests/types/cjs-import.test.cts new file mode 100644 index 0000000..daf8471 --- /dev/null +++ b/tests/types/cjs-import.test.cts @@ -0,0 +1,10 @@ +/** + * @fileoverview CommonJS type import test for ESLint CSS Language Plugin. + * @author Francesco Trotta + */ + +//----------------------------------------------------------------------------- +// Imports +//----------------------------------------------------------------------------- + +import "@eslint/css"; diff --git a/tests/types/tsconfig.json b/tests/types/tsconfig.json index 6bf4343..c6bd5a6 100644 --- a/tests/types/tsconfig.json +++ b/tests/types/tsconfig.json @@ -5,5 +5,6 @@ "rootDir": "../..", "strict": true }, - "files": ["../../dist/esm/index.d.ts", "types.test.ts"] + "files": [], + "include": [".", "../../dist"] } diff --git a/tsconfig.json b/tsconfig.json index bcaaa13..3fa504c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,5 @@ { "files": ["src/index.js"], - "include": ["typings"], "compilerOptions": { "declaration": true, "emitDeclarationOnly": true, diff --git a/typings/LICENSE b/typings/css-tree/LICENSE similarity index 100% rename from typings/LICENSE rename to typings/css-tree/LICENSE diff --git a/typings/css-tree.d.ts b/typings/css-tree/index.d.ts similarity index 100% rename from typings/css-tree.d.ts rename to typings/css-tree/index.d.ts diff --git a/typings/css-tree/package.json b/typings/css-tree/package.json new file mode 100644 index 0000000..e9eac78 --- /dev/null +++ b/typings/css-tree/package.json @@ -0,0 +1,4 @@ +{ + "private": true, + "name": "@types/css-tree" +}