Skip to content

Commit

Permalink
Refactor on nuxt-module build
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jun 20, 2024
1 parent 7922625 commit 4b3e712
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 85 deletions.
4 changes: 2 additions & 2 deletions packages/auto-import-resolver/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { components, directives, type MetaType } from '@primevue/metadata';
import type { ComponentResolveResult, ComponentResolver } from 'unplugin-vue-components/types';
import { components, directives, MetaType } from '@primevue/metadata';
import type { ComponentResolver, ComponentResolveResult } from 'unplugin-vue-components/types';

export interface PrimeVueResolverOptions {
components?: {
Expand Down
10 changes: 9 additions & 1 deletion packages/nuxt-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
"files": [
"dist"
],
"build": {
"externals": [
"primevue",
"@primevue/metadata",
"@primevue/auto-import-resolver",
"unplugin-vue-components"
]
},
"publishConfig": {
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
Expand Down Expand Up @@ -77,4 +85,4 @@
"engines": {
"node": ">=12.11.0"
}
}
}
4 changes: 3 additions & 1 deletion packages/nuxt-module/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"moduleResolution": "Node",
"baseUrl": ".",
"paths": {
"primevue/*": ["../../packages/primevue/src/*"]
"primevue/*": ["../../packages/primevue/src/*"],
"@primevue/metadata/*": ["../../packages/metadata/src/*"],
"@primevue/auto-import-resolver/*": ["../../packages/auto-import-resolver/src/*"]
}
},
"exclude": ["node_modules"]
Expand Down
Loading

0 comments on commit 4b3e712

Please sign in to comment.