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

deno task - Run scripts from package.json #17492

Closed
dsherret opened this issue Jan 22, 2023 · 0 comments · Fixed by #17887
Closed

deno task - Run scripts from package.json #17492

dsherret opened this issue Jan 22, 2023 · 0 comments · Fixed by #17887
Labels
suggestion suggestions for new features (yet to be agreed)
Milestone

Comments

@dsherret
Copy link
Member

It would be convenient for deno task to run "scripts" in a package.json if it's auto-discovered.

{
  "name": "01-deno-app",
  "scripts": {
    "main": "deno run -A main.ts"
  }
}

Depends on #17491

@dsherret dsherret added the suggestion suggestions for new features (yet to be agreed) label Jan 22, 2023
@dsherret dsherret mentioned this issue Jan 22, 2023
13 tasks
@bartlomieju bartlomieju added this to the 1.31 milestone Jan 26, 2023
dsherret added a commit that referenced this issue Feb 23, 2023
This is a super basic initial implementation. We don't create a
`node_modules/.bin` folder at the moment and add it to the PATH like we
should which is necessary to make command name resolution in the
subprocess work properly (ex. you run a script that launches another
script that then tries to launch an "npx command"... this won't work
atm).

Closes #17492
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants