Skip to content

Commit

Permalink
feat: new build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed Oct 30, 2024
1 parent b30172f commit ba46610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/tocs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {dirname, extname, join, normalize, parse, relative, resolve, sep} from 'path';
import {dump, load} from 'js-yaml';
import shell from 'shelljs';
import walkSync from 'walk-sync';
import liquid from '@diplodoc/transform/lib/liquid';
import log from '@diplodoc/transform/lib/log';
import {FsContext} from '@diplodoc/transform/lib/typings';
Expand All @@ -9,7 +10,7 @@ import {bold} from 'chalk';
import {ArgvService, PresetService} from './index';
import {YfmToc} from '../models';
import {IncludeMode, Stage} from '../constants';
import {isExternalHref, logger, walk} from '../utils';
import {isExternalHref, logger} from '../utils';
import {filterFiles, firstFilterItem, firstFilterTextItems, liquidField} from './utils';
import {IncludersError, applyIncluders} from './includers';
import {addSourcePath} from './metadata';
Expand Down Expand Up @@ -264,8 +265,7 @@ async function _copyTocDir(tocPath: string, destDir: string) {
const {input: inputFolderPath} = ArgvService.getConfig();

const {dir: tocDir} = parse(tocPath);
const files: string[] = walk({
folder: tocDir,
const files: string[] = walkSync(tocDir, {
globs: ['**/*.*'],
ignore: ['**/toc.yaml'],
directories: false,
Expand Down

0 comments on commit ba46610

Please sign in to comment.