UNPKG

mfdoc

Version:

Auto generate JS SDK and HTTP API documentation

20 lines 916 B
import { copy } from 'fs-extra'; import path from 'path'; async function copyBuildArtifacts(params) { const { srcPath, outputPath } = params; await copy(srcPath, outputPath, { filter: (src, dest) => { if (src.includes('node_modules')) { return false; } return true; }, }); } const templateSrcPath = path.join(import.meta.dirname, '..', 'templates'); const templatesOutputPath = path.join(import.meta.dirname, '..', 'build', 'templates'); const tsconfigSrcPath = path.join(import.meta.dirname, '..', 'tsconfig.tsx.json'); const tsconfigOutputPath = path.join(import.meta.dirname, '..', 'build', 'other', 'tsconfig.tsx.json'); copyBuildArtifacts({ srcPath: templateSrcPath, outputPath: templatesOutputPath }); copyBuildArtifacts({ srcPath: tsconfigSrcPath, outputPath: tsconfigOutputPath }); //# sourceMappingURL=copyBuildArtifacts.js.map