-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💥 Resupport both CJS and ESM vite config
- Loading branch information
1 parent
e7a6e5d
commit fa3deee
Showing
3 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"version": "0.2.2", | ||
"description": "A utility vite plugin to compile browserslist query to a RegExp to test browser useragent.", | ||
"author": "Yue JIN <[email protected]>", | ||
"packageManager": "pnpm@7.14.2", | ||
"packageManager": "pnpm@8.7.5", | ||
"engines": { | ||
"node": ">=14" | ||
}, | ||
|
@@ -15,7 +15,7 @@ | |
"vite-plugin", | ||
"useragent" | ||
], | ||
"main": "dist/index.js", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
|
@@ -24,6 +24,7 @@ | |
], | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
|
@@ -38,8 +39,8 @@ | |
"url": "https://github.com/kingyue737/vite-plugin-browserslist-useragent/issues" | ||
}, | ||
"scripts": { | ||
"build": "tsup src/index.ts --dts --format esm", | ||
"prepublishOnly": "npm run build", | ||
"build": "tsup src/index.ts --dts --format cjs,esm", | ||
"prepublishOnly": "pnpm run build", | ||
"release": "bumpp --execute=\"pnpm changelog\" --commit \"🔖 Release v\" --push --tag --all && npm publish --registry=\"https://registry.npmjs.org/\"", | ||
"changelog": "gitmoji-changelog" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters