Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
9e31f279
Commit
9e31f279
authored
May 10, 2021
by
邓晓峰
Browse files
Options
Browse Files
Download
Plain Diff
fix: release lerna list
parents
ca4508bb
79f56822
Pipeline
#27301
failed with stages
in 15 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
CHANGELOG.md
packages/extend-components/EC_DeviceTree/CHANGELOG.md
+6
-0
package.json
packages/extend-components/EC_DeviceTree/package.json
+1
-1
release.js
scripts/release.js
+13
-2
No files found.
packages/extend-components/EC_DeviceTree/CHANGELOG.md
View file @
9e31f279
...
...
@@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file. See
[
Conventional Commits
](
https://conventionalcommits.org
)
for commit guidelines.
## [1.0.2](https://g.civnet.cn:8443/ReactWeb5/wisdom-components/compare/@wisdom-components/ec_devicetree@1.0.1...@wisdom-components/ec_devicetree@1.0.2) (2021-05-10)
### Bug Fixes
-
修改 mqtt 连接配置 (
[
d42cbc9
](
https://g.civnet.cn:8443/ReactWeb5/wisdom-components/commits/d42cbc9edcab56ed29ca1399f8f0ea714601964a
)
)
## 1.0.1 (2021-05-10)
### Bug Fixes
...
...
packages/extend-components/EC_DeviceTree/package.json
View file @
9e31f279
{
"name"
:
"@wisdom-components/ec_devicetree"
,
"version"
:
"1.0.
1
"
,
"version"
:
"1.0.
2
"
,
"description"
:
"> TODO: description"
,
"author"
:
"tuqian <webtuqian@163.com>"
,
"homepage"
:
""
,
...
...
scripts/release.js
View file @
9e31f279
const
{
utils
}
=
require
(
'umi'
);
const
{
join
}
=
require
(
'path'
);
const
{
join
,
relative
,
resolve
,
sep
}
=
require
(
'path'
);
const
exec
=
require
(
'./utils/exec'
);
const
getPackages
=
require
(
'./utils/getPackages'
);
const
isNextVersion
=
require
(
'./utils/isNextVersion'
);
...
...
@@ -24,6 +24,16 @@ function packageExists({ name, version }) {
}
async
function
release
()
{
let
pkgList
=
execa
.
sync
(
lernaCli
,
[
'list'
,
'--json'
]).
stdout
;
pkgList
=
JSON
.
parse
(
pkgList
);
const
locMap
=
{};
pkgList
.
forEach
((
item
)
=>
{
const
location
=
item
.
location
.
split
(
sep
);
locMap
[
location
[
location
.
length
-
1
]]
=
`
${
location
[
location
.
length
-
2
]}
/
${
location
[
location
.
length
-
1
]
}
`
;
});
console
.
log
(
locMap
);
// Check git status
if
(
!
args
.
skipGitStatusCheck
)
{
const
gitStatus
=
execa
.
sync
(
'git'
,
[
'status'
,
'--porcelain'
]).
stdout
;
...
...
@@ -121,7 +131,8 @@ async function release() {
// eslint-disable-next-line consistent-return
pkgs
.
forEach
((
pkg
,
index
)
=>
{
const
[
shortName
,
p
]
=
pkg
.
split
(
'!'
);
const
pkgMap
=
locMap
[
pkg
];
const
[
p
,
shortName
]
=
pkgMap
.
split
(
'/'
);
const
pkgPath
=
join
(
cwd
,
'packages'
,
p
,
shortName
.
replace
(
'pro-'
,
''
));
// eslint-disable-next-line global-require,import/no-dynamic-require
const
{
name
,
version
}
=
require
(
join
(
pkgPath
,
'package.json'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment