Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
fix: correct types for node16 resolution (#47)
Browse files Browse the repository at this point in the history
* fix: correct types for node16 resolution

* Delete eslint-visitor-keys-3.4.0.tgz
  • Loading branch information
bradzacher authored Apr 28, 2023
1 parent c982093 commit 7bd1fc1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import KEYS from "./visitor-keys.js";

/**
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
* @typedef {import('./visitor-keys.js').VisitorKeys} VisitorKeys
*/

// List to ignore keys.
Expand Down
2 changes: 1 addition & 1 deletion lib/visitor-keys.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @typedef {import('./index.js').VisitorKeys} VisitorKeys
* @typedef {{ readonly [type: string]: ReadonlyArray<string> }} VisitorKeys
*/

/**
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dist/index.d.ts",
"dist/visitor-keys.d.ts",
"dist/eslint-visitor-keys.cjs",
"dist/eslint-visitor-keys.d.cts",
"lib"
],
"engines": {
Expand All @@ -40,6 +41,7 @@
"mocha": "^9.2.1",
"opener": "^1.5.2",
"rollup": "^2.70.0",
"rollup-plugin-dts": "^4.2.3",
"tsd": "^0.19.1",
"typescript": "^4.6.2"
},
Expand Down
27 changes: 20 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
export default {
input: "./lib/index.js",
treeshake: false,
output: {
format: "cjs",
file: "dist/eslint-visitor-keys.cjs"
import dts from "rollup-plugin-dts";

export default [
{
input: "./lib/index.js",
treeshake: false,
output: {
format: "cjs",
file: "dist/eslint-visitor-keys.cjs"
}
},
{
plugins: [dts()],
input: "./lib/index.js",
treeshake: false,
output: {
format: "cjs",
file: "dist/eslint-visitor-keys.d.cts"
}
}
};
];

0 comments on commit 7bd1fc1

Please sign in to comment.