[ci] yarn format

This commit is contained in:
FredKSchott 2021-09-16 20:07:52 +00:00 committed by GitHub Actions
parent 291f2ef537
commit d895d3c079

View file

@ -18,8 +18,7 @@ function formatURL(filepath) {
// declaring routes individually helps us run many quick tests rather than one giant slow test // declaring routes individually helps us run many quick tests rather than one giant slow test
const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '../../../docs/src/pages'); const root = path.join(path.dirname(fileURLToPath(import.meta.url)), '../../../docs/src/pages');
let pages = glob('**/*.{astro,md}', { cwd: root, onlyFiles: true }) let pages = glob('**/*.{astro,md}', { cwd: root, onlyFiles: true }).map(formatURL);
.map(formatURL);
SnowpackDev('Pages successfully scanned', () => { SnowpackDev('Pages successfully scanned', () => {
assert.ok(pages.length > 0); assert.ok(pages.length > 0);
@ -36,8 +35,7 @@ for (const pathname of pages) {
}); });
} }
// Skipped on Node <v14 // Skipped on Node <v14
if (process.env.NODE_VERSION > '14') { if (process.env.NODE_VERSION > '14') {
SnowpackDev.run(); SnowpackDev.run();
} }