Skip to content

Commit 41ef891

Browse files
authored
fix: make types usable in CommonJS (#77)
1 parent 0281fdf commit 41ef891

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
],
6464
"license": "Apache-2.0",
6565
"dependencies": {
66-
"@eslint/plugin-kit": "^0.2.3",
66+
"@eslint/core": "^0.10.0",
67+
"@eslint/plugin-kit": "^0.2.5",
6768
"@humanwhocodes/momoa": "^3.3.4"
6869
},
6970
"devDependencies": {
70-
"@eslint/core": "^0.6.0",
7171
"@types/eslint": "^8.56.10",
7272
"c8": "^9.1.0",
7373
"dedent": "^1.5.3",

tests/types/cjs-import.test.cts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @fileoverview CommonJS type import test for ESLint JSON Language Plugin.
3+
* @author Francesco Trotta
4+
*/
5+
6+
//-----------------------------------------------------------------------------
7+
// Imports
8+
//-----------------------------------------------------------------------------
9+
10+
import "@eslint/json";

tests/types/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"rootDir": "../..",
66
"strict": true
77
},
8-
"files": ["../../dist/esm/index.d.ts", "types.test.ts"]
8+
"files": [],
9+
"include": [".", "../../dist"]
910
}

0 commit comments

Comments
 (0)