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

📚 Docs: Missing commas in package.json cause JSON parsing error #10542

@seymur-orucov

Description

@seymur-orucov

What is the improvement or update you wish to see?

I encountered a syntax error on the TurboRepo website due to invalid package.json formatting. Specifically, the object properties are missing commas between them. Here's the problematic code:

{ "name": "web" "scripts": { "test": "jest", "test:watch": "jest --watch" } "devDependencies": { "jest": "latest" } }

Is there any context that might help us understand?

Each key-value pair in a JSON object must be separated by a comma. In this case, a comma is missing:

After "name": "web"

After the scripts block

This results in a JSON parsing error.

Please update the file to:

{ "name": "web", "scripts": { "test": "jest", "test:watch": "jest --watch" }, "devDependencies": { "jest": "latest" } }

Does the docs page already exist? Please link to it.

https://turborepo.com/docs/guides/tools/jest#running-tests-in-watch-mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions