Open benmerckx opened 3 days ago
Originally reported here: justdlabs/justd#244
Describe the bug Just tried to init a new project that started with bun init. Bun creates a tsconfig.json file with the following contents:
bun init
tsconfig.json
{ "compilerOptions": { // Enable latest features "lib": ["ESNext", "DOM"], "target": "ESNext", "module": "ESNext", "moduleDetection": "force", "jsx": "react-jsx", "allowJs": true, // Bundler mode "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, "noEmit": true, // Best practices "strict": true, "skipLibCheck": true, "noFallthroughCasesInSwitch": true, // Some stricter flags (disabled by default) "noUnusedLocals": false, "noUnusedParameters": false, "noPropertyAccessFromIndexSignature": false } }
Running bunx justd-cli@latest init next produces the following error:
bunx justd-cli@latest init
✖ Failed to parse tsconfig.json.
Removing the comments (to adhere to JSON) passes the cli
To Reproduce Steps to reproduce the behavior:
Expected behavior Support comments in tsconfig.json
At least right now, just remove the //
see this
Originally reported here: justdlabs/justd#244
Describe the bug Just tried to init a new project that started with
bun init
. Bun creates atsconfig.json
file with the following contents:Running
bunx justd-cli@latest init
next produces the following error:Removing the comments (to adhere to JSON) passes the cli
To Reproduce Steps to reproduce the behavior:
Expected behavior Support comments in tsconfig.json