Import-local is a small but powerful npm package designed to prioritize locally installed versions of a globally installed package. This ensures consistency in environments where both global and local installations exist, preventing unexpected behavior stemming from version mismatches.
Between version 0.1.1 and 1.0.0, developers will notice key updates to the devDependencies. The newer 1.0.0 version updates cpy from version 5.0.0 to version 6.0.0, del from version 2.2.2 to version 3.0.0 and execa from version 0.6.3 to version 0.8.0. These updates often bring performance improvements, bug fixes, and potentially new features related to copying files, deleting files and executing commands.
For developers, import-local provides a transparent solution. Simply integrate it into your package, and it will automatically detect and utilize the locally installed version if present. This eliminates manual checks and conditional logic, streamlining your development workflow. The package relies on pkg-dir and resolve-cwd to efficiently locate the relevant directories and resolve paths. Both versions share the same dependencies and use xo and ava for linting and testing respectively.
The are not vulnerabilities for the version 1.0.0 of the package import-local