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

Lage doesn't run root level dependency target when without specified type #704

Open
harunurhan opened this issue Nov 6, 2023 · 0 comments

Comments

@harunurhan
Copy link
Member

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant