Parcourir la source

add comment

pull/30719/head
silverwind il y a 3 semaines
Parent
révision
265bb8621c
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3
    0
      tools/lint-lockfiles.js

+ 3
- 0
tools/lint-lockfiles.js Voir le fichier

@@ -12,6 +12,9 @@ const files = [
const rootPath = fileURLToPath(new URL('..', import.meta.url));
let hadErrors = false;

// This checks that all "resolved" URLs in package-lock.json point to the official npm registry.
// If a user is using a npm proxy (private or public), they would write that proxy's URL into
// the file which we do not want because it could cause issues during installation.
for (const file of files.map((file) => fileURLToPath(new URL(file, import.meta.url)))) {
const data = JSON.parse(readFileSync(file));
for (const [pkg, {resolved}] of Object.entries(data.packages)) {

Chargement…
Annuler
Enregistrer