diff --git a/CHANGELOG.md b/CHANGELOG.md index 211da0d..de98f0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lerna.json b/lerna.json index de52c81..9461f83 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "packages/*" ], - "version": "1.1.6", + "version": "1.1.7", "npmClient": "npm", "changelog": { "repo": "svrxjs/svrx", diff --git a/packages/svrx-util/lib/package-manager/package-manager.js b/packages/svrx-util/lib/package-manager/package-manager.js index b717cfd..8844288 100644 --- a/packages/svrx-util/lib/package-manager/package-manager.js +++ b/packages/svrx-util/lib/package-manager/package-manager.js @@ -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); @@ -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' } diff --git a/packages/svrx-util/package.json b/packages/svrx-util/package.json index 36b9081..c4aad31 100644 --- a/packages/svrx-util/package.json +++ b/packages/svrx-util/package.json @@ -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", diff --git a/packages/svrx/package.json b/packages/svrx/package.json index 264f888..a593abc 100644 --- a/packages/svrx/package.json +++ b/packages/svrx/package.json @@ -1,6 +1,6 @@ { "name": "@svrx/svrx", - "version": "1.1.6", + "version": "1.1.7", "description": "svrx server live-reload mock ", "keywords": [ "svrx",