Skip to content

Commit c36b614

Browse files
authored
[build] Fix #3882 -- TypeScript target testing broken. (#3883)
* Fix #3882 Fixed illegal import declaration for TypeScript. Touched the vba grammar to force build of the to demo fix. * For testing, set specific versions of typescript and ts-node!
1 parent 7f1d17c commit c36b614

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

_scripts/templates/TypeScript/st.Test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { writeSync } from 'fs';
1616
import { closeSync } from 'fs';
1717
import { readFile } from 'fs/promises'
1818

19-
<tool_grammar_tuples: {x | import <x.GrammarAutomName> from './<x.GrammarAutomName>';
19+
<tool_grammar_tuples: {x | import <x.GrammarAutomName> from './<x.GrammarAutomName>.js';
2020
} >
2121
import { StringBuilder, emptyString, joinString, formatString, isNullOrWhiteSpace } from 'typescript-string-operations';
2222
import { Timer, Time, TimerOptions } from 'timer-node';

_scripts/templates/TypeScript/st.build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if($compile_exit_code -ne 0){
1616
\}
1717
}>
1818

19-
$(& npm install -g typescript ts-node ; $compile_exit_code = $LASTEXITCODE ) | Write-Host
19+
$(& npm install -g typescript@5.3.3 ts-node@10.9.2 ; $compile_exit_code = $LASTEXITCODE ) | Write-Host
2020
if($compile_exit_code -ne 0){
2121
exit $compile_exit_code
2222
\}

_scripts/templates/TypeScript/st.build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ version=`grep antlr4 package.json | awk '{print $2}' | tr -d '"' | tr -d ',' | t
1313
antlr4 -v $version -encoding <antlr_encoding> -Dlanguage=TypeScript <x.AntlrArgs> <antlr_tool_args:{y | <y> } > <x.GrammarFileName>
1414
} >
1515

16-
npm install -g typescript ts-node
16+
npm install -g typescript@5.3.3 ts-node@10.9.2
1717
npm install
1818
tsc -p tsconfig.json --pretty
1919
exit 0

vba/vba.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1998,4 +1998,4 @@ fragment DIGIT
19981998
19991999
fragment LETTERORDIGIT
20002000
: [A-Z0-9_\p{L}]
2001-
;
2001+
;

0 commit comments

Comments
 (0)