Skip to content

Commit

Permalink
Fix -exports=true
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Jun 21, 2024
1 parent c7c8806 commit 9a5739f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
// {{.WebrpcGenCommand}}

// WebRPC description and code-gen version
export const WebRPCVersion = "{{.WebrpcVersion}}"
{{if $opts.exports}}export {{end}} const WebRPCVersion = "{{.WebrpcVersion}}"

// Schema version of your RIDL schema
export const WebRPCSchemaVersion = "{{.SchemaVersion}}"
{{if $opts.exports}}export {{end}} const WebRPCSchemaVersion = "{{.SchemaVersion}}"

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = "{{.SchemaHash}}"
{{if $opts.exports}}export {{end}} const WebRPCSchemaHash = "{{.SchemaHash}}"

{{template "types" dict "Services" .Services "Types" .Types "Opts" $opts}}
{{- if $opts.client}}
Expand Down

0 comments on commit 9a5739f

Please sign in to comment.