@@ -13,7 +13,7 @@ import { nodeExternalsPlugin } from 'esbuild-node-externals'
|
||||
(async () => {
|
||||
/** @type {Build[]} */
|
||||
const builds = [
|
||||
{ format: 'esm', file: 'index.esm.js' },
|
||||
{ format: 'esm', file: 'index.mjs' },
|
||||
{ format: 'cjs', file: 'index.js' },
|
||||
]
|
||||
for (const { format, file } of builds) {
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"module": "dist/index.esm.js",
|
||||
"module": "dist/index.mjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.esm.js",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
},
|
||||
"./*": "./*"
|
||||
|
||||
Reference in New Issue
Block a user