Skip to content

Commit

Permalink
build(prettier): build prettier config in ESM and CJS
Browse files Browse the repository at this point in the history
  • Loading branch information
joseacabaneros committed Nov 7, 2024
1 parent 82e66d4 commit 89390b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"require": "./dist/index.cjs"
},
"./prettier": {
"default": "./dist/prettier.config.js"
"types": "./dist/prettier.config.d.ts",
"import": "./dist/prettier.config.js",
"require": "./dist/prettier.config.cjs"
}
},
"main": "./dist/index.cjs",
Expand All @@ -37,7 +39,7 @@
"package.json"
],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --clean --dts && tsup prettier.config.js --format esm",
"build": "tsup src/index.ts --format esm,cjs --clean --dts && tsup prettier.config.js --format esm,cjs",
"lint": "eslint --flag unstable_ts_config --fix .",
"lint:check": "eslint --flag unstable_ts_config .",
"lint:inspect": "eslint --flag unstable_ts_config --inspect-config .",
Expand Down

0 comments on commit 89390b5

Please sign in to comment.