diff --git a/example/docs/zh-CN/guide/changelog.md b/example/docs/zh-CN/guide/changelog.md index 335a8c5f..b2dd07fe 100644 --- a/example/docs/zh-CN/guide/changelog.md +++ b/example/docs/zh-CN/guide/changelog.md @@ -16,10 +16,11 @@
  • 0.3.8 2022-02-14

    diff --git a/script/build.less.ts b/script/build.less.ts index 7a1cae11..ffe368d4 100644 --- a/script/build.less.ts +++ b/script/build.less.ts @@ -5,19 +5,19 @@ var fs = require('fs'); var { resolve } = require('path'); +// @ts-ignore const inputDir = resolve(process.cwd(), './src/component') +// @ts-ignore const inputsArray = fs.readdirSync(inputDir).filter((name) => { const componentDir = resolve(inputDir, name) const isDir = fs.lstatSync(componentDir).isDirectory() return isDir && fs.readdirSync(componentDir).includes('index.ts') }) -// 读取基础变量 与 公共样式 var content = fs.readFileSync("./src/theme/variable.less").toString() + '\n\n'; content += fs.readFileSync("./src/theme/index.less").toString() + '\n\n'; -// 组件样式 inputsArray.forEach(function (f) { var path = "./src/component/" + f + "/index.less"; fs.exists(path, function (exists) { @@ -29,4 +29,4 @@ inputsArray.forEach(function (f) { fs.writeFileSync('./lib/index.less', content); } }); -}) +}) \ No newline at end of file