Skip to content

Commit

Permalink
libnpmexec@2.0.0
Browse files Browse the repository at this point in the history
  * use new npxCache option
  • Loading branch information
wraithgar committed Jun 17, 2021
1 parent c99b8b5 commit c90612c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions node_modules/libnpmexec/lib/cache-install-dir.js

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

4 changes: 2 additions & 2 deletions node_modules/libnpmexec/lib/index.js

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

2 changes: 1 addition & 1 deletion node_modules/libnpmexec/package.json

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

14 changes: 7 additions & 7 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"leven": "^3.1.0",
"libnpmaccess": "^4.0.2",
"libnpmdiff": "^2.0.4",
"libnpmexec": "^1.2.0",
"libnpmexec": "^2.0.0",
"libnpmfund": "^1.1.0",
"libnpmhook": "^6.0.2",
"libnpmorg": "^2.0.2",
Expand Down
22 changes: 11 additions & 11 deletions test/lib/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ t.test('npm exec <noargs>, run interactive shell', t => {

t.test('npm exec foo, not present locally or in central loc', t => {
const path = t.testdir()
const installDir = resolve('cache-dir/_npx/f7fbba6e0636f890')
const installDir = resolve('npx-cache-dir/f7fbba6e0636f890')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -369,7 +369,7 @@ t.test('npm exec foo, not present locally or in central loc', t => {

t.test('npm exec foo, not present locally but in central loc', t => {
const path = t.testdir()
const installDir = resolve('cache-dir/_npx/f7fbba6e0636f890')
const installDir = resolve('npx-cache-dir/f7fbba6e0636f890')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -409,7 +409,7 @@ t.test('npm exec foo, not present locally but in central loc', t => {

t.test('npm exec foo, present locally but wrong version', t => {
const path = t.testdir()
const installDir = resolve('cache-dir/_npx/2badf4630f1cfaad')
const installDir = resolve('npx-cache-dir/2badf4630f1cfaad')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -605,7 +605,7 @@ t.test('run command with 2 packages, need install, verify sort', t => {
config.package = packages
const add = packages.map(p => `${p}@`).sort((a, b) => a.localeCompare(b, 'en'))
const path = t.testdir()
const installDir = resolve('cache-dir/_npx/07de77790e5f40f2')
const installDir = resolve('npx-cache-dir/07de77790e5f40f2')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -760,7 +760,7 @@ t.test('prompt when installs are needed if not already present and shell is a TT

const add = packages.map(p => `${p}@`).sort((a, b) => a.localeCompare(b, 'en'))
const path = t.testdir()
const installDir = resolve('cache-dir/_npx/07de77790e5f40f2')
const installDir = resolve('npx-cache-dir/07de77790e5f40f2')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -829,7 +829,7 @@ t.test('skip prompt when installs are needed if not already present and shell is

const add = packages.map(p => `${p}@`).sort((a, b) => a.localeCompare(b, 'en'))
const path = t.testdir()
const installDir = resolve('cache-dir/_npx/07de77790e5f40f2')
const installDir = resolve('npx-cache-dir/07de77790e5f40f2')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -896,7 +896,7 @@ t.test('skip prompt when installs are needed if not already present and shell is

const add = packages.map(p => `${p}@`).sort((a, b) => a.localeCompare(b, 'en'))
const path = t.testdir()
const installDir = resolve('cache-dir/_npx/f7fbba6e0636f890')
const installDir = resolve('npx-cache-dir/f7fbba6e0636f890')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -954,7 +954,7 @@ t.test('abort if prompt rejected', t => {
config.yes = undefined

const path = t.testdir()
const installDir = resolve('cache-dir/_npx/07de77790e5f40f2')
const installDir = resolve('npx-cache-dir/07de77790e5f40f2')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -1012,7 +1012,7 @@ t.test('abort if prompt false', t => {
config.yes = undefined

const path = t.testdir()
const installDir = resolve('cache-dir/_npx/07de77790e5f40f2')
const installDir = resolve('npx-cache-dir/07de77790e5f40f2')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -1069,7 +1069,7 @@ t.test('abort if -n provided', t => {
config.yes = false

const path = t.testdir()
const installDir = resolve('cache-dir/_npx/07de77790e5f40f2')
const installDir = resolve('npx-cache-dir/07de77790e5f40f2')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down Expand Up @@ -1107,7 +1107,7 @@ t.test('abort if -n provided', t => {

t.test('forward legacyPeerDeps opt', t => {
const path = t.testdir()
const installDir = resolve('cache-dir/_npx/f7fbba6e0636f890')
const installDir = resolve('npx-cache-dir/f7fbba6e0636f890')
npm.localPrefix = path
ARB_ACTUAL_TREE[path] = {
children: new Map(),
Expand Down

0 comments on commit c90612c

Please sign in to comment.