Skip to content

Commit c01e1eb

Browse files
committed
add missing dist->cjs renames (launch.json, typedocs.js)
1 parent 6d02c4b commit c01e1eb

File tree

2 files changed

+20
-31
lines changed

2 files changed

+20
-31
lines changed

.vscode/launch.json

+19-30
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"version": "0.2.0",
66
"inputs": [
77
{
8-
"id": "getPackageName",
9-
"type": "command",
10-
"command": "shellCommand.execute",
11-
"args": {
12-
"command": "echo '${file}' | sed s/'.*sentry-javascript\\/packages\\/'// | grep --extended-regexp --only-matching --max-count 1 '[^\\/]+' | head -1",
13-
"cwd": "${workspaceFolder}" ,
14-
// normally `input` commands bring up a selector for the user, but given that there should only be one
15-
// choice here, this lets us skip the prompt
16-
"useSingleResult": true
17-
}
8+
"id": "getPackageName",
9+
"type": "command",
10+
"command": "shellCommand.execute",
11+
"args": {
12+
"command": "echo '${file}' | sed s/'.*sentry-javascript\\/packages\\/'// | grep --extended-regexp --only-matching --max-count 1 '[^\\/]+' | head -1",
13+
"cwd": "${workspaceFolder}",
14+
// normally `input` commands bring up a selector for the user, but given that there should only be one
15+
// choice here, this lets us skip the prompt
16+
"useSingleResult": true
17+
}
1818
}
1919
],
2020
"configurations": [
@@ -25,18 +25,9 @@
2525
"cwd": "${workspaceFolder}/packages/${input:getPackageName}",
2626
"request": "launch",
2727
"runtimeExecutable": "yarn",
28-
"runtimeArgs": [
29-
"rollup",
30-
"-c",
31-
"${file}"
32-
],
33-
"skipFiles": [
34-
"<node_internals>/**"
35-
],
36-
"outFiles": [
37-
"${workspaceFolder}/**/*.js",
38-
"!**/node_modules/**"
39-
],
28+
"runtimeArgs": ["rollup", "-c", "${file}"],
29+
"skipFiles": ["<node_internals>/**"],
30+
"outFiles": ["${workspaceFolder}/**/*.js", "!**/node_modules/**"],
4031
"sourceMaps": true,
4132
"smartStep": true,
4233
"internalConsoleOptions": "openOnSessionStart",
@@ -67,14 +58,13 @@
6758
],
6859
"sourceMaps": true,
6960
"smartStep": true,
70-
// otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on
71-
// "outputCapture" option here; default is to show console logs), but not both
61+
// otherwise it goes to the VSCode debug terminal, which prints the test output or console logs (depending on
62+
// "outputCapture" option here; default is to show console logs), but not both
7263
"console": "integratedTerminal",
7364
// since we're not using it, don't automatically switch to it
74-
"internalConsoleOptions": "neverOpen",
65+
"internalConsoleOptions": "neverOpen"
7566
},
7667

77-
7868
// @sentry/nextjs - Run a specific integration test file
7969
// Must have test file in currently active tab when hitting the play button, and must already have run `yarn` in test app directory
8070
{
@@ -105,18 +95,17 @@
10595
// this controls which files are sourcemapped
10696
"outFiles": [
10797
// our SDK code
108-
"${workspaceFolder}/**/dist/**/*.js",
98+
"${workspaceFolder}/**/cjs/**/*.js",
10999
// the built test app
110100
"${workspaceFolder}/packages/nextjs/test/integration/.next/**/*.js",
111101
"!**/node_modules/**"
112102
],
113103
"resolveSourceMapLocations": [
114-
"${workspaceFolder}/**/dist/**",
104+
"${workspaceFolder}/**/cjs/**",
115105
"${workspaceFolder}/packages/nextjs/test/integration/.next/**",
116106
"!**/node_modules/**"
117107
],
118108
"internalConsoleOptions": "openOnSessionStart"
119-
120-
},
109+
}
121110
]
122111
}

typedoc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
exclude: [
77
'**/test/**/*',
88
'**/*.js',
9-
'**/dist/**/*',
9+
'**/cjs/**/*',
1010
'**/esm/**/*',
1111
'**/build/**/*',
1212
'**/packages/typescript/**/*',

0 commit comments

Comments
 (0)