Skip to content

Commit

Permalink
build: the v1.4.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Oct 23, 2022
1 parent aa2b624 commit f60fe66
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">
<a href="https://dom-to-code.netlify.app/">
<img src="./packages/doc/.vuepress/public/images/logo-bg.png" width="50%">
<img src="https://raw.githubusercontent.com/better-tcy/dom-to-code/master/packages/doc/.vuepress/public/images/logo-bg.png" width="50%">
</a>
<div align="center">

Expand Down Expand Up @@ -28,7 +28,7 @@

别人搜索你直接跳,别人加班你摸鱼。

<img src="./packages/doc/.vuepress/public/images/dom-to-code-example.gif">
<img src="https://raw.githubusercontent.com/better-tcy/dom-to-code/master/packages/doc/.vuepress/public/images/dom-to-code-example.gif">

## 📦 安装

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dom-to-code-monorepo",
"version": "1.4.0",
"version": "1.4.1",
"private": true,
"packageManager": "[email protected]",
"author": "better-tcy",
Expand Down
6 changes: 5 additions & 1 deletion packages/doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 1.3.0 (2022-10-23)
# 1.4.0 (2022-10-23)



# 1.4.0 (2022-10-23)


### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/doc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doc",
"version": "1.4.0",
"version": "1.4.1",
"private": true,
"description": "the libs docs website",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion packages/dom-to-code/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# 1.3.0 (2022-10-23)
# 1.4.0 (2022-10-23)



# 1.4.0 (2022-10-23)


### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/dom-to-code/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 7 additions & 1 deletion scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> = JSON.parse(readFileSync(pkgJson, 'utf8')) || {}
if (pkg.private)
return
Expand Down

0 comments on commit f60fe66

Please sign in to comment.