Skip to content

Commit 9b8d65d

Browse files
authored
chore: move readme file to dist dir when build process (#6)
1 parent 98dd492 commit 9b8d65d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

build/gulp-file.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ const movePkgToRootDist = async() => {
2323
await fs.writeJson(`${distRoot}/package.json`, content, { spaces: 2 })
2424
}
2525

26-
// ⭐TODO: 移动 readme 到 dist
27-
/* const moveReadMeToRootDist = async() => {
26+
const moveReadMeToRootDist = async() => {
2827
await fs.copy(`${path.resolve('../README.md')}`, `${distRoot}/README.md`)
2928
await fs.copy(`${path.resolve('../README.ZH-CN.md')}`, `${distRoot}/README.ZH-CN.md`)
30-
} */
29+
}
3130

3231
export default series(
3332
...parallelTask(),
@@ -41,11 +40,10 @@ export default series(
4140
const res = await movePkgToRootDist()
4241
return res
4342
},
44-
// ⭐TODO: 移动 readme 到 dist
45-
/* async() => {
43+
async() => {
4644
const res = await moveReadMeToRootDist()
4745
return res
48-
}, */
46+
},
4947
// 删build目录下dist
5048
async() => {
5149
const res = await run('pnpm run --filter @unplugin-vue-cssvars/build clean')

0 commit comments

Comments
 (0)