Lage doesn't run root level dependency target when without specified `type`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 816
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Lage doesn't run root level dependency target when without specified type: "npmScript".
To Reproduce
Code:
// root package.json
"scripts": {
"lage": "lage",
"touch-foo": "touch foo.js"
},
// lage.config.js
pipeline: {
"#touch-foo": [],
lint: ["#touch-foo"],
Running lage --verbose --no-cache lint outputs:
<root> touch-foo ➔ start
<root>touch-foo ✓ done - 0.14s
But foo.js is never created. It works when I add an explicit type: "npmScript"
Expected behavior
Target should have a default type npmScript or just fail with a clear error message.
Environment/Troubleshooting
Please paste in the result of npx envinfo to help identify your run time environment
If this is an issue with run order of tasks, please paste in the result of lage info [your command(s)] [options]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior with the root package.json and lage.config.js shown in the report, using lage --verbose --no-cache lint. Trace how the root #touch-foo target is interpreted when its type is omitted, then verify that the target either runs as an npmScript or reports a clear error, including the creation of foo.js.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100