Skip to content

Commit c939f06

Browse files
chore: fix cli debugger setup (#425)
1 parent bac6088 commit c939f06

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.vscode/launch.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414
"type": "node",
1515
"sourceMaps": true,
1616
"outFiles": [
17-
"${workspaceFolder}/packages/cli/build/**/*.js"
17+
"${workspaceFolder}/packages/cli/build/**/*.mjs"
1818
],
1919
"resolveSourceMapLocations": [
20-
"${workspaceFolder}/packages/cli/build/**/*.js",
20+
"${workspaceFolder}/packages/cli/build/**/*.mjs",
2121
"!**/node_modules/**"
22-
]
22+
],
23+
"remoteRoot": "${workspaceFolder}/packages/cli",
24+
"localRoot": "${workspaceFolder}/packages/cli",
25+
"port": 9229
2326
}
2427
]
2528
}

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"build"
3131
],
3232
"scripts": {
33-
"lingo.dev": "node ./bin/cli.mjs",
33+
"lingo.dev": "node --inspect=9229 ./bin/cli.mjs",
3434
"dev": "tsup --watch",
3535
"build": "tsc --noEmit && tsup",
3636
"test": "vitest run",

packages/cli/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default defineConfig({
1414
cjsInterop: true,
1515
splitting: true,
1616
bundle: true,
17+
sourcemap: true,
1718
external: ["readline/promises"],
1819
noExternal: ["@lingo.dev/sdk", "@lingo.dev/spec"],
1920
outExtension: (ctx) => ({

0 commit comments

Comments
 (0)