Skip to content

Commit

Permalink
chore(ext-api): pages
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Jan 15, 2025
1 parent 07ac424 commit b623745
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/ext-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,15 @@ export function syncPagesFile() {
if (fs.existsSync(pagesDir)) {
fs.readdirSync(pagesDir).forEach((page) => {
if (fs.existsSync(path.resolve(pagesDir, page, page + '.uvue'))) {
const utssdkDir = path.resolve(apiDir, module, 'utssdk')
if (
!(
fs.existsSync(path.resolve(utssdkDir, 'index.uts')) ||
fs.existsSync(path.resolve(utssdkDir, 'web', 'index.uts'))
)
) {
return
}
importCodes.push(
`import Uni${capitalize(
page
Expand Down

0 comments on commit b623745

Please sign in to comment.