Skip to content

Commit

Permalink
fix(util): fix install error on Windows (#204)
Browse files Browse the repository at this point in the history
* fix(util): fix install error on Windows

* chore(release): publish v1.1.7

* docs: add changelog for 1.1.7
  • Loading branch information
xuchaoying authored Apr 22, 2021
1 parent a150ebe commit 7abfdc3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v1.1.7 (2021-04-22)

#### :bug: Bug Fix
* `svrx-util`
* Fix package install error on Windows ([@xuchaoying](https://github.com/xuchaoying))

## v1.1.6 (2021-03-25)

#### :bug: Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "1.1.6",
"version": "1.1.7",
"npmClient": "npm",
"changelog": {
"repo": "svrxjs/svrx",
Expand Down
4 changes: 2 additions & 2 deletions packages/svrx-util/lib/package-manager/package-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class PackageManager {
npm install --prefix=${libPath.resolve(tmpPath)} ${packageName}@${version || 'latest'} -g ${registryCmd}
`;

const { stderr } = await exec(cmd);
const { stderr } = await exec(cmd.trim());

if (stderr && stderr.indexOf('WARN') === -1) {
throw new Error(stderr);
Expand Down Expand Up @@ -218,7 +218,7 @@ class PackageManager {
const registryCmd = registry ? `--registry=${registry}` : '';
const cmd = `npm view ${packageName}@* engines ${registryCmd}`;

const { stdout, stderr } = await exec(cmd);
const { stdout, stderr } = await exec(cmd.trim());
// eg: svrx-plugin-demo@1.0.3 { svrx: '^0.0.3' }
// eg: @svrx/svrx@1.0.0 { node: '>=8.9.0' }

Expand Down
2 changes: 1 addition & 1 deletion packages/svrx-util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@svrx/util",
"version": "1.1.6",
"version": "1.1.7",
"description": "util package of svrx",
"homepage": "https://svrx.io/",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/svrx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@svrx/svrx",
"version": "1.1.6",
"version": "1.1.7",
"description": "svrx server live-reload mock ",
"keywords": [
"svrx",
Expand Down

0 comments on commit 7abfdc3

Please sign in to comment.