Skip to content

Commit e7ccd2e

Browse files
authored
fix!: remove rollup and extraneous types (#383)
* chore: remove rollup * fix test * update jsr.json
1 parent 187804b commit e7ccd2e

File tree

7 files changed

+6
-88
lines changed

7 files changed

+6
-88
lines changed

jsr.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
"exports": "./dist/esm/index.js",
55
"publish": {
66
"include": [
7-
"dist/esm/index.js",
8-
"dist/esm/index.d.ts",
9-
"dist/esm/types.ts",
10-
"dist/esm/types.d.ts",
7+
"dist",
118
"README.md",
129
"jsr.json",
1310
"LICENSE"

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@
6363
"lint:fix": "eslint --fix . && eslint --fix -c eslint.config-content.js .",
6464
"fmt": "prettier --write .",
6565
"fmt:check": "prettier --check .",
66-
"build:dedupe-types": "node tools/dedupe-types.js dist/esm/index.js",
6766
"build:rules": "node tools/build-rules.js",
6867
"build:update-rules-docs": "node tools/update-rules-docs.js",
69-
"build": "npm run build:rules && rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:update-rules-docs",
68+
"build": "npm run build:rules && tsc && npm run build:update-rules-docs",
7069
"build:readme": "node tools/update-readme.js",
7170
"prepare": "npm run build",
7271
"test": "c8 mocha \"tests/**/*.test.js\" --timeout 30000",
@@ -85,9 +84,6 @@
8584
"lint-staged": "^15.2.9",
8685
"mocha": "^11.6.0",
8786
"prettier": "^3.3.3",
88-
"rollup": "^4.19.0",
89-
"rollup-plugin-copy": "^3.5.0",
90-
"rollup-plugin-delete": "^3.0.1",
9187
"typescript": "^5.8.3",
9288
"yorkie": "^2.0.0"
9389
},

rollup.config.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

tests/types/types.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import markdown, {
22
MarkdownSourceCode,
3-
MarkdownNode,
43
MarkdownRuleDefinition,
54
MarkdownRuleVisitor,
6-
SourceLocation,
7-
SourceRange,
85
type RuleModule,
96
} from "@eslint/markdown";
10-
import { Toml, Json } from "@eslint/markdown/types";
7+
import type { SourceLocation, SourceRange } from "@eslint/core";
8+
import type { Toml, Json } from "@eslint/markdown/types";
119
import { ESLint, Linter } from "eslint";
1210
import type {
1311
// Nodes (abstract)
@@ -168,8 +166,8 @@ typeof processorPlugins satisfies {};
168166
"json:exit": (...args) => testVisitor<Json>(...args),
169167

170168
// Unknown selectors allowed
171-
"heading[depth=1]"(node: MarkdownNode, parent?: ParentNode) {},
172-
"randomSelector:exit"(node: MarkdownNode, parent?: ParentNode) {},
169+
"heading[depth=1]"(node: Node, parent?: ParentNode) {},
170+
"randomSelector:exit"(node: Node, parent?: ParentNode) {},
173171
};
174172
},
175173
});

tools/dedupe-types.js

Lines changed: 0 additions & 48 deletions
This file was deleted.

tsconfig.esm.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"files": ["src/index.js"],
33
"compilerOptions": {
44
"declaration": true,
5-
"emitDeclarationOnly": true,
6-
"allowImportingTsExtensions": true,
75
"allowJs": true,
86
"checkJs": true,
97
"outDir": "dist/esm",

0 commit comments

Comments
 (0)