change init

This commit is contained in:
nvms 2024-10-09 18:11:22 -04:00
parent 7dc00f2803
commit e717902414

View File

@ -44,8 +44,8 @@ run:
runtime: bun
sourcemap: false
jsx: transform
jsxFactory: h
jsx: automatic
jsxFactory: React.createElement
`
func CreateDefaultPackageJson() string {
@ -117,10 +117,10 @@ func InitProject() {
tsconfigJsonPath := filepath.Join(cwd, "tsconfig.json")
if err := os.WriteFile(tsconfigJsonPath, []byte(`{
"compilerOptions": {
"jsx": "preserve",
"jsxFactory": "h"
}
"compilerOptions": {
"module": "ES2022",
"target": "ESNext"
}
}`), 0644); err != nil {
Die("failed to write tsconfig.json: %v", err)
}