Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI install commands? #1

Open
karlhorky opened this issue Feb 9, 2025 · 0 comments
Open

CLI install commands? #1

karlhorky opened this issue Feb 9, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@karlhorky
Copy link

Thanks for this package, default-trusted-dependencies.txt list from bun extracted to separate package looks quite helpful!

Looking at the readme, it appears that adding build-scripts-allowlist to package.json is a manual installation step (copy and paste from the readme at https://github.com/haoqunjiang/build-scripts-allowlist):

In your project using PNPM 10, add the following field to your package.json:

"pnpm": {
  "configDependencies": {
    "build-scripts-allowlist": "0.20250131.0+sha512-vuePnd+0F3PtuyFIHT1XsfOK7/BGkK1QmIMRHHPo+6LW7Wr/37QsQV3R/UztxoFWHHm9pSbCUovigSmeapfdLA=="
  },
  "onlyBuiltDependenciesFile": "node_modules/.pnpm-config/build-scripts-allowlist/common.json"
}

What are your thoughts on adding a command line installation command to always get the latest version? (or update, in case the config is already there)

Some first implementation ideas:

  1. Is there a pnpm command to add a package to pnpm.configDependencies? If not, maybe using pnpm info?
    $ pnpm info build-scripts-allowlist version
    0.20250131.0
  2. Is there a pnpm command to add a value to pnpm.onlyBuiltDependenciesFile? If not, could either use node -e "..." (more widely installed) or jq/yq
@haoqunjiang haoqunjiang added the enhancement New feature or request label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants