Skip to content

Commit f98f504

Browse files
committed
chore: change how the package is built
1 parent 10b6848 commit f98f504

File tree

24 files changed

+820
-739
lines changed

24 files changed

+820
-739
lines changed

apps/backend-mock/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"scripts": {
99
"build": "nest build",
1010
"dev": "pnpm run start:dev",
11-
"start:dev": "cross-env NODE_ENV=development DEBUG=true nest start --watch",
1211
"start": "cross-env NODE_ENV=development node dist/main",
12+
"start:dev": "cross-env NODE_ENV=development DEBUG=true nest start --watch",
1313
"start:prod": "nest build && cross-env NODE_ENV=production node dist/main"
1414
},
1515
"dependencies": {

apps/web-antd/CHANGELOG.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

internal/vite-config/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"dependencies": {
3030
"@intlify/unplugin-vue-i18n": "^4.0.0",
31-
"@jspm/generator": "^2.1.1",
31+
"@jspm/generator": "^2.1.2",
3232
"cheerio": "1.0.0-rc.12",
3333
"html-minifier-terser": "^7.2.0",
3434
"resolve.exports": "^2.0.2",
@@ -45,8 +45,8 @@
4545
"dotenv": "^16.4.5",
4646
"rollup": "^4.18.1",
4747
"rollup-plugin-visualizer": "^5.12.0",
48-
"sass": "^1.77.7",
49-
"unplugin-turbo-console": "^1.9.2",
48+
"sass": "^1.77.8",
49+
"unplugin-turbo-console": "^1.9.3",
5050
"vite": "^5.3.3",
5151
"vite-plugin-compression": "^0.5.1",
5252
"vite-plugin-dts": "^3.9.1",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
"changeset": "pnpm exec changeset",
3030
"check": "pnpm run check:dep && pnpm run check:circular && pnpm run check:type && pnpm run check:cspell",
3131
"check:circular": "vsh check-circular",
32-
"check:dep": "vsh check-dep",
3332
"check:cspell": "cspell lint \"**/*.ts\" \"**/README.md\" \".changeset/*.md\" --no-progress",
33+
"check:dep": "vsh check-dep",
3434
"check:type": "turbo run typecheck",
3535
"clean": "vsh clean",
3636
"commit": "czg",
37-
"dev": "cross-env TURBO_UI=1 turbo run dev --parallel",
37+
"dev": "cross-env TURBO_UI=1 turbo run dev",
3838
"docs:dev": "pnpm -F @vben/website run docs:dev",
3939
"format": "vsh lint --format",
4040
"lint": "vsh lint",
@@ -44,8 +44,8 @@
4444
"publint": "vsh publint",
4545
"reinstall": "pnpm clean --del-lock && pnpm bootstrap",
4646
"test": "vitest",
47-
"version": "pnpm exec changeset version && pnpm install --no-frozen-lockfile",
48-
"update:deps": " pnpm update --latest --recursive"
47+
"update:deps": " pnpm update --latest --recursive",
48+
"version": "pnpm exec changeset version && pnpm install --no-frozen-lockfile"
4949
},
5050
"devDependencies": {
5151
"@changesets/changelog-github": "^0.5.0",

packages/@core/forward/stores/src/modules/tabbar.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,13 @@ const useCoreTabbarStore = defineStore('core-tabbar', {
318318
return [...affixTabs, ...normalTabs];
319319
},
320320
},
321-
persist: {
322-
// 持久化
323-
paths: ['tabs'],
324-
},
321+
persist: [
322+
// tabs不需要保存在localStorage
323+
{
324+
paths: ['tabs'],
325+
storage: sessionStorage,
326+
},
327+
],
325328
state: (): TabsState => ({
326329
cachedTabs: new Set(),
327330
excludeCachedTabs: new Set(),
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineBuildConfig } from 'unbuild';
2+
3+
export default defineBuildConfig({
4+
clean: true,
5+
declaration: true,
6+
entries: [
7+
{
8+
builder: 'mkdist',
9+
input: './src',
10+
loaders: ['vue'],
11+
pattern: ['**/*.vue'],
12+
},
13+
{
14+
builder: 'mkdist',
15+
format: 'esm',
16+
input: './src',
17+
loaders: ['js'],
18+
pattern: ['**/*.ts'],
19+
},
20+
],
21+
});

packages/@core/ui-kit/layout-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"license": "MIT",
1212
"type": "module",
1313
"scripts": {
14-
"build": "pnpm vite build",
14+
"build": "pnpm unbuild",
1515
"prepublishOnly": "npm run build"
1616
},
1717
"files": [

packages/@core/ui-kit/layout-ui/vite.config.mts

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/@core/ui-kit/shadcn-ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"@vben-core/typings": "workspace:*",
5050
"@vueuse/core": "^10.11.0",
5151
"class-variance-authority": "^0.7.0",
52-
"lucide-vue-next": "^0.407.0",
53-
"radix-vue": "^1.9.0",
52+
"lucide-vue-next": "^0.408.0",
53+
"radix-vue": "^1.9.1",
5454
"vue": "^3.4.31"
5555
}
5656
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineBuildConfig } from 'unbuild';
2+
3+
export default defineBuildConfig({
4+
clean: true,
5+
declaration: true,
6+
entries: [
7+
{
8+
builder: 'mkdist',
9+
input: './src',
10+
loaders: ['vue'],
11+
pattern: ['**/*.vue'],
12+
},
13+
{
14+
builder: 'mkdist',
15+
format: 'esm',
16+
input: './src',
17+
loaders: ['js'],
18+
pattern: ['**/*.ts'],
19+
},
20+
],
21+
});

0 commit comments

Comments
 (0)