-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
Bug Report
π Search Terms
tsc init module commonjs
π Version & Regression Information
4.9.0-dev.20221017
β― Playground Link
n/a
π» Code
package.json
{
"name": "asdf",
"version": "1.0.0",
"description": "",
"author": "",
"license": "ISC",
"type": "module",
"devDependencies": {
"typescript": "^4.9.0-dev.20221017"
}
}
π Actual behavior
> npx tsc --init
Created a new tsconfig.json with:
TS
target: es2016
module: commonjs
strict: true
esModuleInterop: true
skipLibCheck: true
forceConsistentCasingInFileNames: true
You can learn more at https://aka.ms/tsconfig
π Expected behavior
it should check the package.json
to determine that module
should be nodenext
or something
DetachHead, KotlinIsland, robpalme, stevenwdv, bilal1101-m and 2 more
Metadata
Metadata
Assignees
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript