chore: change how the package is built

This commit is contained in:
vince 2024-07-12 22:23:41 +08:00
parent 10b684832d
commit f98f504534
24 changed files with 811 additions and 730 deletions

View File

@ -8,8 +8,8 @@
"scripts": { "scripts": {
"build": "nest build", "build": "nest build",
"dev": "pnpm run start:dev", "dev": "pnpm run start:dev",
"start:dev": "cross-env NODE_ENV=development DEBUG=true nest start --watch",
"start": "cross-env NODE_ENV=development node dist/main", "start": "cross-env NODE_ENV=development node dist/main",
"start:dev": "cross-env NODE_ENV=development DEBUG=true nest start --watch",
"start:prod": "nest build && cross-env NODE_ENV=production node dist/main" "start:prod": "nest build && cross-env NODE_ENV=production node dist/main"
}, },
"dependencies": { "dependencies": {

View File

@ -1,22 +0,0 @@
# @vben/antd-view
## 5.0.0
### Patch Changes
- chore: test
- Updated dependencies []:
- @vben-core/helpers@5.0.1
- @vben-core/preferences@5.0.1
- @vben-core/request@5.0.1
- @vben-core/stores@5.0.1
- @vben/layouts@5.0.1
- @vben/widgets@5.0.1
- @vben/constants@5.0.1
- @vben/hooks@5.0.1
- @vben/icons@5.0.1
- #/locales@5.0.1
- @vben/styles@5.0.1
- @vben/types@5.0.1
- @vben/utils@5.0.1

View File

@ -28,7 +28,7 @@
}, },
"dependencies": { "dependencies": {
"@intlify/unplugin-vue-i18n": "^4.0.0", "@intlify/unplugin-vue-i18n": "^4.0.0",
"@jspm/generator": "^2.1.1", "@jspm/generator": "^2.1.2",
"cheerio": "1.0.0-rc.12", "cheerio": "1.0.0-rc.12",
"html-minifier-terser": "^7.2.0", "html-minifier-terser": "^7.2.0",
"resolve.exports": "^2.0.2", "resolve.exports": "^2.0.2",
@ -45,8 +45,8 @@
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"rollup": "^4.18.1", "rollup": "^4.18.1",
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.77.7", "sass": "^1.77.8",
"unplugin-turbo-console": "^1.9.2", "unplugin-turbo-console": "^1.9.3",
"vite": "^5.3.3", "vite": "^5.3.3",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-dts": "^3.9.1", "vite-plugin-dts": "^3.9.1",

View File

@ -29,12 +29,12 @@
"changeset": "pnpm exec changeset", "changeset": "pnpm exec changeset",
"check": "pnpm run check:dep && pnpm run check:circular && pnpm run check:type && pnpm run check:cspell", "check": "pnpm run check:dep && pnpm run check:circular && pnpm run check:type && pnpm run check:cspell",
"check:circular": "vsh check-circular", "check:circular": "vsh check-circular",
"check:dep": "vsh check-dep",
"check:cspell": "cspell lint \"**/*.ts\" \"**/README.md\" \".changeset/*.md\" --no-progress", "check:cspell": "cspell lint \"**/*.ts\" \"**/README.md\" \".changeset/*.md\" --no-progress",
"check:dep": "vsh check-dep",
"check:type": "turbo run typecheck", "check:type": "turbo run typecheck",
"clean": "vsh clean", "clean": "vsh clean",
"commit": "czg", "commit": "czg",
"dev": "cross-env TURBO_UI=1 turbo run dev --parallel", "dev": "cross-env TURBO_UI=1 turbo run dev",
"docs:dev": "pnpm -F @vben/website run docs:dev", "docs:dev": "pnpm -F @vben/website run docs:dev",
"format": "vsh lint --format", "format": "vsh lint --format",
"lint": "vsh lint", "lint": "vsh lint",
@ -44,8 +44,8 @@
"publint": "vsh publint", "publint": "vsh publint",
"reinstall": "pnpm clean --del-lock && pnpm bootstrap", "reinstall": "pnpm clean --del-lock && pnpm bootstrap",
"test": "vitest", "test": "vitest",
"version": "pnpm exec changeset version && pnpm install --no-frozen-lockfile", "update:deps": " pnpm update --latest --recursive",
"update:deps": " pnpm update --latest --recursive" "version": "pnpm exec changeset version && pnpm install --no-frozen-lockfile"
}, },
"devDependencies": { "devDependencies": {
"@changesets/changelog-github": "^0.5.0", "@changesets/changelog-github": "^0.5.0",

View File

@ -318,10 +318,13 @@ const useCoreTabbarStore = defineStore('core-tabbar', {
return [...affixTabs, ...normalTabs]; return [...affixTabs, ...normalTabs];
}, },
}, },
persist: { persist: [
// 持久化 // tabs不需要保存在localStorage
paths: ['tabs'], {
}, paths: ['tabs'],
storage: sessionStorage,
},
],
state: (): TabsState => ({ state: (): TabsState => ({
cachedTabs: new Set(), cachedTabs: new Set(),
excludeCachedTabs: new Set(), excludeCachedTabs: new Set(),

View File

@ -0,0 +1,21 @@
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
clean: true,
declaration: true,
entries: [
{
builder: 'mkdist',
input: './src',
loaders: ['vue'],
pattern: ['**/*.vue'],
},
{
builder: 'mkdist',
format: 'esm',
input: './src',
loaders: ['js'],
pattern: ['**/*.ts'],
},
],
});

View File

@ -11,7 +11,7 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "pnpm vite build", "build": "pnpm unbuild",
"prepublishOnly": "npm run build" "prepublishOnly": "npm run build"
}, },
"files": [ "files": [

View File

@ -1,3 +0,0 @@
import { defineConfig } from '@vben/vite-config';
export default defineConfig();

View File

@ -49,8 +49,8 @@
"@vben-core/typings": "workspace:*", "@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0", "@vueuse/core": "^10.11.0",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"lucide-vue-next": "^0.407.0", "lucide-vue-next": "^0.408.0",
"radix-vue": "^1.9.0", "radix-vue": "^1.9.1",
"vue": "^3.4.31" "vue": "^3.4.31"
} }
} }

View File

@ -0,0 +1,21 @@
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
clean: true,
declaration: true,
entries: [
{
builder: 'mkdist',
input: './src',
loaders: ['vue'],
pattern: ['**/*.vue'],
},
{
builder: 'mkdist',
format: 'esm',
input: './src',
loaders: ['js'],
pattern: ['**/*.ts'],
},
],
});

View File

@ -11,7 +11,7 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "pnpm vite build", "build": "pnpm unbuild",
"prepublishOnly": "npm run build" "prepublishOnly": "npm run build"
}, },
"files": [ "files": [

View File

@ -1,3 +0,0 @@
import { defineConfig } from '@vben/vite-config';
export default defineConfig();

View File

@ -0,0 +1,21 @@
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
clean: true,
declaration: true,
entries: [
{
builder: 'mkdist',
input: './src',
loaders: ['vue'],
pattern: ['**/*.vue'],
},
{
builder: 'mkdist',
format: 'esm',
input: './src',
loaders: ['js'],
pattern: ['**/*.ts'],
},
],
});

View File

@ -11,7 +11,7 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "pnpm vite build", "build": "pnpm unbuild",
"prepublishOnly": "npm run build" "prepublishOnly": "npm run build"
}, },
"files": [ "files": [

View File

@ -1,3 +0,0 @@
import { defineConfig } from '@vben/vite-config';
export default defineConfig();

View File

@ -0,0 +1,21 @@
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
clean: true,
declaration: true,
entries: [
{
builder: 'mkdist',
input: './src',
loaders: ['vue'],
pattern: ['**/*.vue'],
},
{
builder: 'mkdist',
format: 'esm',
input: './src',
loaders: ['js'],
pattern: ['**/*.ts'],
},
],
});

View File

@ -11,7 +11,7 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "pnpm vite build", "build": "pnpm unbuild",
"prepublishOnly": "npm run build" "prepublishOnly": "npm run build"
}, },
"files": [ "files": [

View File

@ -1,3 +0,0 @@
import { defineConfig } from '@vben/vite-config';
export default defineConfig();

View File

@ -0,0 +1,21 @@
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
clean: true,
declaration: true,
entries: [
{
builder: 'mkdist',
input: './src',
loaders: ['vue'],
pattern: ['**/*.vue'],
},
{
builder: 'mkdist',
format: 'esm',
input: './src',
loaders: ['js'],
pattern: ['**/*.ts'],
},
],
});

View File

@ -11,7 +11,7 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "pnpm vite build", "build": "pnpm unbuild",
"prepublishOnly": "npm run build" "prepublishOnly": "npm run build"
}, },
"files": [ "files": [

View File

@ -1,3 +0,0 @@
import { defineConfig } from '@vben/vite-config';
export default defineConfig();

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@
}, },
"stub": {}, "stub": {},
"dev": { "dev": {
"dependsOn": ["^build"], "dependsOn": [],
"outputs": [], "outputs": [],
"cache": false, "cache": false,
"persistent": true "persistent": true

View File

@ -3,8 +3,8 @@
"version": "5.0.0", "version": "5.0.0",
"private": true, "private": true,
"scripts": { "scripts": {
"docs:dev": "vitepress dev",
"docs:build": "vitepress build", "docs:build": "vitepress build",
"docs:dev": "vitepress dev",
"docs:preview": "vitepress preview" "docs:preview": "vitepress preview"
}, },
"devDependencies": { "devDependencies": {