这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

After some experimenting, I managed to fix it as follows.

In my turbo.json, I now have:

"tasks": {
    "build:turbo": {
      "dependsOn": ["^build:turbo"]
    },
    "build-dependencies:turbo": {
      "dependsOn": ["^build:turbo"]
    }
}

and in my package.json files, I use

"scripts": {
    "build": "PACKAGE_NAME=$(npm pkg get name | jq -r 'to_entries[0].value') && turbo run build:turbo --filter=\"$PACKAGE_NAME\"",
    "build-dependencies": "PACKAGE_NAME=$(npm pkg get name | jq -r 'to_entries[0].value') && turbo run build-dependencies:turbo --filter=\"$PACKAGE_NAME\"",
    "build-dependencies:turbo": "echo \"turbo already builds dependencies\"",

    "build:turbo": "tsc",

    "pretest": "

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robin-crazygames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant