Skip to content

Commit

Permalink
[tsconfig.json] Go back to "es2020" module and "es2021" target.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Sep 1, 2023
1 parent 96efa95 commit e18a358
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/bin/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if (!(puzzleName && algString)) {
* Turn a name into a geometry.
*/

// @ts-ignore: Top-level await is okay because this is not part of the main library.
let kpuzzle = await puzzles[puzzleName].kpuzzle();
if (!kpuzzle) {
const pg = getPuzzleGeometryByName(puzzleName, { allMoves: true });
Expand Down
1 change: 1 addition & 0 deletions src/bin/scramble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Example: scramble 333`);
}

setSearchDebug({ logPerf: false }); // TODO: why doesn't this work?
// @ts-ignore: Top-level await is okay because this is not part of the main library.
const scramble = await randomScrambleForEvent(eventID);
console.log(scramble.toString());

Expand Down
1 change: 1 addition & 0 deletions src/test/chai-workarounds/chai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const {
expect: untypedExpect,
use: untypedUse,
Assertion: untypedAssertion,
// @ts-ignore: Top-level await is okay because this is not part of the main library.
} = await import("@esm-bundle" + "/chai");
export const expect: typeof import("chai").expect = untypedExpect;
export const use: typeof import("chai").use = untypedUse;
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"target": "es2021",
"module": "es2020",
"moduleResolution": "bundler",
"allowJs": true,
"alwaysStrict": true,
Expand Down

0 comments on commit e18a358

Please sign in to comment.