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

Regression unable to use comments anymore in turbo.json #1283

@weyert

Description

@weyert

What version of Turborepo are you using?

1.2.11

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

pnpm

What operating system are you using?

Mac

Describe the Bug

In the past JSON5 support was added to turbo.json but adding // comment now breaks with:

error unmarshalling invalid character '/' looking for beginning of object key string
ERROR  turbo.json: invalid character '/' looking for beginning of object key string

Expected Behavior

Able to use JSON5 format in turbo.json to allow comments

To Reproduce

Add a comment e.g.

    "test": {
      // "dependsOn": ["^build"],
      "outputs": ["coverage/junit.xml"]
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions