-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate from tsimp to swc using an import shim to mitigate the bn.js import bug * Updating version to 2.0.159 --------- Co-authored-by: dc-autobot[bot] <181364585+dc-autobot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
47bf611
commit 2529c5e
Showing
9 changed files
with
2,479 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ignores: ["pg", "prettier-plugin-organize-imports", "@digicatapult/tsimp", "reflect-metadata"] | ||
ignores: ["pg", "prettier-plugin-organize-imports", "reflect-metadata", "rimraf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ coverage | |
.idea | ||
.env | ||
.vscode | ||
.tsimp | ||
build | ||
src/routes.ts | ||
src/swagger.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$schema": "https://swc.rs/schema.json", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": false, | ||
"decorators": true, | ||
"dynamicImport": true, | ||
"importMeta": true | ||
}, | ||
"transform": { | ||
"decoratorMetadata": true, | ||
"legacyDecorator": true, | ||
"useDefineForClassFields": true | ||
}, | ||
"target": "es2022" | ||
}, | ||
"exclude": [ | ||
"/__test__/" | ||
], | ||
"sourceMaps": true, | ||
"isModule": true, | ||
"minify": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { resolve as swcResolve } from '@swc-node/register/esm' | ||
export { load } from '@swc-node/register/esm' | ||
|
||
const skipSwcSet = new Set(['bn.js']) | ||
|
||
export function resolve(specifier, context, nextResolve) { | ||
if (skipSwcSet.has(specifier)) { | ||
return nextResolve(specifier, context) | ||
} | ||
return swcResolve(specifier, context, nextResolve) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { register } from 'node:module' | ||
|
||
register('./hooks.mjs', import.meta.url) |
Oops, something went wrong.