Skip to content

Commit

Permalink
fix: build with unbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkPhoenix2704 committed May 16, 2024
1 parent 5cbf02f commit 5bce5c2
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 16 deletions.
16 changes: 16 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineBuildConfig } from "unbuild";

export default defineBuildConfig({
entries: ["src/index"],
declaration: true,
clean: true,
rollup: {
emitCJS: true,
inlineDependencies: true,
replace: {
__VUE_PROD_DEVTOOLS__: false,
},
},
dependencies: ["esbuild"],
externals: ["vue"],
});
8 changes: 0 additions & 8 deletions build.mjs

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
27 changes: 21 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
{
"name": "vue-extensible-mail",
"version": "0.0.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "",
"scripts": {
"build": "bun run build.mjs",
"build": "unbuild",
"prepublishOnly": "bun run build"
},
"files": [
"dist"
],
"keywords": [
"bun"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./dist/index.d.ts"
]
}
},
"type": "module",
"license": "MIT",
"homepage": "https://github.com/Darkphoenix2704/vue-extensible-mail#readme",
"repository": {
Expand All @@ -31,6 +45,7 @@
"@vue/server-renderer": "^3.4.27",
"import-string": "^0.1.2",
"scule": "^1.3.0",
"unbuild": "^2.0.0",
"vue": "^3.4.27"
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node",
"skipLibCheck": true,
"noUnusedLocals": true,
"noImplicitAny": true,
"allowJs": true,
"noEmit": true,
"outDir": "dist",
"resolveJsonModule": true
"resolveJsonModule": true,
"skipLibCheck": true
}
}

0 comments on commit 5bce5c2

Please sign in to comment.