Skip to content

Commit

Permalink
fix: make types usable in CommonJS (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime authored Jan 13, 2025
1 parent 0281fdf commit 41ef891
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
],
"license": "Apache-2.0",
"dependencies": {
"@eslint/plugin-kit": "^0.2.3",
"@eslint/core": "^0.10.0",
"@eslint/plugin-kit": "^0.2.5",
"@humanwhocodes/momoa": "^3.3.4"
},
"devDependencies": {
"@eslint/core": "^0.6.0",
"@types/eslint": "^8.56.10",
"c8": "^9.1.0",
"dedent": "^1.5.3",
Expand Down
10 changes: 10 additions & 0 deletions tests/types/cjs-import.test.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @fileoverview CommonJS type import test for ESLint JSON Language Plugin.
* @author Francesco Trotta
*/

//-----------------------------------------------------------------------------
// Imports
//-----------------------------------------------------------------------------

import "@eslint/json";
3 changes: 2 additions & 1 deletion tests/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"rootDir": "../..",
"strict": true
},
"files": ["../../dist/esm/index.d.ts", "types.test.ts"]
"files": [],
"include": [".", "../../dist"]
}

0 comments on commit 41ef891

Please sign in to comment.