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

allow ignoring devDependencies when running task from package.json #22736

Open
scarf005 opened this issue Mar 6, 2024 · 0 comments
Open

allow ignoring devDependencies when running task from package.json #22736

scarf005 opened this issue Mar 6, 2024 · 0 comments
Labels
cli related to cli/ dir node resolution suggestion suggestions for new features (yet to be agreed)

Comments

@scarf005
Copy link
Contributor

scarf005 commented Mar 6, 2024

https://github.com/scarf005/vfile/blob/67e5cbcab3c9c1b1a47cb796f9bba3100e5c7aab/package.json#L56-L70

  "dependencies": {
    "@types/unist": "^3.0.0",
    "unist-util-stringify-position": "^4.0.0",
    "vfile-message": "^4.0.0"
  },
  "devDependencies": {
    "@types/node": "^20.0.0",
    "c8": "^8.0.0",
    "prettier": "^3.0.0",
    "remark-cli": "^11.0.0",
    "remark-preset-wooorm": "^9.0.0",
    "type-coverage": "^2.0.0",
    "typescript": "^5.0.0",
    "xo": "^0.56.0"
  },

in this library, only dependencies is required to run. however,

deno eval 'import "lib/index.js"'

will attempt to download the entire content of devDependencies. while the workaround is to erase devDependencies before running then restoring, it's a bit manual. a flag like --ignore-devdependencies would be helpful.

@lucacasonato lucacasonato added suggestion suggestions for new features (yet to be agreed) node resolution cli related to cli/ dir labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli related to cli/ dir node resolution suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

2 participants