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

fix: correct types for node16 resolution #47

Merged
merged 2 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added eslint-visitor-keys-3.4.0.tgz
bradzacher marked this conversation as resolved.
Show resolved Hide resolved
Binary file not shown.
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"
}
}
};
];