Skip to content

Commit

Permalink
chore(tsconfig): update to ES2019
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Oct 2, 2024
1 parent 4260294 commit 2bd65fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"*.ts"
],
"compilerOptions": {
"target": "es2018",
"target": "es2019",
"outDir": "dist",
"skipLibCheck": true
}
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const Parser: Parser = { // eslint-disable-line @typescript-eslint/no-redeclare
wikitext = tidy(wikitext);
if (typeof maxStage !== 'number') {
const types = Array.isArray(maxStage) ? maxStage : [maxStage];
maxStage = Math.max(...types.map(t => stages[t] ?? MAX_STAGE));
maxStage = Math.max(...types.map(t => stages[t] || MAX_STAGE));
}
const {Token}: typeof import('./src/index') = require('./src/index');
const root = Shadow.run(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@codemirror/lint": "^6.8.0",
"@types/node": "^20.11.6",
"codejar-async": "^4.2.3",
"monaco-editor": "^0.51.0",
"monaco-editor": "^0.52.0",
"v8r": "^3.0.0"
},
"engines": {
Expand Down

0 comments on commit 2bd65fc

Please sign in to comment.