Git Product home page Git Product logo

npm-lockfile-fix's Introduction

ReadMe

This is a small flake wrapper around a Python script that adds missing “integrity” and “resolved” fields to a npm package-lock.json file.

You pass the path to package-lock.json as a command line argument to npm-lockfile-fix:

npm-lockfile-fix ./path/to/package-lock.json

Currently, this project is only packaged as a nix flake. I will improve the Python packaging in due course.

npm-lockfile-fix's People

Contributors

felschr avatar jeslie0 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

felschr

npm-lockfile-fix's Issues

Please create a release/tag

I am working on adding this to nixpkgs to fix, at first, bruno using the postCheck parameter of fetchFromGitHub.

The problem is that without a release it's much harder to setup automatic bumps of the package (basically someone will need to manually update some values everytime this changes to be up to date).

In nixpkgs these automations are done using r-ryantm but a update is only triggered by a release, the release has a version that is associated with a git tag, that changes what is passed to fetchFromGitHub, that triggers a rebuild of the source code download pass, that triggers the automation that changes the hash.

Basically, releases == jidoka(https://en.wikipedia.org/?title=Jidoka&redirect=no)/[autonomation](https://en.wikipedia.org/wiki/Autonomation), no releases == full manual.

Just tagging a commit with git tag v0.1 and git push, for example, may solve the issue already (I am not sure if git push pushes all the tags by default).

For reference this is the PR I am working on, I may split up adding this package in another PR: NixOS/nixpkgs#261139

Is there a bug report with npm to fix this?

It seems to me that npm not generating all hashes for the lock file is a pretty big issue. Do you know if there's already a bug report for this? Or am I missing something that explains this behavior?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.