Skip to content

Commit 4c24843

Browse files
committed
refactor(background): re-export background from core pkg
Signed-off-by: braks <[email protected]>
1 parent 68b4720 commit 4c24843

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

packages/background/package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,19 @@
4949
"dev": "pnpm types:watch & pnpm build:watch",
5050
"build": "vite build",
5151
"build:watch": "vite build --watch",
52-
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
53-
"types:watch": "vue-tsc --declaration --emitDeclarationOnly --watch",
52+
"types": "tsc && pnpm lint:dist",
53+
"types:watch": "tsc --watch",
5454
"lint": "eslint --ext .js,.ts,.vue ./",
5555
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist",
5656
"test": "exit 0"
5757
},
5858
"peerDependencies": {
59-
"@vue-flow/core": "^1.23.0",
60-
"vue": "^3.3.0"
59+
"@vue-flow/core": "^1.23.0"
6160
},
6261
"devDependencies": {
6362
"@tooling/eslint-config": "workspace:*",
6463
"@tooling/tsconfig": "workspace:*",
65-
"@tooling/vite-config": "workspace:*",
66-
"@vue-flow/core": "workspace:*",
67-
"vue-tsc": "^1.8.16"
64+
"@vue-flow/core": "workspace:*"
6865
},
6966
"publishConfig": {
7067
"access": "public",

packages/background/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export { default as Background } from './Background.vue'
2-
export * from './types'
1+
export { Background, BackgroundVariant, BackgroundProps } from '@vue-flow/core'

packages/background/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"compilerOptions": {
44
"baseUrl": ".",
55
"declarationDir": "./dist",
6-
"types": [
7-
"vite/client",
8-
"vue/macros"
9-
]
6+
"types": ["vite/client"]
107
},
118
"include": [
129
"./src"

0 commit comments

Comments
 (0)