You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both are only for reading the package.json in the current working directory, they do not traverse up the directory tree.
So we should be able to replace with:
constdata=awaitreadPackageJsonFast('./package.json');// orconstpackagePath=path.join(cwd,'./package.json');// `cwd` is passed in for npm-run-all at leastconstdata=awaitreadPackageJsonFast(packagePath);
It is probably also worth moving people from npm-run-all to npm-run-all2 if we ever bump into that in other repos.
The text was updated successfully, but these errors were encountered:
npm-run-all2 is a fork of npm-run-all:
https://github.com/bcomnes/npm-run-all2
it was created since npm-run-all isn't actively maintained anymore
it depends on
read-pkg
which is fairly bloated. We can switch to npm's own read-package-json-fast:https://github.com/npm/read-package-json-fast
Both are only for reading the
package.json
in the current working directory, they do not traverse up the directory tree.So we should be able to replace with:
It is probably also worth moving people from npm-run-all to npm-run-all2 if we ever bump into that in other repos.
The text was updated successfully, but these errors were encountered: