Skip to content

Commit e384ba3

Browse files
committed
fix(nuxt): remove declarationPath from component dirs
1 parent 92f6598 commit e384ba3

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/nuxt/src/components/scan.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ export async function scanComponents (dirs: ComponentsDir[], srcDir: string): Pr
121121
preload: Boolean(dir.preload),
122122
// specific to the file
123123
filePath,
124-
// Use declarationPath from directory config if available, otherwise default to filePath
125-
declarationPath: dir.declarationPath || filePath,
124+
declarationPath: filePath,
126125
pascalName,
127126
kebabName,
128127
chunkName,

packages/schema/src/types/components.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ export interface ScanDir {
7272
* This flag indicates, component should be loaded async (with a separate chunk) regardless of using Lazy prefix or not.
7373
*/
7474
isAsync?: boolean
75-
/**
76-
* Path to component's declaration file
77-
* Used for type generation when different from filePath
78-
*/
79-
declarationPath?: string
8075
extendComponent?: (component: Component) => Promise<Component | void> | (Component | void)
8176
/**
8277
* If enabled, registers components to be globally available.

0 commit comments

Comments
 (0)