|
2 | 2 | "version": "0.2.0", |
3 | 3 | "configurations": [ |
4 | 4 | { |
5 | | - "command": "npm run nx", |
| 5 | + "command": "pnpm run nx", |
6 | 6 | "name": "Run nx", |
7 | 7 | "request": "launch", |
8 | 8 | "type": "node-terminal" |
9 | 9 | }, |
10 | 10 | { |
11 | | - "command": "npm run commit", |
| 11 | + "command": "pnpm run commit", |
12 | 12 | "name": "Run commit", |
13 | 13 | "request": "launch", |
14 | 14 | "type": "node-terminal" |
15 | 15 | }, |
16 | 16 | { |
17 | | - "command": "npm run docs", |
| 17 | + "command": "pnpm run docs", |
18 | 18 | "name": "Run docs", |
19 | 19 | "request": "launch", |
20 | 20 | "type": "node-terminal" |
21 | 21 | }, |
22 | 22 | { |
23 | | - "command": "npm run e2e:test", |
24 | | - "name": "Run e2e:test", |
25 | | - "request": "launch", |
26 | | - "type": "node-terminal" |
27 | | - }, |
28 | | - { |
29 | | - "command": "npm run lint", |
| 23 | + "command": "pnpm run lint", |
30 | 24 | "name": "Run lint", |
31 | 25 | "request": "launch", |
32 | 26 | "type": "node-terminal" |
33 | 27 | }, |
34 | 28 | { |
35 | | - "command": "npm run test", |
36 | | - "name": "Run test", |
37 | | - "request": "launch", |
38 | | - "type": "node-terminal" |
39 | | - }, |
40 | | - { |
41 | | - "command": "npm run build", |
| 29 | + "command": "pnpm run build", |
42 | 30 | "name": "Run build", |
43 | 31 | "request": "launch", |
44 | 32 | "type": "node-terminal" |
45 | 33 | }, |
46 | 34 | { |
47 | | - "command": "npm run lint-fix", |
| 35 | + "command": "pnpm run lint-fix", |
48 | 36 | "name": "Run lint-fix", |
49 | 37 | "request": "launch", |
50 | 38 | "type": "node-terminal" |
51 | 39 | }, |
52 | 40 | { |
53 | | - "command": "npm run trigger-release", |
| 41 | + "command": "pnpm run trigger-release", |
54 | 42 | "name": "Run trigger-release", |
55 | 43 | "request": "launch", |
56 | 44 | "type": "node-terminal" |
57 | 45 | }, |
58 | 46 | { |
59 | | - "command": "npm run serve:next", |
| 47 | + "command": "pnpm run serve:next", |
60 | 48 | "name": "Run serve:next", |
61 | 49 | "request": "launch", |
62 | 50 | "type": "node-terminal" |
63 | 51 | }, |
64 | 52 | { |
65 | | - "command": "npm run serve:website", |
| 53 | + "command": "pnpm run serve:website", |
66 | 54 | "name": "Run serve:website", |
67 | 55 | "request": "launch", |
68 | 56 | "type": "node-terminal" |
69 | 57 | }, |
70 | 58 | { |
71 | | - "command": "npm run build:website", |
| 59 | + "command": "pnpm run build:website", |
72 | 60 | "name": "Run build:website", |
73 | 61 | "request": "launch", |
74 | 62 | "type": "node-terminal" |
75 | 63 | }, |
76 | 64 | { |
77 | | - "command": "npm run extract-i18n:website", |
| 65 | + "command": "pnpm run extract-i18n:website", |
78 | 66 | "name": "Run extract-i18n:website", |
79 | 67 | "request": "launch", |
80 | 68 | "type": "node-terminal" |
81 | 69 | }, |
82 | 70 | { |
83 | | - "command": "npm run postinstall", |
84 | | - "name": "Run postinstall", |
85 | | - "request": "launch", |
86 | | - "type": "node-terminal" |
87 | | - }, |
88 | | - { |
89 | | - "command": "npm run sync:types:webpack", |
90 | | - "name": "Run sync:types:webpack", |
91 | | - "request": "launch", |
92 | | - "type": "node-terminal" |
93 | | - }, |
94 | | - { |
95 | | - "command": "npm run sync:pullMFTypes", |
| 71 | + "command": "pnpm run sync:pullMFTypes", |
96 | 72 | "name": "Run sync:pullMFTypes", |
97 | 73 | "request": "launch", |
98 | 74 | "type": "node-terminal" |
99 | 75 | }, |
100 | 76 | { |
101 | | - "command": "npm run app:next:dev", |
| 77 | + "command": "pnpm run app:next:dev", |
102 | 78 | "name": "Run app:next:dev", |
103 | 79 | "request": "launch", |
104 | 80 | "type": "node-terminal" |
105 | 81 | }, |
106 | 82 | { |
107 | | - "command": "npm run app:next:prod", |
| 83 | + "command": "pnpm run app:next:prod", |
108 | 84 | "name": "Run app:next:prod", |
109 | 85 | "request": "launch", |
110 | 86 | "type": "node-terminal" |
| 87 | + }, |
| 88 | + { |
| 89 | + "name": "Debug Enhanced Tests", |
| 90 | + "type": "node", |
| 91 | + "request": "launch", |
| 92 | + "preLaunchTask": "pnpm-build-enhanced", |
| 93 | + "runtimeExecutable": "/Users/bytedance/.nvm/versions/node/v18.20.8/bin/node", |
| 94 | + "runtimeArgs": [ |
| 95 | + "${workspaceFolder}/node_modules/jest/bin/jest.js", |
| 96 | + "test/ConfigTestCases.basictest.js", |
| 97 | + "test/unit", |
| 98 | + "--runInBand", |
| 99 | + "--no-cache" |
| 100 | + ], |
| 101 | + "cwd": "${workspaceFolder}/packages/enhanced", |
| 102 | + "console": "integratedTerminal", |
| 103 | + "internalConsoleOptions": "neverOpen", |
| 104 | + "env": { |
| 105 | + "NODE_OPTIONS": "--experimental-vm-modules" |
| 106 | + }, |
| 107 | + "skipFiles": ["<node_internals>/**"], |
| 108 | + "outFiles": ["${workspaceFolder}/packages/enhanced/dist/**/*.js"], |
| 109 | + "sourceMaps": true |
| 110 | + }, |
| 111 | + { |
| 112 | + "name": "Debug Current Test File", |
| 113 | + "type": "node", |
| 114 | + "request": "launch", |
| 115 | + "runtimeExecutable": "pnpm", |
| 116 | + "runtimeArgs": [ |
| 117 | + "nx", |
| 118 | + "test", |
| 119 | + "${relativeFileDirname}", |
| 120 | + "--testFile=${fileBasename}", |
| 121 | + "--runInBand", |
| 122 | + "--no-cache" |
| 123 | + ], |
| 124 | + "console": "integratedTerminal", |
| 125 | + "internalConsoleOptions": "neverOpen", |
| 126 | + "skipFiles": ["<node_internals>/**"], |
| 127 | + "env": { |
| 128 | + "NODE_ENV": "test" |
| 129 | + } |
| 130 | + }, |
| 131 | + { |
| 132 | + "name": "Debug Package Tests", |
| 133 | + "type": "node", |
| 134 | + "request": "launch", |
| 135 | + "runtimeExecutable": "pnpm", |
| 136 | + "runtimeArgs": [ |
| 137 | + "nx", |
| 138 | + "test", |
| 139 | + "${input:package}", |
| 140 | + "--runInBand", |
| 141 | + "--no-cache" |
| 142 | + ], |
| 143 | + "console": "integratedTerminal", |
| 144 | + "internalConsoleOptions": "neverOpen", |
| 145 | + "skipFiles": ["<node_internals>/**"], |
| 146 | + "env": { |
| 147 | + "NODE_ENV": "test" |
| 148 | + } |
| 149 | + }, |
| 150 | + { |
| 151 | + "name": "Debug All Tests", |
| 152 | + "type": "node", |
| 153 | + "request": "launch", |
| 154 | + "runtimeExecutable": "pnpm", |
| 155 | + "runtimeArgs": [ |
| 156 | + "nx", |
| 157 | + "run-many", |
| 158 | + "--target=test", |
| 159 | + "--runInBand", |
| 160 | + "--no-cache" |
| 161 | + ], |
| 162 | + "console": "integratedTerminal", |
| 163 | + "internalConsoleOptions": "neverOpen", |
| 164 | + "skipFiles": ["<node_internals>/**"], |
| 165 | + "env": { |
| 166 | + "NODE_ENV": "test" |
| 167 | + } |
| 168 | + } |
| 169 | + ], |
| 170 | + "inputs": [ |
| 171 | + { |
| 172 | + "id": "package", |
| 173 | + "type": "promptString", |
| 174 | + "description": "Enter the package name to test (e.g., enhanced, cli, runtime)" |
111 | 175 | } |
112 | 176 | ] |
113 | 177 | } |
0 commit comments