Skip to content

Commit

Permalink
Work around inability to use declaration files.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Aug 22, 2022
1 parent d58685e commit e8d43c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions org.lflang/src/lib/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"name": "LinguaFrancaDefault",
"version": "0.0.1",
"description": "A default Lingua Franca project for the TypeScript target",
"type": "commonjs",
"repository": {
"type": "git",
"url": "https://github.com/icyphy/lingua-franca"
},
"license": "BSD-2-Clause",
"dependencies": {
"reactor-ts": "file:../../lib/reactor-ts",
"@types/reactor-ts": "file:../../lib/reactor-ts",
"command-line-usage": "^6.1.0",
"command-line-args": "^5.1.1"
Expand Down
2 changes: 1 addition & 1 deletion org.lflang/src/lib/ts/reactor-ts
2 changes: 1 addition & 1 deletion org.lflang/src/org/lflang/generator/ts/TSGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class TSGenerator(
val RUNTIME_FILES = arrayOf("action.ts", "bank.ts", "cli.ts", "command-line-args.d.ts",
"command-line-usage.d.ts", "component.ts", "event.ts", "federation.ts", "internal.ts",
"reaction.ts", "reactor.ts", "microtime.d.ts", "multiport.ts", "nanotimer.d.ts", "port.ts",
"state.ts", "strings.ts", "time.ts", "trigger.ts", "types.ts", "ulog.d.ts", "util.ts")
"state.ts", "strings.ts", "time.ts", "trigger.ts", "types.ts", "ulog.d.ts", "util.ts", "index.ts")

private val VG =
ExpressionGenerator(::timeInTargetLanguage) { param -> "this.${param.name}.get()" }
Expand Down

0 comments on commit e8d43c4

Please sign in to comment.