Skip to content

Commit

Permalink
fix: repository field may be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwcx committed Jun 13, 2024
1 parent 85f5e11 commit 7fb3c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suites/preset-vue/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default (api: IApi) => {
const vueConfig = userConfig?.vue;

const parserOptions: Partial<VueParserOptions> = {
directory: vueConfig?.directory ?? api.pkg.repository.directory,
directory: vueConfig?.directory ?? api.pkg.repository?.directory,
tsconfigPath: vueConfig?.tsconfigPath,
checkerOptions: vueConfig?.checkerOptions,
};
Expand Down

0 comments on commit 7fb3c62

Please sign in to comment.