Skip to content

Commit fc35500

Browse files
Fix builds and debugger
1 parent 5c3de7e commit fc35500

3 files changed

Lines changed: 33 additions & 2 deletions

File tree

.vscode/launch.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"request": "launch",
1010
"name": "Launch Program",
1111
"program": "${workspaceFolder}/src/cli.ts",
12-
"preLaunchTask": "tsc: build - tsconfig.json",
12+
"preLaunchTask": "Build",
13+
"restart": true,
14+
"skipFiles": ["<node_internals>/**"],
1315
"args": [
1416
"-f",
1517
"openapi_temp.json",

.vscode/tasks.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "typescript",
6+
"tsconfig": "tsconfig.json",
7+
"problemMatcher": [
8+
"$tsc"
9+
],
10+
"group": "build",
11+
"label": "tsc: build - tsconfig.json"
12+
},
13+
{
14+
"type": "npm",
15+
"script": "postbuild",
16+
"group": "build",
17+
"problemMatcher": [],
18+
"label": "npm: postbuild",
19+
"detail": "npm run copy-pluggable-files"
20+
},
21+
{
22+
"label": "Build",
23+
"dependsOn": [
24+
"tsc: build - tsconfig.json",
25+
"npm: postbuild"
26+
]
27+
}
28+
]
29+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"types": "dist/cli.d.ts",
2626
"scripts": {
2727
"prepublish": "npm run build",
28-
"copy-pluggable-files": "npx copyfiles -u 1 -a \"./src/mock-generators/**/assets/**/*\" \".src/templates/**/*\" \"./build/\"",
28+
"copy-pluggable-files": "npx copyfiles -u 1 -a \"./src/mock-generators/**/assets/**/*\" \"./src/templates/**/*\" \"./build/\"",
2929
"start": "ts-node src/cli",
3030
"start:dev": "npx nodemon",
3131
"start:build": "node build/index.js",

0 commit comments

Comments
 (0)