aws-amplify / aws-amplify/amplify-cli
[command-hooks] allow adding command options to custom runtime commands
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### Is this feature request related to a new or existing Amplify category?
New category
### Describe the feature you'd like to request
I'd like to using `node -r tsconfig-paths/register -r esbuild-register` to config a TypeScript rumtime.
but currently the config doesn't support passing command options to the runtime command.
### Describe the solution you'd like
```json
{
"extensions": {
"ts": {
"runtime": "node",
"options": ["-r", "tsconfig-paths/register", "-r", "esbuild-register"]
}
}
}
```
### Additional context
_No response_
### Is this something that you'd be interested in working on?
- [X] 👋 I may be able to implement this feature request
### Would this feature include a breaking change?
- [X] ⚠️ This feature might incur a breaking change
Contributor guide
Research direction
Start by locating the command-hooks configuration and the code that builds or invokes custom runtime commands. Trace how the runtime command is assembled, then verify that an options array produces the requested node -r arguments and that existing runtime behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100