Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: npm/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: libnpmdiff-v5.0.1
Choose a base ref
...
head repository: npm/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: libnpmdiff-v5.0.2
Choose a head ref

Commits on Nov 1, 2022

  1. docs: fixed some typos (#5763)

    fixed some typos
    bitdaw authored Nov 1, 2022
    Copy the full SHA
    ce6745c View commit details
  2. fix: use hosted-git-info to parse registry urls (#5758)

    Previously this was using `new URL` which would fail on some urls that
    `hosted-git-info` is able to parse. But if we still get a url that can't
    be parsed, we now set it to be removed from the tree instead of
    erroring.
    
    Fixes: #5278
    lukekarrys authored Nov 1, 2022
    Copy the full SHA
    0c5834e View commit details
  3. chore: rewrite scripts/ with javascript

    Goals of this rewrite:
    
    - Better portability of scripts to anywhere we can run `node` and no
      reliance on `make` or other tools
    - More code inside `scripts/` and less inside of CI workflows to allow
      for easier local testing
    - Reuse the same scripts for similar workflows (eg `publish` and
      `smoke-publish`)
    
    Future goals:
    
    - Allow testing of `scripts`
    
    Some highlights of the new scripts:
    
    `scripts/create-node-pr.js`
    
    - This now operates on cloned copy of the base repo that is pushed to
      our fork, so we no longer need to manually sync our fork.
    - Uses the published registry tarball for as much of the PR as possible,
      falling back to including local files from source. This will enable
      for easier migration to eventually only using the tarball contents.
    
    `scripts/publish.js`
    
    - Replaces `make publish`
    - Will publish all workspaces that need to be published, before
      publishing the CLI.
    - Makes running tests an optional part of the script, since CI now runs
      the tests.
    - Can optionally only pack the tarball, for use in CI to test installing
      the tarball.
    
    `scripts/util.js`
    
    - Shared utilities for spawning commands including helpers for `npm` and
      `gh`.
    - Common interface for running, parsing args, logging, and debugging
      of scripts.
    lukekarrys authored and wraithgar committed Nov 1, 2022
    Copy the full SHA
    9709ae6 View commit details
  4. chore: @npmcli/template-oss@4.7.1

    lukekarrys authored and wraithgar committed Nov 1, 2022
    Copy the full SHA
    2293fb2 View commit details
  5. chore: remove mdx from docs build

    We will be updating to mdx@2 soon which is esm only, but built in to
    Gatsby. Due to the new documentation build process here and in
    `npm/documentation`, there is much less need for us to verify all our
    docs here. Therefore, it is best to remove this dependency now to avoid
    needing to update it here at the same time as the docs site.
    lukekarrys authored and wraithgar committed Nov 1, 2022
    Copy the full SHA
    f361796 View commit details
  6. chore: licensee@9.0.0

    lukekarrys authored and wraithgar committed Nov 1, 2022
    Copy the full SHA
    edbbc3a View commit details
  7. chore: move doc deps to dev

    This moves all the dependencies of the `docs/` workspace to dev deps. I
    had originally moved them out of devDeps as part of #5309, but this
    seems to go against the grain of other tooling. We would have to special
    case both `audit` and `licensee` to run on a custom subset of our
    dependency tree.
    
    Maybe one day when all tools can be piped the output of an `npm query`
    this will be possible. It would be nice if we could only audit
    dependencies that are bundled as part of the CLI.
    
    But for now it's easier to move these to devDeps and then reinstall only
    the docs workspace after pruning during the publish step.
    lukekarrys authored and wraithgar committed Nov 1, 2022
    Copy the full SHA
    29a3009 View commit details
  8. chore: @npmcli/temlate-oss@4.8.0

    lukekarrys authored and wraithgar committed Nov 1, 2022
    Copy the full SHA
    c09abca View commit details
  9. Copy the full SHA
    6df246f View commit details
  10. Copy the full SHA
    706b3d3 View commit details
  11. chore: automatically remove ignored node_modules files

    Previously it would report the errors and require rerunning the script.
    It's been safe enough that we know automatically remove the files. We
    then run the `git ls-files` command again to make sure they were all
    removed. Only if any are left do we error with a message requiring a
    manual fix.
    lukekarrys authored and wraithgar committed Nov 1, 2022
    Copy the full SHA
    c0fcd27 View commit details
  12. chore: remove install.sh script

    The readme already points to the canonical url (https://www.npmjs.com/install.sh)
    which is sourced from https://github.com/npm/npm-install-script so this
    file does not need to live in this repo anymore.
    lukekarrys authored and wraithgar committed Nov 1, 2022
    Copy the full SHA
    a90ed81 View commit details

Commits on Nov 2, 2022

  1. Copy the full SHA
    c88c53b View commit details
  2. deps: remove opener, @npmcli/promise-spawn@6.0.1, @npmcli/run-script@…

    …5.1.1, @npmcli/git@4.0.3, pacote@15.0.5, which@3.0.0
    nlf authored and wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    ac25863 View commit details
  3. 1
    Copy the full SHA
    41843ad View commit details
  4. 1
    Copy the full SHA
    8fd614a View commit details
  5. deps: pacote@15.0.6

    lukekarrys authored and wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    205e2fd View commit details
  6. deps: @npmcli/run-script@6.0.0

    lukekarrys authored and wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    abfb28b View commit details
  7. fix: don't set stdioString for any spawn/run-script calls

    These libraries now return strings by default which is what we always
    want in the CLI for error reporting.
    
    Fixes #5766
    lukekarrys authored and wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    1f5382d View commit details
  8. deps: node-gyp@9.3.0

    wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    2fef570 View commit details
  9. deps: tar@6.1.12

    wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    5730d17 View commit details
  10. deps: nopt@7.0.0

    wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    66f9bcd View commit details
  11. deps: abbrev@2.0.0

    wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    024e612 View commit details
  12. 1
    Copy the full SHA
    9972ed1 View commit details
  13. 1
    Copy the full SHA
    6b6dfca View commit details
  14. deps: cli-table3@0.6.3

    wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    b89c19e View commit details
  15. chore: release 9.1.0

    github-actions[bot] authored and wraithgar committed Nov 2, 2022
    1
    Copy the full SHA
    b8292d8 View commit details
Showing with 10,909 additions and 4,206 deletions.
  1. +0 −6 .eslintrc.local.json
  2. +4 −2 .github/workflows/audit.yml
  3. +0 −38 .github/workflows/ci-libnpmaccess.yml
  4. +0 −38 .github/workflows/ci-libnpmdiff.yml
  5. +0 −38 .github/workflows/ci-libnpmexec.yml
  6. +0 −38 .github/workflows/ci-libnpmfund.yml
  7. +0 −38 .github/workflows/ci-libnpmhook.yml
  8. +0 −38 .github/workflows/ci-libnpmorg.yml
  9. +0 −38 .github/workflows/ci-libnpmpack.yml
  10. +0 −38 .github/workflows/ci-libnpmpublish.yml
  11. +0 −38 .github/workflows/ci-libnpmsearch.yml
  12. +0 −38 .github/workflows/ci-libnpmteam.yml
  13. +0 −38 .github/workflows/ci-libnpmversion.yml
  14. +0 −38 .github/workflows/ci-npmcli-arborist.yml
  15. +94 −0 .github/workflows/ci-npmcli-config.yml
  16. +0 −36 .github/workflows/ci-npmcli-docs.yml
  17. +20 −25 .github/workflows/ci-release.yml
  18. +0 −38 .github/workflows/ci-smoke-tests.yml
  19. +0 −38 .github/workflows/ci.yml
  20. +0 −96 .github/workflows/create-cli-deps-pr.yml
  21. +49 −0 .github/workflows/create-node-pr.yml
  22. +7 −6 .github/workflows/release.yml
  23. +1 −3 .gitignore
  24. +9 −8 .release-please-manifest.json
  25. +1 −0 AUTHORS
  26. +38 −0 CHANGELOG.md
  27. +12 −345 DEPENDENCIES.md
  28. +0 −37 Makefile
  29. +2 −0 bin/npx-cli.js
  30. +1 −4 docs/bin/build.js
  31. +1 −11 docs/lib/build.js
  32. +1 −1 docs/lib/content/using-npm/dependency-selectors.md
  33. +1 −1 docs/lib/content/using-npm/scope.md
  34. +9 −9 docs/package.json
  35. +14 −0 lib/arborist-cmd.js
  36. +0 −1 lib/commands/ci.js
  37. +0 −1 lib/commands/explore.js
  38. +0 −1 lib/commands/install.js
  39. +0 −1 lib/commands/run-script.js
  40. +15 −0 lib/npm.js
  41. +3 −3 lib/utils/config/definitions.js
  42. +2 −10 lib/utils/open-url-prompt.js
  43. +7 −11 lib/utils/open-url.js
  44. +2 −1 node_modules/.gitignore
  45. +4 −4 node_modules/@npmcli/ci-detect/package.json
  46. +1 −0 node_modules/@npmcli/config
  47. +5 −5 node_modules/@npmcli/git/package.json
  48. 0 node_modules/@npmcli/{run-script → promise-spawn}/lib/escape.js
  49. +144 −11 node_modules/@npmcli/promise-spawn/lib/index.js
  50. +7 −3 node_modules/@npmcli/promise-spawn/package.json
  51. +4 −47 node_modules/@npmcli/run-script/lib/make-spawn-args.js
  52. +1 −1 node_modules/@npmcli/run-script/lib/run-script-pkg.js
  53. +5 −5 node_modules/@npmcli/run-script/package.json
  54. +50 −0 node_modules/abbrev/lib/index.js
  55. +33 −11 node_modules/abbrev/package.json
  56. +1 −1 node_modules/cli-table3/package.json
  57. +5 −2 node_modules/cli-table3/src/cell.js
  58. +96 −0 node_modules/fastest-levenshtein/bench.js
  59. +4 −0 node_modules/fastest-levenshtein/esm/mod.d.ts
  60. +1 −0 node_modules/fastest-levenshtein/esm/mod.d.ts.map
  61. +138 −0 node_modules/fastest-levenshtein/esm/mod.js
  62. +0 −2 node_modules/fastest-levenshtein/index.d.ts
  63. +0 −147 node_modules/fastest-levenshtein/index.js
  64. +3 −0 node_modules/fastest-levenshtein/mod.d.ts
  65. +142 −0 node_modules/fastest-levenshtein/mod.js
  66. +26 −17 node_modules/fastest-levenshtein/package.json
  67. +52 −61 node_modules/fastest-levenshtein/test.js
  68. +67 −0 node_modules/fastest-levenshtein/test.ts
  69. +9 −2 node_modules/hosted-git-info/lib/index.js
  70. +2 −3 node_modules/hosted-git-info/lib/parse-url.js
  71. +0 −9 node_modules/hosted-git-info/lib/protocols.js
  72. +1 −1 node_modules/hosted-git-info/package.json
  73. +31 −12 node_modules/node-gyp/addon.gypi
  74. +24 −0 node_modules/node-gyp/gyp/pylib/gyp/__init__.py
  75. +10 −3 node_modules/node-gyp/gyp/pylib/gyp/common.py
  76. +1 −1 node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py
  77. +230 −31 node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
  78. +7 −4 node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py
  79. +4 −4 node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py
  80. +7 −14 node_modules/node-gyp/gyp/pylib/gyp/input.py
  81. +1 −1 node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py
  82. +41 −0 node_modules/node-gyp/gyp/pyproject.toml
  83. +0 −2 node_modules/node-gyp/gyp/requirements_dev.txt
  84. +0 −42 node_modules/node-gyp/gyp/setup.py
  85. +1 −0 node_modules/node-gyp/gyp/test_gyp.py
  86. +1 −1 node_modules/node-gyp/gyp/tools/pretty_gyp.py
  87. +2 −0 node_modules/node-gyp/lib/build.js
  88. +45 −4 node_modules/node-gyp/lib/configure.js
  89. +5 −0 node_modules/node-gyp/lib/find-visualstudio.js
  90. +46 −0 node_modules/node-gyp/node_modules/abbrev/LICENSE
  91. 0 node_modules/{ → node-gyp/node_modules}/abbrev/abbrev.js
  92. +21 −0 node_modules/node-gyp/node_modules/abbrev/package.json
  93. +41 −39 node_modules/node-gyp/node_modules/nopt/bin/nopt.js
  94. +222 −148 node_modules/node-gyp/node_modules/nopt/lib/nopt.js
  95. +27 −8 node_modules/node-gyp/node_modules/nopt/package.json
  96. +15 −0 node_modules/node-gyp/node_modules/which/LICENSE
  97. 0 node_modules/{ → node-gyp/node_modules}/which/bin/node-which
  98. +43 −0 node_modules/node-gyp/node_modules/which/package.json
  99. 0 node_modules/{ → node-gyp/node_modules}/which/which.js
  100. +2 −2 node_modules/node-gyp/package.json
  101. +1 −1 node_modules/node-gyp/test/test-find-node-directory.js
  102. +19 −1 node_modules/node-gyp/update-gyp.py
  103. +11 −10 node_modules/nopt/package.json
  104. +0 −47 node_modules/opener/LICENSE.txt
  105. +0 −10 node_modules/opener/bin/opener-bin.js
  106. +0 −66 node_modules/opener/lib/opener.js
  107. +0 −20 node_modules/opener/package.json
  108. +0 −1 node_modules/pacote/lib/dir.js
  109. +1 −1 node_modules/pacote/lib/util/npm.js
  110. +5 −5 node_modules/pacote/package.json
  111. +16 −9 node_modules/tar/lib/create.js
  112. +16 −10 node_modules/tar/lib/extract.js
  113. +50 −34 node_modules/tar/lib/header.js
  114. +22 −17 node_modules/tar/lib/large-numbers.js
  115. +20 −13 node_modules/tar/lib/list.js
  116. +40 −24 node_modules/tar/lib/mkdir.js
  117. +8 −4 node_modules/tar/lib/mode-fix.js
  118. +3 −2 node_modules/tar/lib/normalize-unicode.js
  119. +54 −31 node_modules/tar/lib/pack.js
  120. +74 −46 node_modules/tar/lib/parse.js
  121. +26 −18 node_modules/tar/lib/path-reservations.js
  122. +15 −8 node_modules/tar/lib/pax.js
  123. +14 −7 node_modules/tar/lib/read-entry.js
  124. +50 −27 node_modules/tar/lib/replace.js
  125. +1 −1 node_modules/tar/lib/strip-absolute-path.js
  126. +73 −44 node_modules/tar/lib/unpack.js
  127. +8 −4 node_modules/tar/lib/update.js
  128. +7 −4 node_modules/tar/lib/warn-mixin.js
  129. +44 −23 node_modules/tar/lib/write-entry.js
  130. +42 −26 node_modules/tar/package.json
  131. +52 −0 node_modules/which/bin/which.js
  132. +110 −0 node_modules/which/lib/index.js
  133. +26 −19 node_modules/which/package.json
  134. +1,291 −1,299 package-lock.json
  135. +31 −32 package.json
  136. +2 −1 release-please-config.json
  137. +34 −41 scripts/bundle-and-gitignore-deps.js
  138. +124 −0 scripts/create-node-pr.js
  139. +15 −31 scripts/dependency-graph.js
  140. +3 −17 scripts/git-dirty.js
  141. +0 −175 scripts/install.sh
  142. +0 −3 scripts/publish-tag.js
  143. +111 −0 scripts/publish.js
  144. +20 −0 scripts/rebuild.js
  145. +0 −43 scripts/release.sh
  146. +11 −0 scripts/remove-files.js
  147. +25 −0 scripts/resetdeps.js
  148. +0 −17 scripts/resetdeps.sh
  149. +0 −5 scripts/template-oss/_step-test.yml
  150. +0 −13 scripts/template-oss/audit.yml
  151. +6 −12 scripts/template-oss/ci-release.yml
  152. +28 −0 scripts/template-oss/create-node-pr.yml
  153. +6 −9 scripts/template-oss/root.js
  154. +26 −0 scripts/update-authors.js
  155. +0 −9 scripts/update-authors.sh
  156. +199 −0 scripts/util.js
  157. +3 −3 smoke-tests/package.json
  158. +1 −1 smoke-tests/test/index.js
  159. +1 −0 tap-snapshots/test/lib/commands/config.js.test.cjs
  160. +2 −2 tap-snapshots/test/lib/docs.js.test.cjs
  161. +0 −2 test/bin/windows-shims.js
  162. +2 −2 test/fixtures/sandbox.js
  163. +11 −1 test/index.js
  164. +12 −2 test/lib/arborist-cmd.js
  165. +23 −20 test/lib/commands/edit.js
  166. +6 −0 test/lib/commands/explain.js
  167. +6 −0 test/lib/commands/install-ci-test.js
  168. +6 −0 test/lib/commands/install-test.js
  169. +75 −0 test/lib/commands/install.js
  170. +1 −0 test/lib/commands/ls.js
  171. +7 −11 test/lib/commands/restart.js
  172. +0 −9 test/lib/commands/run-script.js
  173. +1 −0 test/lib/commands/set.js
  174. +7 −9 test/lib/commands/start.js
  175. +7 −8 test/lib/commands/stop.js
  176. +7 −8 test/lib/commands/test.js
  177. +8 −2 test/lib/utils/config/definitions.js
  178. +9 −4 test/lib/utils/open-url-prompt.js
  179. +9 −4 test/lib/utils/open-url.js
  180. +13 −0 workspaces/arborist/CHANGELOG.md
  181. +0 −1 workspaces/arborist/lib/arborist/rebuild.js
  182. +20 −7 workspaces/arborist/lib/arborist/reify.js
  183. +6 −5 workspaces/arborist/package.json
  184. +0 −1 workspaces/arborist/test/arborist/rebuild.js
  185. +78 −2 workspaces/arborist/test/arborist/reify.js
  186. +17 −0 workspaces/config/.eslintrc.js
  187. +21 −0 workspaces/config/.gitignore
  188. +145 −0 workspaces/config/CHANGELOG.md
  189. 0 {node_modules/@npmcli → workspaces}/config/LICENSE
  190. +260 −0 workspaces/config/README.md
  191. 0 {node_modules/@npmcli → workspaces}/config/lib/env-replace.js
  192. 0 {node_modules/@npmcli → workspaces}/config/lib/errors.js
  193. 0 {node_modules/@npmcli → workspaces}/config/lib/index.js
  194. 0 {node_modules/@npmcli → workspaces}/config/lib/nerf-dart.js
  195. 0 {node_modules/@npmcli → workspaces}/config/lib/parse-field.js
  196. 0 {node_modules/@npmcli → workspaces}/config/lib/set-envs.js
  197. 0 {node_modules/@npmcli → workspaces}/config/lib/type-defs.js
  198. 0 {node_modules/@npmcli → workspaces}/config/lib/type-description.js
  199. 0 {node_modules/@npmcli → workspaces}/config/lib/umask.js
  200. +1 −0 workspaces/config/map.js
  201. +8 −7 {node_modules/@npmcli → workspaces}/config/package.json
  202. +43 −0 workspaces/config/scripts/example.js
  203. +240 −0 workspaces/config/tap-snapshots/test/index.js.test.cjs
  204. +449 −0 workspaces/config/tap-snapshots/test/type-description.js.test.cjs
  205. +13 −0 workspaces/config/test/env-replace.js
  206. +32 −0 workspaces/config/test/fixtures/cafile
  207. +143 −0 workspaces/config/test/fixtures/defaults.js
  208. +2,609 −0 workspaces/config/test/fixtures/definitions.js
  209. +33 −0 workspaces/config/test/fixtures/flatten.js
  210. +41 −0 workspaces/config/test/fixtures/shorthands.js
  211. +151 −0 workspaces/config/test/fixtures/types.js
  212. +1,295 −0 workspaces/config/test/index.js
  213. +44 −0 workspaces/config/test/nerf-dart.js
  214. +36 −0 workspaces/config/test/parse-field.js
  215. +212 −0 workspaces/config/test/set-envs.js
  216. +22 −0 workspaces/config/test/type-defs.js
  217. +14 −0 workspaces/config/test/type-description.js
  218. +2 −2 workspaces/libnpmaccess/package.json
  219. +6 −0 workspaces/libnpmdiff/CHANGELOG.md
  220. +4 −4 workspaces/libnpmdiff/package.json
  221. +13 −0 workspaces/libnpmexec/CHANGELOG.md
  222. +0 −1 workspaces/libnpmexec/lib/run-script.js
  223. +6 −6 workspaces/libnpmexec/package.json
  224. +6 −0 workspaces/libnpmfund/CHANGELOG.md
  225. +4 −4 workspaces/libnpmfund/package.json
  226. +2 −2 workspaces/libnpmhook/package.json
  227. +2 −2 workspaces/libnpmorg/package.json
  228. +11 −0 workspaces/libnpmpack/CHANGELOG.md
  229. +5 −5 workspaces/libnpmpack/package.json
  230. +9 −18 workspaces/libnpmpack/test/index.js
  231. +6 −0 workspaces/libnpmpublish/CHANGELOG.md
  232. +4 −4 workspaces/libnpmpublish/package.json
  233. +2 −2 workspaces/libnpmsearch/package.json
  234. +2 −2 workspaces/libnpmteam/package.json
  235. +10 −0 workspaces/libnpmversion/CHANGELOG.md
  236. +4 −4 workspaces/libnpmversion/package.json
6 changes: 0 additions & 6 deletions .eslintrc.local.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
{
"ignorePatterns": [
"docs/",
"workspaces/*"
],
"rules": {
"no-shadow": "off",
"no-console": "error"
},
"overrides": [{
"files": [
"scripts/**",
"bin/**",
"test/**"
],
"rules": {
6 changes: 4 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -30,5 +30,7 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --package-lock
- name: Run Audit
run: node . audit -iwr -w workspaces
- name: Run Production Audit
run: node . audit --omit=dev
- name: Run Full Audit
run: node . audit --audit-level=none
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmaccess.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmdiff.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmexec.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmfund.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmhook.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmorg.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmpack.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmpublish.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmsearch.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmteam.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-libnpmversion.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci-npmcli-arborist.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
94 changes: 94 additions & 0 deletions .github/workflows/ci-npmcli-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: CI - @npmcli/config

on:
workflow_dispatch:
pull_request:
paths:
- workspaces/config/**
push:
branches:
- main
- latest
paths:
- workspaces/config/**
schedule:
# "At 09:00 UTC (02:00 PT) on Monday" https://crontab.guru/#0_9_*_*_1
- cron: "0 9 * * 1"

jobs:
lint:
name: Lint
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Lint
run: node . run lint --ignore-scripts -w @npmcli/config
- name: Post Lint
run: node . run postlint --ignore-scripts -w @npmcli/config

test:
name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
- name: macOS
os: macos-latest
shell: bash
- name: Windows
os: windows-latest
shell: cmd
node-version:
- 14.17.0
- 14.x
- 16.13.0
- 16.x
- 18.0.0
- 18.x
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
run: node . test --ignore-scripts -w @npmcli/config
- name: Check Git Status
if: matrix && matrix.platform.os != 'windows-latest'
run: node scripts/git-dirty.js
36 changes: 0 additions & 36 deletions .github/workflows/ci-npmcli-docs.yml
Original file line number Diff line number Diff line change
@@ -18,37 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -111,11 +80,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
45 changes: 20 additions & 25 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
name: CI - Release

on:
workflow_dispatch:
inputs:
ref:
required: true
type: string
default: latest
workflow_call:
inputs:
ref:
@@ -23,7 +29,7 @@ jobs:
steps:
- name: Get Workflow Job
uses: actions/github-script@v6

if: inputs.check-sha
id: check-output
env:
JOB_NAME: "Lint All"
@@ -57,7 +63,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/checks-action@v1.3.1
id: check

if: inputs.check-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
@@ -85,7 +91,7 @@ jobs:
run: node . run postlint --ignore-scripts -ws -iwr --if-present
- name: Conclude Check
uses: LouisBrunner/checks-action@v1.3.1
if: always()
if: steps.check.outputs.check_id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
@@ -121,7 +127,7 @@ jobs:
steps:
- name: Get Workflow Job
uses: actions/github-script@v6

if: inputs.check-sha
id: check-output
env:
JOB_NAME: "Test All"
@@ -155,7 +161,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/checks-action@v1.3.1
id: check

if: inputs.check-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
@@ -177,11 +183,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
@@ -191,7 +192,7 @@ jobs:
run: node scripts/git-dirty.js
- name: Conclude Check
uses: LouisBrunner/checks-action@v1.3.1
if: always()
if: steps.check.outputs.check_id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
@@ -224,7 +225,7 @@ jobs:
steps:
- name: Get Workflow Job
uses: actions/github-script@v6

if: inputs.check-sha
id: check-output
env:
JOB_NAME: "Smoke Publish"
@@ -258,7 +259,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/checks-action@v1.3.1
id: check

if: inputs.check-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
@@ -284,22 +285,16 @@ jobs:
run: |
NPM_VERSION="$(node . --version)-$GITHUB_SHA.0"
node . version $NPM_VERSION --ignore-scripts
node . run resetdeps
git clean -fd
node . ls --omit=dev >/dev/null
node . prune --omit=dev --no-save --no-audit --no-fund
node scripts/git-dirty.js
node . pack --pack-destination=$RUNNER_TEMP
node . install -g $RUNNER_TEMP/npm-$NPM_VERSION.tgz
node scripts/publish.js --pack-destination=$RUNNER_TEMP
node . install --global $RUNNER_TEMP/npm-$NPM_VERSION.tgz
node . install -w smoke-tests --ignore-scripts --no-audit --no-fund
rm -rf {lib,bin,index.js}
# this one should be npm since we explicitly installed our packed
# tarball globally and the next test will make sure our the new
# globally installed version contains the git sha
node scripts/remove-files.js
# call installed npm instead of local source since we are testing
# the packed tarball that we just installed globally
SMOKE_PUBLISH_NPM=1 npm test -w smoke-tests --ignore-scripts
- name: Conclude Check
uses: LouisBrunner/checks-action@v1.3.1
if: always()
if: steps.check.outputs.check_id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
38 changes: 0 additions & 38 deletions .github/workflows/ci-smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -18,39 +18,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -118,11 +85,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
38 changes: 0 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -22,39 +22,6 @@ on:
- cron: "0 9 * * 1"

jobs:
engines:
name: Engines - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
platform:
- name: Linux
os: ubuntu-latest
shell: bash
node-version:
- 14.17.0
- 16.13.0
- 18.0.0
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Reset Deps
run: node . run resetdeps -- --engines-strict

lint:
name: Lint
if: github.repository_owner == 'npm'
@@ -122,11 +89,6 @@ jobs:
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Link
if: matrix
run: node . link -f --ignore-scripts
- name: Rebuild cmark-gfm
run: node . rebuild cmark-gfm
- name: Add Problem Matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- name: Test
96 changes: 0 additions & 96 deletions .github/workflows/create-cli-deps-pr.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/create-node-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This file is automatically added by @npmcli/template-oss. Do not edit.

name: "Create Node PR"

on:
workflow_dispatch:
inputs:
spec:
description: "The npm spec to create the PR from"
required: true
default: 'latest'
dryRun:
description: "Setting this to anything will run all the steps except opening the PR"

jobs:
create-pull-request:
name: Create Node PR
if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Reset Deps
run: node . run resetdeps
- name: Checkout Node
uses: actions/checkout@v3
with:
token: ${{ secrets.NODE_PULL_REQUEST_TOKEN }}
repository: nodejs/node
fetch-depth: 0
path: node
- name: Create Node Pull Request
env:
GITHUB_TOKEN: ${{ secrets.NODE_PULL_REQUEST_TOKEN }}
run: |
DRY_RUN=$([ -z "${{ inputs.dryRun }}" ] && echo "" || echo "--dry-run")
node scripts/create-node-pr.js "${{ inputs.spec }}" "$DRY_RUN"
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ on:
branches:
- main
- latest
- release/v*

permissions:
contents: write
@@ -85,7 +86,7 @@ jobs:
return commentId
- name: Get Workflow Job
uses: actions/github-script@v6
if: steps.release.outputs.pr-number
if: steps.release.outputs.pr-sha
id: check-output
env:
JOB_NAME: "Release"
@@ -119,7 +120,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/checks-action@v1.3.1
id: check
if: steps.release.outputs.pr-number
if: steps.release.outputs.pr-sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
@@ -173,7 +174,7 @@ jobs:
echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Get Workflow Job
uses: actions/github-script@v6

if: steps.commit.outputs.sha
id: check-output
env:
JOB_NAME: "Update - Release"
@@ -207,7 +208,7 @@ jobs:
- name: Create Check
uses: LouisBrunner/checks-action@v1.3.1
id: check

if: steps.commit.outputs.sha
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: in_progress
@@ -216,7 +217,7 @@ jobs:
output: ${{ steps.check-output.outputs.result }}
- name: Conclude Check
uses: LouisBrunner/checks-action@v1.3.1
if: always()
if: needs.release.outputs.check-id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ job.status }}
@@ -254,7 +255,7 @@ jobs:
echo "::set-output name=result::$result"
- name: Conclude Check
uses: LouisBrunner/checks-action@v1.3.1
if: always()
if: needs.update.outputs.check-id && always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ steps.needs-result.outputs.result }}
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@
!/AUTHORS
!/bin/
!/CHANGELOG*
!/changelogs/
!/CODE_OF_CONDUCT.md
!/configure
!/CONTRIBUTING.md
@@ -27,8 +26,6 @@
!/index.js
!/lib/
!/LICENSE*
!/make.bat
!/Makefile
!/map.js
!/node_modules/
/node_modules/.bin/
@@ -46,6 +43,7 @@
!/workspaces/
/workspaces/*
!/workspaces/arborist/
!/workspaces/config/
!/workspaces/libnpmaccess/
!/workspaces/libnpmdiff/
!/workspaces/libnpmexec/
17 changes: 9 additions & 8 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
".": "9.0.1",
"workspaces/arborist": "6.1.0",
".": "9.1.0",
"workspaces/arborist": "6.1.1",
"workspaces/libnpmaccess": "7.0.0",
"workspaces/libnpmdiff": "5.0.1",
"workspaces/libnpmexec": "5.0.1",
"workspaces/libnpmfund": "4.0.1",
"workspaces/libnpmdiff": "5.0.2",
"workspaces/libnpmexec": "5.0.2",
"workspaces/libnpmfund": "4.0.2",
"workspaces/libnpmhook": "9.0.0",
"workspaces/libnpmorg": "5.0.0",
"workspaces/libnpmpack": "5.0.1",
"workspaces/libnpmpublish": "7.0.1",
"workspaces/libnpmpack": "5.0.2",
"workspaces/libnpmpublish": "7.0.2",
"workspaces/libnpmsearch": "6.0.0",
"workspaces/libnpmteam": "5.0.0",
"workspaces/libnpmversion": "4.0.0"
"workspaces/libnpmversion": "4.0.1",
"workspaces/config": "6.1.0"
}
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -863,3 +863,4 @@ Winter <winter@winter.cafe>
shalvah <diakon.ng@gmail.com>
Albert 理斯特 <shuaizhexu@gmail.com>
Gennadiy Gashev <63790536+gennadiygashev@users.noreply.github.com>
Andrew Dawes <andrewsdawes@gmail.com>
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Changelog

## [9.1.0](https://github.com/npm/cli/compare/v9.0.1...v9.1.0) (2022-11-02)

### Features

* [`706b3d3`](https://github.com/npm/cli/commit/706b3d3f227de43a095263926d2eef2b4e4cf2a9) [#5779](https://github.com/npm/cli/pull/5779) set --no-audit when installing outside of a project (like --global) (@fritzy)

### Bug Fixes

* [`1f5382d`](https://github.com/npm/cli/commit/1f5382dada181cda41f1504974de1e69a6c1ad7f) [#5789](https://github.com/npm/cli/pull/5789) don't set `stdioString` for any spawn/run-script calls (@lukekarrys)
* [`8fd614a`](https://github.com/npm/cli/commit/8fd614af5d6de970a6bbcffc538564d2a809411a) use promiseSpawn.open instead of opener (@nlf)
* [`41843ad`](https://github.com/npm/cli/commit/41843ad8a20bd20aacad2bb37fe473f2e76d5306) use an absolute path to notepad.exe by default, correct docs (@nlf)
* [`0c5834e`](https://github.com/npm/cli/commit/0c5834ed635833ef49fe10cc888025a5debebe21) [#5758](https://github.com/npm/cli/pull/5758) use hosted-git-info to parse registry urls (#5758) (@lukekarrys)

### Documentation

* [`ce6745c`](https://github.com/npm/cli/commit/ce6745c806d721f5e3c455a65fd44bfe03e9d2ae) [#5763](https://github.com/npm/cli/pull/5763) fixed some typos (#5763) (@AndrewDawes)

### Dependencies

* [`b89c19e`](https://github.com/npm/cli/commit/b89c19e9a7674b0bd9d336c14dee1bf381843648) [#5795](https://github.com/npm/cli/pull/5795) `cli-table3@0.6.3`
* [`6b6dfca`](https://github.com/npm/cli/commit/6b6dfca191cb8f7871f755b926fd5ae223ba697a) `fastest-levenshtein@1.0.16`
* [`9972ed1`](https://github.com/npm/cli/commit/9972ed1423d7a4f7ca03a34f5aa69321b81850fd) `@npmcli/ci-detect@3.0.1`
* [`024e612`](https://github.com/npm/cli/commit/024e612f55fc9906b49065dbabbee8b8261eb4eb) `abbrev@2.0.0`
* [`66f9bcd`](https://github.com/npm/cli/commit/66f9bcd10b8d8cb635593c526727056581c7955d) `nopt@7.0.0`
* [`5730d17`](https://github.com/npm/cli/commit/5730d17198e066077cb3ea6f78753746afc13603) `tar@6.1.12`
* [`2fef570`](https://github.com/npm/cli/commit/2fef570caf00bd92a3a4cf0b2bc4ce56fd8bd594) `node-gyp@9.3.0`
* [`abfb28b`](https://github.com/npm/cli/commit/abfb28b249183b8c033f8e7acc1546150cdac137) `@npmcli/run-script@6.0.0`
* [`205e2fd`](https://github.com/npm/cli/commit/205e2fdde91f4f21d92ccf0bf9e1ab9ab3053167) `pacote@15.0.6`
* [`ac25863`](https://github.com/npm/cli/commit/ac25863a33b75620ac9edf4057bfb9409028636a) remove opener, `@npmcli/promise-spawn@6.0.1`, `@npmcli/run-script@5.1.1`, `@npmcli/git@4.0.3`, `pacote@15.0.5`, `which@3.0.0`
* [Workspace](https://github.com/npm/cli/compare/arborist-v6.1.0...arborist-v6.1.1): `@npmcli/arborist@6.1.1`
* [Workspace](https://github.com/npm/cli/compare/config-v6.0.1...config-v6.1.0): `@npmcli/config@6.1.0`
* [Workspace](https://github.com/npm/cli/compare/libnpmdiff-v5.0.1...libnpmdiff-v5.0.2): `libnpmdiff@5.0.2`
* [Workspace](https://github.com/npm/cli/compare/libnpmexec-v5.0.1...libnpmexec-v5.0.2): `libnpmexec@5.0.2`
* [Workspace](https://github.com/npm/cli/compare/libnpmfund-v4.0.1...libnpmfund-v4.0.2): `libnpmfund@4.0.2`
* [Workspace](https://github.com/npm/cli/compare/libnpmpack-v5.0.1...libnpmpack-v5.0.2): `libnpmpack@5.0.2`
* [Workspace](https://github.com/npm/cli/compare/libnpmpublish-v7.0.1...libnpmpublish-v7.0.2): `libnpmpublish@7.0.2`
* [Workspace](https://github.com/npm/cli/compare/libnpmversion-v4.0.0...libnpmversion-v4.0.1): `libnpmversion@4.0.1`

## [9.0.1](https://github.com/npm/cli/compare/v9.0.0...v9.0.1) (2022-10-26)

### Documentation
357 changes: 12 additions & 345 deletions DEPENDENCIES.md

Large diffs are not rendered by default.

37 changes: 0 additions & 37 deletions Makefile

This file was deleted.

2 changes: 2 additions & 0 deletions bin/npx-cli.js
Original file line number Diff line number Diff line change
@@ -98,6 +98,7 @@ for (i = 3; i < process.argv.length; i++) {
}

if (removed.has(key)) {
// eslint-disable-next-line no-console
console.error(`npx: the --${key} argument has been removed.`)
sawRemovedFlags = true
process.argv.splice(i, 1)
@@ -122,6 +123,7 @@ for (i = 3; i < process.argv.length; i++) {
}

if (sawRemovedFlags) {
// eslint-disable-next-line no-console
console.error('See `npm help exec` for more information')
}

5 changes: 1 addition & 4 deletions docs/bin/build.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
const run = require('../lib/build.js')
const { paths } = require('../lib/index')

run({
verify: true,
...paths,
})
run(paths)
.then((res) => console.log(`Wrote ${res.length} files`))
.catch((err) => {
process.exitCode = 1
12 changes: 1 addition & 11 deletions docs/lib/build.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ const fs = require('fs/promises')
const ignoreWalk = require('ignore-walk')
const yaml = require('yaml')
const parseFrontMatter = require('front-matter')
const mdx = require('@mdx-js/mdx')

const checkNav = require('./check-nav.js')
const { DOC_EXT, ...transform } = require('./index.js')
@@ -20,7 +19,7 @@ const readHtml = (path) => fs.readFile(path, 'utf-8')
const readYaml = (path) => fs.readFile(path, 'utf-8').then(yaml.parse)
const makeTransforms = (...args) => (src, trs) => trs.reduce((acc, tr) => tr(acc, ...args), src)

const run = async ({ content, verify, template, nav, man, html, md }) => {
const run = async ({ content, template, nav, man, html, md }) => {
const [contentPaths, templateFile, navFile] = await Promise.all([
readDocs(content),
readHtml(template),
@@ -113,15 +112,6 @@ const run = async ({ content, verify, template, nav, man, html, md }) => {

checkNav(navFile, entriesByType.md.map(({ path }) => path), DOC_EXT)

if (verify) {
await Promise.all(entriesByType.md.map(async ({ src }) => {
// Test that mdx can parse this markdown file. We don't actually
// use the output, it's just to ensure that the upstream docs
// site (docs.npmjs.com) can parse it when this file gets there.
await mdx(src, { skipExport: true })
}))
}

return docEntries
}

2 changes: 1 addition & 1 deletion docs/lib/content/using-npm/dependency-selectors.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ description: Dependency Selector Syntax & Querying

### Description

The [`npm query`](/commands/npm-query) commmand exposes a new dependency selector syntax (informed by & respecting many aspects of the [CSS Selectors 4 Spec](https://dev.w3.org/csswg/selectors4/#relational)) which:
The [`npm query`](/commands/npm-query) command exposes a new dependency selector syntax (informed by & respecting many aspects of the [CSS Selectors 4 Spec](https://dev.w3.org/csswg/selectors4/#relational)) which:

- Standardizes the shape of, & querying of, dependency graphs with a robust object model, metadata & selector syntax
- Leverages existing, known language syntax & operators from CSS to make disparate package information broadly accessible
2 changes: 1 addition & 1 deletion docs/lib/content/using-npm/scope.md
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ Publishing to a scope, you have two options:
If publishing a public module to an organization scope, you must
first either create an organization with the name of the scope
that you'd like to publish to or be added to an existing organization
with the appropriate permisssions. For example, if you'd like to
with the appropriate permissions. For example, if you'd like to
publish to `@org`, you would need to create the `org` organization
on npmjs.com prior to trying to publish.

18 changes: 9 additions & 9 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -11,30 +11,30 @@
"lintfix": "node .. run lint -- --fix",
"snap": "tap",
"test": "tap",
"pretest": "node .. run rebuild-cmark",
"posttest": "node .. run lint",
"build": "node bin/build.js"
"build": "node bin/build.js",
"prebuild": "node .. run rebuild-cmark",
"rebuild-cmark": "node ../scripts/rebuild.js cmark-gfm"
},
"repository": {
"type": "git",
"url": "https://github.com/npm/cli.git",
"directory": "docs"
},
"dependencies": {
"devDependencies": {
"@isaacs/string-locale-compare": "^1.1.0",
"@mdx-js/mdx": "^1.6.22",
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.8.0",
"cmark-gfm": "^0.9.0",
"front-matter": "^4.0.2",
"ignore-walk": "^6.0.0",
"jsdom": "^20.0.1",
"marked-man": "^0.7.0",
"mkdirp": "^1.0.4",
"tap": "^16.0.1",
"yaml": "^2.1.3"
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.6.2",
"tap": "^16.0.1"
},
"author": "GitHub Inc.",
"license": "ISC",
"files": [
@@ -55,7 +55,7 @@
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"ciVersions": "latest",
"engines": "^14.17.0 || ^16.13.0 || >=18.0.0",
"version": "4.6.2",
"version": "4.8.0",
"content": "../scripts/template-oss/index.js"
}
}
14 changes: 14 additions & 0 deletions lib/arborist-cmd.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const log = require('./utils/log-shim.js')

// This is the base for all commands whose execWorkspaces just gets
// a list of workspace names and passes it on to new Arborist() to
// be able to run a filtered Arborist.reify() at some point.
@@ -17,6 +19,18 @@ class ArboristCmd extends BaseCommand {

static ignoreImplicitWorkspace = false

constructor (npm) {
super(npm)
if (this.npm.config.isDefault('audit')
&& (this.npm.global || this.npm.config.get('location') !== 'project')
) {
this.npm.config.set('audit', false)
} else if (this.npm.global && this.npm.config.get('audit')) {
log.warn('config',
'includes both --global and --audit, which is currently unsupported.')
}
}

async execWorkspaces (args, filters) {
await this.setWorkspaces(filters)
return this.exec(args)
1 change: 0 additions & 1 deletion lib/commands/ci.js
Original file line number Diff line number Diff line change
@@ -94,7 +94,6 @@ class CI extends ArboristWorkspaceCmd {
args: [],
scriptShell,
stdio: 'inherit',
stdioString: true,
banner: !this.npm.silent,
event,
})
1 change: 0 additions & 1 deletion lib/commands/explore.js
Original file line number Diff line number Diff line change
@@ -59,7 +59,6 @@ class Explore extends BaseCommand {
pkg,
banner: false,
path,
stdioString: true,
event: '_explore',
stdio: 'inherit',
}).catch(er => {
1 change: 0 additions & 1 deletion lib/commands/install.js
Original file line number Diff line number Diff line change
@@ -161,7 +161,6 @@ class Install extends ArboristWorkspaceCmd {
args: [],
scriptShell,
stdio: 'inherit',
stdioString: true,
banner: !this.npm.silent,
event,
})
1 change: 0 additions & 1 deletion lib/commands/run-script.js
Original file line number Diff line number Diff line change
@@ -117,7 +117,6 @@ class RunScript extends BaseCommand {
args,
scriptShell,
stdio: 'inherit',
stdioString: true,
pkg,
banner: !this.npm.silent,
}
15 changes: 15 additions & 0 deletions lib/npm.js
Original file line number Diff line number Diff line change
@@ -88,6 +88,21 @@ class Npm extends EventEmitter {
// would be needed to change this
async cmd (cmd) {
await this.load()

// when location isn't set and global isn't true
// check for a package.json at the localPrefix
// and set the location to project if found
// TODO: this logic can move to the config module loadLocalPrefix to
// avoid double stat calls and consolidate logic
if (this.config.isDefault('location') && !this.config.get('global')) {
const hasPackageJson = await fs.stat(resolve(this.config.localPrefix, 'package.json'))
.then((st) => st.isFile())
.catch(() => false)
if (hasPackageJson) {
this.config.set('location', 'project')
}
}

const command = this.deref(cmd)
if (!command) {
throw Object.assign(new Error(`Unknown command ${cmd}`), {
6 changes: 3 additions & 3 deletions lib/utils/config/definitions.js
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ const buildOmitList = obj => {

const editor = process.env.EDITOR ||
process.env.VISUAL ||
(isWindows ? 'notepad.exe' : 'vi')
(isWindows ? `${process.env.SYSTEMROOT}\\notepad.exe` : 'vi')

const shell = isWindows ? process.env.ComSpec || 'cmd'
: process.env.SHELL || 'sh'
@@ -628,8 +628,8 @@ define('dry-run', {
define('editor', {
default: editor,
defaultDescription: `
The EDITOR or VISUAL environment variables, or 'notepad.exe' on Windows,
or 'vim' on Unix systems
The EDITOR or VISUAL environment variables, or '%SYSTEMROOT%\\notepad.exe' on Windows,
or 'vi' on Unix systems
`,
type: String,
description: `
12 changes: 2 additions & 10 deletions lib/utils/open-url-prompt.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const readline = require('readline')
const opener = require('opener')
const promiseSpawn = require('@npmcli/promise-spawn')

function print (npm, title, url) {
const json = npm.config.get('json')
@@ -64,15 +64,7 @@ const promptOpen = async (npm, url, title, prompt, emitter) => {
}

const command = browser === true ? null : browser
await new Promise((resolve, reject) => {
opener(url, { command }, err => {
if (err) {
return reject(err)
}

return resolve()
})
})
await promiseSpawn.open(url, { command })
}

module.exports = promptOpen
18 changes: 7 additions & 11 deletions lib/utils/open-url.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const opener = require('opener')
const promiseSpawn = require('@npmcli/promise-spawn')

const { URL } = require('url')

@@ -37,18 +37,14 @@ const open = async (npm, url, errMsg, isFile) => {
}

const command = browser === true ? null : browser
await new Promise((resolve, reject) => {
opener(url, { command }, (err) => {
if (err) {
if (err.code === 'ENOENT') {
printAlternateMsg()
} else {
return reject(err)
}
await promiseSpawn.open(url, { command })
.catch((err) => {
if (err.code !== 'ENOENT') {
throw err
}
return resolve()

printAlternateMsg()
})
})
}

module.exports = open
3 changes: 2 additions & 1 deletion node_modules/.gitignore
8 changes: 4 additions & 4 deletions node_modules/@npmcli/ci-detect/package.json
1 change: 1 addition & 0 deletions node_modules/@npmcli/config
10 changes: 5 additions & 5 deletions node_modules/@npmcli/git/package.json
155 changes: 144 additions & 11 deletions node_modules/@npmcli/promise-spawn/lib/index.js
10 changes: 7 additions & 3 deletions node_modules/@npmcli/promise-spawn/package.json
51 changes: 4 additions & 47 deletions node_modules/@npmcli/run-script/lib/make-spawn-args.js
2 changes: 1 addition & 1 deletion node_modules/@npmcli/run-script/lib/run-script-pkg.js
10 changes: 5 additions & 5 deletions node_modules/@npmcli/run-script/package.json
50 changes: 50 additions & 0 deletions node_modules/abbrev/lib/index.js
44 changes: 33 additions & 11 deletions node_modules/abbrev/package.json
2 changes: 1 addition & 1 deletion node_modules/cli-table3/package.json
7 changes: 5 additions & 2 deletions node_modules/cli-table3/src/cell.js
96 changes: 96 additions & 0 deletions node_modules/fastest-levenshtein/bench.js
4 changes: 4 additions & 0 deletions node_modules/fastest-levenshtein/esm/mod.d.ts
1 change: 1 addition & 0 deletions node_modules/fastest-levenshtein/esm/mod.d.ts.map
138 changes: 138 additions & 0 deletions node_modules/fastest-levenshtein/esm/mod.js
2 changes: 0 additions & 2 deletions node_modules/fastest-levenshtein/index.d.ts

This file was deleted.

147 changes: 0 additions & 147 deletions node_modules/fastest-levenshtein/index.js

This file was deleted.

3 changes: 3 additions & 0 deletions node_modules/fastest-levenshtein/mod.d.ts
142 changes: 142 additions & 0 deletions node_modules/fastest-levenshtein/mod.js
43 changes: 26 additions & 17 deletions node_modules/fastest-levenshtein/package.json
113 changes: 52 additions & 61 deletions node_modules/fastest-levenshtein/test.js
67 changes: 67 additions & 0 deletions node_modules/fastest-levenshtein/test.ts
11 changes: 9 additions & 2 deletions node_modules/hosted-git-info/lib/index.js
5 changes: 2 additions & 3 deletions node_modules/hosted-git-info/lib/parse-url.js
9 changes: 0 additions & 9 deletions node_modules/hosted-git-info/lib/protocols.js

This file was deleted.

2 changes: 1 addition & 1 deletion node_modules/hosted-git-info/package.json
43 changes: 31 additions & 12 deletions node_modules/node-gyp/addon.gypi
24 changes: 24 additions & 0 deletions node_modules/node-gyp/gyp/pylib/gyp/__init__.py
13 changes: 10 additions & 3 deletions node_modules/node-gyp/gyp/pylib/gyp/common.py
2 changes: 1 addition & 1 deletion node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py
Loading