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

Unexpected script run #1890

Closed
19Qingfeng opened this issue Sep 8, 2022 · 1 comment
Closed

Unexpected script run #1890

19Qingfeng opened this issue Sep 8, 2022 · 1 comment
Labels
needs: triage New issues get this label. Remove it after triage

Comments

@19Qingfeng
Copy link

What version of Turborepo are you using?

1.4.6

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Mac

Describe the Bug

I encountered an unexpected script run.

As the example in the documentation, I redefine turpo.json:

{
  "$schema": "https://turborepo.org/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": ["test", "lint"],
      "outputs": ["dist/**", ".next/**"],
      "cache": false
    },
    "lint": {
      "dependsOn": []
    },
    "test": {
      "dependsOn": []
    },
    "dev": {
      "cache": false
    }
  }
}

When I do npm run build , something unexpected happens. The lint of the UI will be executed, but the UI does not have build scripts,Although the UI is relied upon by other applications.

Expected Behavior

UI does not define a build script and should not execute UI's lint command.

To Reproduce

in this repo: https://github.com/19Qingfeng/turo-bug-report.

you can run pnpm install and pnpm build,then you can get:

image

@19Qingfeng 19Qingfeng changed the title 上传图片未选择任何文件上传图片7 / 3000 意外的脚本运行 Unexpected script run Unexpected script run Sep 8, 2022
@mehulkar mehulkar added needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Oct 20, 2023
@mehulkar
Copy link
Contributor

mehulkar commented Dec 9, 2023

This is expected behavior and a duplicate of #937. I recently added some docs to explain why this is expected: https://turbo.build/repo/docs/core-concepts/monorepos/task-graph#transit-nodes

@mehulkar mehulkar closed this as completed Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

No branches or pull requests

2 participants