Skip to content

Commit

Permalink
Updated default Typescript version to 4.9.3 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcc authored Jan 28, 2023
1 parent 8ed5a9d commit d346b08
Show file tree
Hide file tree
Showing 3 changed files with 174,494 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"github.com/clarkmcc/go-typescript/utils"
"github.com/clarkmcc/go-typescript/versions"
_ "github.com/clarkmcc/go-typescript/versions/v4.7.2"
_ "github.com/clarkmcc/go-typescript/versions/v4.9.3"
"github.com/dop251/goja"
)

Expand Down Expand Up @@ -60,7 +60,7 @@ func NewDefaultConfig() *Config {
return &Config{
Runtime: goja.New(),
CompileOptions: nil,
TypescriptSource: versions.DefaultRegistry.MustGet("v4.7.2"),
TypescriptSource: versions.DefaultRegistry.MustGet("v4.9.3"),
ModuleName: "default",
}
}
Expand Down
13 changes: 13 additions & 0 deletions versions/v4.9.3/loader.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package v4_9_3

import (
_ "embed"
"github.com/clarkmcc/go-typescript/versions"
)

//go:embed v4.9.3.js
var Source string

func init() {
versions.DefaultRegistry.MustRegister("v4.9.3", Source)
}
Loading

0 comments on commit d346b08

Please sign in to comment.