Skip to content

Commit

Permalink
fix: move "types" export condition (#129)
Browse files Browse the repository at this point in the history
Running publint on this package generates errors regarding the order of
`"exports"` fields: https://publint.dev/eslint-plugin-oxlint@0.5.0

This PR moves the `"types"` field to the first position in each export
path, fixing these errors.
  • Loading branch information
lachlancollins authored Aug 9, 2024
1 parent 4c4acf2 commit bbd63e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
"packageManager": "pnpm@9.6.0",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.mjs",
"require": "./lib/index.cjs",
"default": "./lib/index.mjs",
"types": "./lib/index.d.ts"
"default": "./lib/index.mjs"
},
"./rules-by-category": {
"types": "./lib/rules-by-category.d.ts",
"import": "./lib/rules-by-category.mjs",
"require": "./lib/rules-by-category.cjs",
"default": "./lib/rules-by-category.mjs",
"types": "./lib/rules-by-category.d.ts"
"default": "./lib/rules-by-category.mjs"
},
"./rules-by-scope": {
"types": "./lib/rules-by-scope.d.ts",
"import": "./lib/rules-by-scope.mjs",
"require": "./lib/rules-by-scope.cjs",
"default": "./lib/rules-by-scope.mjs",
"types": "./lib/rules-by-scope.d.ts"
"default": "./lib/rules-by-scope.mjs"
}
},
"files": [
Expand Down

0 comments on commit bbd63e3

Please sign in to comment.