forked from Rosetta/landing
Новый лендинг
This commit is contained in:
@@ -5,7 +5,7 @@ import { isMap, isSeq, parseDocument, stringify } from 'yaml';
|
||||
|
||||
const projectRoot = resolve(fileURLToPath(new URL('..', import.meta.url)));
|
||||
const sourceDirectory = resolve(
|
||||
process.env.ROSETTA_PROTO_DIR || resolve(projectRoot, '../rcc/proto'),
|
||||
process.env.ROSETTA_PROTO_DIR || resolve(projectRoot, 'proto'),
|
||||
);
|
||||
const outputPath = resolve(projectRoot, 'src/generated/protoDocs.ts');
|
||||
|
||||
@@ -139,7 +139,7 @@ async function readLayer(path) {
|
||||
let sourceFiles = [];
|
||||
try {
|
||||
sourceFiles = (await readdir(sourceDirectory))
|
||||
.filter((file) => /\.ya?ml$/i.test(file))
|
||||
.filter((file) => /^layer\..+\.ya?ml$/i.test(file))
|
||||
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }))
|
||||
.map((file) => resolve(sourceDirectory, file));
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user