From 89390b536c61ecc86759ac9ffa3061e7b2d194e8 Mon Sep 17 00:00:00 2001 From: "Jose A. Cabaneros" Date: Thu, 7 Nov 2024 13:40:41 +0100 Subject: [PATCH] build(prettier): build prettier config in ESM and CJS --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8672c71..2d65654 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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 .",