diff --git a/packages/website/lib/gen-src-md.ts b/packages/website/lib/gen-src-md.ts index 6209ce5..4d036e0 100644 --- a/packages/website/lib/gen-src-md.ts +++ b/packages/website/lib/gen-src-md.ts @@ -1,5 +1,5 @@ -import path from 'path' import fs from 'fs' +import path from 'path' import hljs from 'highlight.js' import dirtyJson from 'dirty-json' import { parser } from '@mpxjs/vuese-parser' diff --git a/packages/website/lib/get-files-list.ts b/packages/website/lib/get-files-list.ts index 0159179..baddd9a 100644 --- a/packages/website/lib/get-files-list.ts +++ b/packages/website/lib/get-files-list.ts @@ -1,5 +1,5 @@ -import path from 'path' import fs from 'fs' +import path from 'path' function listMpxFiles(dir: string, fileName = '') { let results: Record<'fullPath' | 'fileName', string>[] = [] diff --git a/packages/website/lib/index.ts b/packages/website/lib/index.ts index 4d9f67c..c8469cb 100644 --- a/packages/website/lib/index.ts +++ b/packages/website/lib/index.ts @@ -1,5 +1,5 @@ -import path from 'path' import fs from 'fs' +import path from 'path' import { spawn } from 'child_process' import { genSrcMd } from './gen-src-md' import { genExampleMd } from './gen-example-md'