Skip to content

Commit 867c8b6

Browse files
authored
feat: Add build:watch command, Add lauch command to debug tests (#1430)
1 parent 21531ce commit 867c8b6

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

.vscode/launch.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// Use IntelliSense to learn about possible Node.js debug attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"cwd": "${workspaceFolder}/packages/node",
11+
"name": "Debug @sentry/node",
12+
"preLaunchTask": "",
13+
"program": "${workspaceRoot}/node_modules/.bin/jest",
14+
"args": [
15+
"--config",
16+
"${workspaceRoot}/packages/node/package.json",
17+
"--runInBand",
18+
"${relativeFile}"
19+
],
20+
"sourceMaps": true,
21+
"smartStep": true,
22+
"outFiles": ["${workspaceRoot}/packages/node/dist"]
23+
}
24+
]
25+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"private": true,
33
"scripts": {
44
"build": "lerna run --stream --concurrency 1 --sort build",
5+
"build:watch": "lerna run build:watch --stream --no-sort --concurrency 9999",
56
"clean": "lerna run --stream clean",
67
"fix": "lerna run --stream --concurrency 1 fix",
78
"lint": "lerna run --stream --concurrency 1 lint",

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
},
3232
"scripts": {
3333
"build": "tsc -p tsconfig.build.json",
34+
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3435
"clean": "rimraf dist coverage",
3536
"lint": "run-s lint:prettier lint:tslint",
3637
"lint:prettier": "prettier-check '{src,test}/**/*.ts'",

packages/hub/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"scripts": {
3131
"build": "tsc -p tsconfig.build.json",
32+
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3233
"clean": "rimraf dist coverage",
3334
"lint": "run-s lint:prettier lint:tslint",
3435
"lint:prettier": "prettier-check '{src,test}/**/*.ts'",

packages/minimal/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"scripts": {
3131
"build": "tsc -p tsconfig.build.json",
32+
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3233
"clean": "rimraf dist coverage",
3334
"lint": "run-s lint:prettier lint:tslint",
3435
"lint:prettier": "prettier-check '{src,test}/**/*.ts'",

packages/node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"scripts": {
3535
"build": "tsc -p tsconfig.build.json",
36+
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3637
"clean": "rimraf dist coverage",
3738
"lint": "run-s lint:prettier lint:tslint",
3839
"lint:prettier": "prettier-check '{src,test}/**/*.ts'",

packages/types/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"scripts": {
2525
"build": "tsc -p tsconfig.build.json",
26+
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
2627
"lint": "run-s lint:prettier lint:tslint",
2728
"lint:prettier": "prettier-check '{src,test}/**/*.ts'",
2829
"lint:tslint": "tslint -t stylish -p .",

packages/utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
},
2828
"scripts": {
2929
"build": "tsc -p tsconfig.build.json",
30+
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
3031
"clean": "rimraf dist coverage *.js *.js.map *.d.ts",
3132
"lint": "run-s lint:prettier lint:tslint",
3233
"lint:prettier": "prettier-check '{src,test}/**/*.ts'",

0 commit comments

Comments
 (0)