Skip to content

Commit e1713a4

Browse files
committed
fix(linter/plugins): include common chunks in oxlint-plugin-eslint package (#20163)
Common chunks were not included in `files` key of `package.json` in `npm/oxlint-plugin-eslint`, so the package would have been broken when published. Fix that.
1 parent c422abd commit e1713a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

apps/oxlint/tsdown.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ export default defineConfig([
141141
...pluginEslintPkgConfig,
142142
entry: pluginEslintRulesEntries,
143143
format: "commonjs",
144+
outputOptions: {
145+
chunkFileNames: "common/[name].cjs",
146+
},
144147
},
145148
]);
146149

npm/oxlint-plugin-eslint/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"files": [
2424
"index.js",
2525
"rules",
26+
"common",
2627
"README.md"
2728
],
2829
"type": "module",

0 commit comments

Comments
 (0)