|
5 | 5 | "version": "0.2.0", |
6 | 6 | "inputs": [ |
7 | 7 | { |
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 | + } |
18 | 18 | } |
19 | 19 | ], |
20 | 20 | "configurations": [ |
|
25 | 25 | "cwd": "${workspaceFolder}/packages/${input:getPackageName}", |
26 | 26 | "request": "launch", |
27 | 27 | "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/**"], |
40 | 31 | "sourceMaps": true, |
41 | 32 | "smartStep": true, |
42 | 33 | "internalConsoleOptions": "openOnSessionStart", |
|
67 | 58 | ], |
68 | 59 | "sourceMaps": true, |
69 | 60 | "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 |
72 | 63 | "console": "integratedTerminal", |
73 | 64 | // since we're not using it, don't automatically switch to it |
74 | | - "internalConsoleOptions": "neverOpen", |
| 65 | + "internalConsoleOptions": "neverOpen" |
75 | 66 | }, |
76 | 67 |
|
77 | | - |
78 | 68 | // @sentry/nextjs - Run a specific integration test file |
79 | 69 | // Must have test file in currently active tab when hitting the play button, and must already have run `yarn` in test app directory |
80 | 70 | { |
|
105 | 95 | // this controls which files are sourcemapped |
106 | 96 | "outFiles": [ |
107 | 97 | // our SDK code |
108 | | - "${workspaceFolder}/**/dist/**/*.js", |
| 98 | + "${workspaceFolder}/**/cjs/**/*.js", |
109 | 99 | // the built test app |
110 | 100 | "${workspaceFolder}/packages/nextjs/test/integration/.next/**/*.js", |
111 | 101 | "!**/node_modules/**" |
112 | 102 | ], |
113 | 103 | "resolveSourceMapLocations": [ |
114 | | - "${workspaceFolder}/**/dist/**", |
| 104 | + "${workspaceFolder}/**/cjs/**", |
115 | 105 | "${workspaceFolder}/packages/nextjs/test/integration/.next/**", |
116 | 106 | "!**/node_modules/**" |
117 | 107 | ], |
118 | 108 | "internalConsoleOptions": "openOnSessionStart" |
119 | | - |
120 | | - }, |
| 109 | + } |
121 | 110 | ] |
122 | 111 | } |
0 commit comments