libnpmexec 4.0.0 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/libnpmexec.svg)](https://npm.im/libnpmexec)
4
4
  [![license](https://img.shields.io/npm/l/libnpmexec.svg)](https://npm.im/libnpmexec)
5
- [![GitHub Actions](https://github.com/npm/libnpmexec/workflows/node-ci/badge.svg)](https://github.com/npm/libnpmexec/actions?query=workflow%3Anode-ci)
6
- [![Coverage Status](https://coveralls.io/repos/github/npm/libnpmexec/badge.svg?branch=main)](https://coveralls.io/github/npm/libnpmexec?branch=main)
5
+ [![CI - libnpmexec](https://github.com/npm/cli/actions/workflows/ci-libnpmexec.yml/badge.svg)](https://github.com/npm/cli/actions/workflows/ci-libnpmexec.yml)
7
6
 
8
7
  The `npm exec` (`npx`) Programmatic API
9
8
 
@@ -4,7 +4,7 @@ const stat = promisify(require('fs').stat)
4
4
  const walkUp = require('walk-up-path')
5
5
 
6
6
  const fileExists = (file) => stat(file)
7
- .then((stat) => stat.isFile())
7
+ .then((res) => res.isFile())
8
8
  .catch(() => false)
9
9
 
10
10
  const localFileExists = async (dir, binName, root = '/') => {
package/lib/index.js CHANGED
@@ -119,11 +119,11 @@ const exec = async (opts) => {
119
119
  ...flatOptions,
120
120
  path,
121
121
  })
122
- const tree = await localArb.loadActual()
122
+ const localTree = await localArb.loadActual()
123
123
 
124
124
  // do we have all the packages in manifest list?
125
125
  const needInstall =
126
- manis.some(manifest => manifestMissing({ tree, manifest }))
126
+ manis.some(manifest => manifestMissing({ tree: localTree, manifest }))
127
127
 
128
128
  if (needInstall) {
129
129
  const { npxCache } = flatOptions
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "libnpmexec",
3
- "version": "4.0.0",
3
+ "version": "4.0.3",
4
4
  "files": [
5
- "bin",
6
- "lib"
5
+ "bin/",
6
+ "lib/"
7
7
  ],
8
8
  "main": "lib/index.js",
9
9
  "engines": {
10
- "node": "^12.13.0 || ^14.15.0 || >=16"
10
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
11
11
  },
12
12
  "description": "npm exec (npx) programmatic API",
13
- "repository": "https://github.com/npm/libnpmexec",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/npm/cli.git",
16
+ "directory": "workspaces/libnpmexec"
17
+ },
14
18
  "keywords": [
15
19
  "npm",
16
20
  "npmcli",
@@ -29,15 +33,16 @@
29
33
  ],
30
34
  "license": "ISC",
31
35
  "scripts": {
32
- "lint": "eslint '**/*.js'",
36
+ "lint": "eslint \"**/*.js\"",
33
37
  "posttest": "npm run lint",
34
38
  "test": "tap",
35
39
  "snap": "tap",
36
40
  "preversion": "npm test",
37
41
  "postversion": "npm publish",
38
42
  "prepublishOnly": "git push origin --follow-tags",
39
- "postlint": "npm-template-check",
40
- "lintfix": "npm run lint -- --fix"
43
+ "postlint": "template-oss-check",
44
+ "lintfix": "npm run lint -- --fix",
45
+ "template-oss-apply": "template-oss-apply --force"
41
46
  },
42
47
  "tap": {
43
48
  "color": true,
@@ -45,9 +50,10 @@
45
50
  "files": "test/*.js"
46
51
  },
47
52
  "devDependencies": {
48
- "@npmcli/template-oss": "^2.4.2",
53
+ "@npmcli/eslint-config": "^3.0.1",
54
+ "@npmcli/template-oss": "3.3.2",
49
55
  "bin-links": "^3.0.0",
50
- "tap": "^15.0.6"
56
+ "tap": "^16.0.1"
51
57
  },
52
58
  "dependencies": {
53
59
  "@npmcli/arborist": "^5.0.0",
@@ -55,15 +61,16 @@
55
61
  "@npmcli/run-script": "^3.0.0",
56
62
  "chalk": "^4.1.0",
57
63
  "mkdirp-infer-owner": "^2.0.0",
58
- "npm-package-arg": "^9.0.0",
64
+ "npm-package-arg": "^9.0.1",
59
65
  "npmlog": "^6.0.1",
60
- "pacote": "^13.0.2",
66
+ "pacote": "^13.0.5",
61
67
  "proc-log": "^2.0.0",
62
68
  "read": "^1.0.7",
63
69
  "read-package-json-fast": "^2.0.2",
64
70
  "walk-up-path": "^1.0.0"
65
71
  },
66
72
  "templateOSS": {
67
- "version": "2.4.3"
73
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
74
+ "version": "3.3.2"
68
75
  }
69
76
  }