Skip to content

Commit

Permalink
fix package.json export
Browse files Browse the repository at this point in the history
  • Loading branch information
lycHub committed Jun 21, 2024
1 parent cc00d59 commit 99bcdd3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion note.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ git push origin [tagname]
build并发布demo:
pnpm build:demo

发布:pnpm -r publish -F @ysx-libs/vue-virtual-tree --access=public --git-checks=false
发布:pnpm publish -F @ysx-libs/vue-virtual-tree --access=public --git-checks=false
13 changes: 10 additions & 3 deletions projects/VirtualTree/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@ysx-libs/vue-virtual-tree",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"scripts": {
"build:dev": "vite build --watch --emptyOutDir=false",
"build": "vue-tsc --noEmit && vite build && npm run build:types",
Expand All @@ -13,8 +14,14 @@
"types": "./dist/typings/tree/index.d.ts",
"exports": {
".": {
"import": "./dist/vue-virtual-tree.es.js",
"require": "./dist/vue-virtual-tree.umd.js"
"import": {
"types": "./dist/typings/tree/index.d.ts",
"default": "./dist/vue-virtual-tree.es.js"
},
"require": {
"types": "./dist/typings/tree/index.d.ts",
"default": "./dist/vue-virtual-tree.umd.js"
}
},
"./style.css": "./dist/style.css"
},
Expand Down
8 changes: 3 additions & 5 deletions projects/VirtualTree/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/// <reference types="vite/client" />
/// <reference types="vue/macros-global" />

declare module '*.vue' {
import type { DefineComponent } from 'vue'
import type { DefineComponent } from 'vue';
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
const component: DefineComponent<{}, {}, any>;
export default component;
}
2 changes: 1 addition & 1 deletion projects/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@ant-design/icons-vue": "^6.1.0",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"@ysx-libs/vue-virtual-tree": "workspace:^0.0.7",
"@ysx-libs/vue-virtual-tree": "workspace:^0.0.8",
"ant-design-vue": "^3.2.0",
"highlight.js": "^11.5.1"
}
Expand Down
9 changes: 3 additions & 6 deletions projects/demo/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/// <reference types="vite/client" />

/// <reference types="vue/macros-global" />

declare module '*.vue' {
import type { DefineComponent } from 'vue'
import type { DefineComponent } from 'vue';
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
const component: DefineComponent<{}, {}, any>;
export default component;
}

0 comments on commit 99bcdd3

Please sign in to comment.