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

Better config handling #227

@OmgImAlexis

Description

@OmgImAlexis

Currently if your tsconfig.json is invalid the error thrown by tsup is a little cryptic.

I got this from a tailing comma in my tsconfig.json. Nothing pointed to it though.

➜  api git:(master) ✗ ./node_modules/.bin/tsup ./app/index.ts 
SyntaxError: Unexpected token } in JSON at position 5855
    at JSON.parse (<anonymous>)
    at Object.load (/Users/xo/code/_/api/node_modules/tsup/dist/chunk.4YE4QPOH.js:13508:17)
    ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions