Skip to content

Commit 4afe55e

Browse files
committed
feat: version 1.0.2
1 parent 105c841 commit 4afe55e

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

CHANGELOG.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# CHANGELOG
2+
## 1.0.2 release
3+
### Features
4+
- add i18n docs
5+
6+
## 1.0.1 release
7+
### Features
8+
- add `author` info and `repository` in package.json
9+
210
## 1.0.0 release
311
### Features
412
- cli: lk/lf/lc 脚本实现 检测/查找/创建 功能,强而有力地支持了题目的便捷创建.
513
- template project: easy mode 实现交互性创建,leet-create和leet-check保持src目录下创建题解.
614
- plugin: 插件化的设计完善,进行立项.
715

8-
## 1.0.1 release
9-
### Features
10-
- add `author` info and `repository` in package.json
16+
1117

esbuild.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import esbuild from "esbuild";
22
import path from "path";
3-
import fs from "fs";
3+
import fs, {mkdirSync} from "fs";
44
import {rootPath} from "#common/utils/file/getRootPath.js";
55
// 读取 package.json 文件内容
66
const packageJson = JSON.parse(fs.readFileSync(path.resolve(rootPath, 'package.json'), 'utf-8'));
@@ -42,6 +42,12 @@ await esbuild.build({
4242
}).then(() => {
4343
// 构建完成后执行的操作
4444
// 复制文件
45+
const docs = fs.readdirSync(path.resolve(rootPath, 'docs'))
46+
// 创建docs
47+
mkdirSync(path.resolve(rootPath, 'pl-cli/docs'), { recursive: true });
48+
docs.forEach(doc=>{
49+
fs.copyFileSync(path.resolve(rootPath, "docs",doc),path.resolve(rootPath, 'pl-cli/docs/',doc))
50+
})
4551
fs.copyFileSync(path.resolve(rootPath, 'README.md'), path.resolve(rootPath, 'pl-cli/README.md'));
4652
fs.copyFileSync(path.resolve(rootPath, 'LICENSE'), path.resolve(rootPath, 'pl-cli/LICENSE'));
4753
const newPackageJson = Object.assign(packageJson, {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leetcode-practice",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "A powerful practice platform for leetcode.Using any way you want to create questions.",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)