Skip to content

Commit 7520be8

Browse files
committed
Fixed the yarn 2+ config where on some cases the npm auth token copy from the .npmrc gave error.
1 parent 59fd5f0 commit 7520be8

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Mobiscroll CLI changelog
22

3+
v 1.7.2 - 17 Jun 2022
4+
5+
* Fixed: We fixed the yarn 2+ config where on some cases the npm auth token copy from the .npmrc gave error.
6+
37
v 1.7.1 - 11 May 2022
48

59
* Fixed: We fixed the `--proxy` parameter to pass it down to the `npm` and `yarn` calls, so the config command runs, even if proxy options are not set in the npm/yarn config, or in the system environment variables.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mobiscroll/cli",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "Mobiscroll command line configuration tool",
55
"homepage": "https://mobiscroll.com/",
66
"license": "Apache-2.0",

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ module.exports = {
475475
data = {};
476476
if (fs.existsSync(npmrcPath)) {
477477
const npmrcData = fs.readFileSync(npmrcPath, 'utf8').toString();
478-
const tokenRow = npmrcData.match(/\/\/npm.mobiscroll.com\/:_authToken=(.*)=$/mi);
478+
const tokenRow = npmrcData.match(/\/\/npm.mobiscroll.com\/:_authToken=(.*)/mi);
479479

480480
if (tokenRow.length > 1) {
481481
AUTH_TOKEN = tokenRow[1];

0 commit comments

Comments
 (0)