Skip to content

Commit

Permalink
fix(deps): Explicit npm-package-arg ^6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Feb 4, 2019
1 parent a83c487 commit 4b20791
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 13 deletions.
2 changes: 1 addition & 1 deletion commands/add/index.js
@@ -1,7 +1,7 @@
"use strict";

const dedent = require("dedent");
const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const pMap = require("p-map");
const path = require("path");
const getManifest = require("libnpm/manifest");
Expand Down
2 changes: 1 addition & 1 deletion commands/add/lib/get-range-to-reference.js
@@ -1,6 +1,6 @@
"use strict";

const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const path = require("path");
const semver = require("semver");

Expand Down
1 change: 1 addition & 0 deletions commands/add/package.json
Expand Up @@ -39,6 +39,7 @@
"@lerna/validation-error": "file:../../core/validation-error",
"dedent": "^0.7.0",
"libnpm": "^2.0.1",
"npm-package-arg": "^6.1.0",
"p-map": "^1.2.0",
"semver": "^5.5.0"
}
Expand Down
2 changes: 1 addition & 1 deletion commands/bootstrap/index.js
Expand Up @@ -2,7 +2,7 @@

const dedent = require("dedent");
const getPort = require("get-port");
const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const path = require("path");
const pFinally = require("p-finally");
const pMap = require("p-map");
Expand Down
1 change: 1 addition & 0 deletions commands/bootstrap/package.json
Expand Up @@ -52,6 +52,7 @@
"get-port": "^3.2.0",
"libnpm": "^2.0.1",
"multimatch": "^2.1.0",
"npm-package-arg": "^6.1.0",
"p-finally": "^1.0.0",
"p-map": "^1.2.0",
"p-map-series": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions commands/create/index.js
Expand Up @@ -8,7 +8,7 @@ const camelCase = require("camelcase");
const dedent = require("dedent");
const initPackageJson = require("pify")(require("init-package-json"));
const getManifest = require("libnpm/manifest");
const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const pReduce = require("p-reduce");
const slash = require("slash");

Expand Down Expand Up @@ -50,7 +50,7 @@ class CreateCommand extends Command {
yes,
} = this.options;

// libnpm/parse-arg handles all the edge-cases with scopes
// npm-package-arg handles all the edge-cases with scopes
const { name, scope } = npa(pkgName);

// optional scope is _not_ included in the directory name
Expand Down
2 changes: 1 addition & 1 deletion commands/create/lib/lerna-module-data.js
Expand Up @@ -28,7 +28,7 @@ We exploit this fact to avoid eslint breaking on the reserved word.

const validateLicense = require("validate-npm-package-license");
const validateName = require("validate-npm-package-name");
const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const semver = require("semver");

const niceName = rudeName =>
Expand Down
1 change: 1 addition & 0 deletions commands/create/package.json
Expand Up @@ -42,6 +42,7 @@
"globby": "^8.0.1",
"init-package-json": "^1.10.3",
"libnpm": "^2.0.1",
"npm-package-arg": "^6.1.0",
"p-reduce": "^1.0.0",
"pify": "^3.0.0",
"semver": "^5.5.0",
Expand Down
2 changes: 1 addition & 1 deletion commands/publish/lib/get-current-tags.js
@@ -1,7 +1,7 @@
"use strict";

const log = require("libnpm/log");
const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const childProcess = require("@lerna/child-process");

module.exports = getCurrentTags;
Expand Down
1 change: 1 addition & 0 deletions commands/publish/package.json
Expand Up @@ -54,6 +54,7 @@
"figgy-pudding": "^3.5.1",
"fs-extra": "^7.0.0",
"libnpm": "^2.0.1",
"npm-package-arg": "^6.1.0",
"npm-registry-fetch": "^3.9.0",
"p-finally": "^1.0.0",
"p-map": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion core/conventional-commits/lib/get-changelog-config.js
@@ -1,7 +1,7 @@
"use strict";

const log = require("libnpm/log");
const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const pify = require("pify");
const ValidationError = require("@lerna/validation-error");

Expand Down
1 change: 1 addition & 0 deletions core/conventional-commits/package.json
Expand Up @@ -38,6 +38,7 @@
"fs-extra": "^7.0.0",
"get-stream": "^4.0.0",
"libnpm": "^2.0.1",
"npm-package-arg": "^6.1.0",
"pify": "^3.0.0",
"semver": "^5.5.0"
}
Expand Down
2 changes: 1 addition & 1 deletion core/package-graph/index.js
@@ -1,6 +1,6 @@
"use strict";

const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const semver = require("semver");
const ValidationError = require("@lerna/validation-error");

Expand Down
1 change: 1 addition & 0 deletions core/package-graph/package.json
Expand Up @@ -32,6 +32,7 @@
"dependencies": {
"@lerna/validation-error": "file:../validation-error",
"libnpm": "^2.0.1",
"npm-package-arg": "^6.1.0",
"semver": "^5.5.0"
}
}
2 changes: 1 addition & 1 deletion core/package/index.js
@@ -1,6 +1,6 @@
"use strict";

const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const path = require("path");
const loadJsonFile = require("load-json-file");
const writePkg = require("write-pkg");
Expand Down
1 change: 1 addition & 0 deletions core/package/package.json
Expand Up @@ -32,6 +32,7 @@
"dependencies": {
"libnpm": "^2.0.1",
"load-json-file": "^4.0.0",
"npm-package-arg": "^6.1.0",
"write-pkg": "^3.1.0"
}
}
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion utils/npm-dist-tag/npm-dist-tag.js
@@ -1,7 +1,7 @@
"use strict";

const log = require("libnpm/log");
const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const fetch = require("npm-registry-fetch");
const figgyPudding = require("figgy-pudding");

Expand Down
1 change: 1 addition & 0 deletions utils/npm-dist-tag/package.json
Expand Up @@ -33,6 +33,7 @@
"dependencies": {
"figgy-pudding": "^3.5.1",
"libnpm": "^2.0.1",
"npm-package-arg": "^6.1.0",
"npm-registry-fetch": "^3.9.0"
}
}
4 changes: 2 additions & 2 deletions utils/npm-install/npm-install.js
Expand Up @@ -2,7 +2,7 @@

const fs = require("fs-extra");
const log = require("libnpm/log");
const npa = require("libnpm/parse-arg");
const npa = require("npm-package-arg");
const onExit = require("signal-exit");
const writePkg = require("write-pkg");

Expand Down Expand Up @@ -98,7 +98,7 @@ function npmInstallDependencies(pkg, dependencies, config) {
function transformManifest(pkg, dependencies) {
const json = pkg.toJSON();

// a map of depName => depVersion (resolved by libnpm/parse-arg)
// a map of depName => depVersion (resolved by npm-package-arg)
const depMap = new Map(
dependencies.map(dep => {
const { name, rawSpec } = npa(dep, pkg.location);
Expand Down
1 change: 1 addition & 0 deletions utils/npm-install/package.json
Expand Up @@ -34,6 +34,7 @@
"@lerna/get-npm-exec-opts": "file:../get-npm-exec-opts",
"fs-extra": "^7.0.0",
"libnpm": "^2.0.1",
"npm-package-arg": "^6.1.0",
"signal-exit": "^3.0.2",
"write-pkg": "^3.1.0"
}
Expand Down

0 comments on commit 4b20791

Please sign in to comment.