Skip to content

Commit

Permalink
esm
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Mar 21, 2024
1 parent 2700b8a commit baadf89
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
22 changes: 14 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,25 @@
"configurations": [
{
"name": "relayer",
"type": "node",
"type": "pwa-node",
"request": "launch",
"runtimeExecutable": "node",
"program": "${workspaceFolder}/src/index.ts",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npx",
"runtimeArgs": [
"--inspect-brk=8888",
"--nolazy",
"ts-node",
"--inspect-brk=8888"
],
"args": [
"-r",
"ts-node/register/transpile-only",
"src/index.ts"
],
"skipFiles": [
"<node_internals>/**",
"**/__awaiter**",
],
"args": ["src/index"],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": ["<node_internals>/**"]
"internalConsoleOptions": "openOnSessionStart"
}
]
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "acala-wormhole-relayer",
"version": "1.6.2",
"type": "module",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
12 changes: 9 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"outDir": "dist",
"target": "es2020",
"module": "commonjs",
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"strictNullChecks": true,
"lib": ["es2019"],
Expand All @@ -11,5 +11,11 @@
"esModuleInterop": true
},
"include": ["src"],
"exclude": ["**/__tests__/*"]
"exclude": ["**/__tests__/*"],
"ts-node": {
"transpileOnly": true,
"files": true,
"esm": true,
"experimentalSpecifierResolution": "node",
}
}

0 comments on commit baadf89

Please sign in to comment.