@@ -28,7 +28,7 @@
别人搜索你直接跳,别人加班你摸鱼。
-
+
## 📦 安装
diff --git a/package.json b/package.json
index d26b60d..f074a00 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "dom-to-code-monorepo",
- "version": "1.4.0",
+ "version": "1.4.1",
"private": true,
"packageManager": "pnpm@7.0.0",
"author": "better-tcy",
diff --git a/packages/doc/CHANGELOG.md b/packages/doc/CHANGELOG.md
index 52e63d0..dc3e69d 100644
--- a/packages/doc/CHANGELOG.md
+++ b/packages/doc/CHANGELOG.md
@@ -1,4 +1,8 @@
-# 1.3.0 (2022-10-23)
+# 1.4.0 (2022-10-23)
+
+
+
+# 1.4.0 (2022-10-23)
### Bug Fixes
diff --git a/packages/doc/package.json b/packages/doc/package.json
index b12cfda..0b69e67 100644
--- a/packages/doc/package.json
+++ b/packages/doc/package.json
@@ -1,6 +1,6 @@
{
"name": "doc",
- "version": "1.4.0",
+ "version": "1.4.1",
"private": true,
"description": "the libs docs website",
"scripts": {
diff --git a/packages/dom-to-code/CHANGELOG.md b/packages/dom-to-code/CHANGELOG.md
index 52e63d0..dc3e69d 100644
--- a/packages/dom-to-code/CHANGELOG.md
+++ b/packages/dom-to-code/CHANGELOG.md
@@ -1,4 +1,8 @@
-# 1.3.0 (2022-10-23)
+# 1.4.0 (2022-10-23)
+
+
+
+# 1.4.0 (2022-10-23)
### Bug Fixes
diff --git a/packages/dom-to-code/package.json b/packages/dom-to-code/package.json
index 44727b7..3103d92 100644
--- a/packages/dom-to-code/package.json
+++ b/packages/dom-to-code/package.json
@@ -1,6 +1,6 @@
{
"name": "dom-to-code",
- "version": "1.4.0",
+ "version": "1.4.1",
"description": "navigate to the code through the dom",
"keywords": [
"dom",
diff --git a/scripts/utils.ts b/scripts/utils.ts
index 014bc11..e48e7a7 100644
--- a/scripts/utils.ts
+++ b/scripts/utils.ts
@@ -6,18 +6,24 @@ import globby from 'globby'
export const pathResolve = (..._path: string[]) => path.resolve(__dirname, ..._path)
export const pathResolveUnix = (..._path: string[]) => pathResolve(..._path).replace(/\\/g, '/')
+export const rootPath = pathResolve('../')
export const packagesGlobPaths = pathResolveUnix('../packages/*/')
export const packagesPaths = globby.sync(packagesGlobPaths, { onlyFiles: false, onlyDirectories: true })
-export const rootLicense = pathResolve('../', 'LICENSE')
+export const rootLicense = pathResolve(rootPath, 'LICENSE')
export function copyFiles() {
packagesPaths.map((packagePath) => {
const pkgJson = pathResolve(packagePath, 'package.json')
+ const rootReadme = pathResolve(rootPath, 'README.md')
+ const pkgReadme = pathResolve(packagePath, 'README.md')
const license = pathResolve(packagePath, 'LICENSE')
if (!existsSync(pkgJson))
return
+ if (!existsSync(pkgReadme))
+ copyFileSync(rootReadme, pkgReadme)
+
const pkg: Record
= JSON.parse(readFileSync(pkgJson, 'utf8')) || {}
if (pkg.private)
return