Skip to content

Commit

Permalink
fix: ship cjs build as well
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 24, 2023
1 parent 50c5a9a commit f0b67fe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
15 changes: 11 additions & 4 deletions package.json
Expand Up @@ -11,13 +11,20 @@
"keywords": [
"eslint-config"
],
"main": "dist/index.js",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsup src/index.ts --format esm --clean --dts",
"stub": "tsup src/index.ts --format esm --clean",
"build": "tsup src/index.ts --format esm,cjs --clean --dts",
"stub": "tsup src/index.ts --format esm",
"lint": "pnpm run stub && eslint .",
"prepack": "nr build",
"release": "bumpp && pnpm publish",
Expand Down Expand Up @@ -58,7 +65,7 @@
"@antfu/ni": "^0.21.8",
"@stylistic/eslint-plugin-migrate": "0.0.4",
"@types/fs-extra": "^11.0.2",
"@types/node": "^20.6.3",
"@types/node": "^20.6.4",
"bumpp": "^9.2.0",
"eslint": "^8.50.0",
"eslint-plugin-sort-keys": "^2.3.5",
Expand Down
26 changes: 13 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f0b67fe

Please sign in to comment.