Skip to content

Commit

Permalink
Reorder file paths and update names for consistency in migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Feb 19, 2025
1 parent bd97e41 commit a126c24
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ export default async function (options: MigrateOptions) {
name: 'package.json',
paths: await fg('package.json', { cwd })
};
const appCss = {
name: 'app.css',
paths: await fg('src/app.css', { cwd })
};
const appHtml = {
name: 'app.html',
name: 'src/app.html',
paths: await fg('src/app.html', { cwd })
};
const appCss = {
name: 'src/app.css',
paths: await fg('src/app.css', { cwd })
};

// Validate file existence
for (const file of [packageJson, appCss, appHtml]) {
for (const file of [packageJson, appHtml, appCss]) {
if (file.paths.length === 0) {
cli.error(`"${file.name}" not found in directory "${cwd}".`);
}
Expand Down

0 comments on commit a126c24

Please sign in to comment.