Skip to content

Commit edcfc0e

Browse files
authored
Small repo chores (#1289)
1 parent 3f15dfa commit edcfc0e

File tree

14 files changed

+47
-47
lines changed

14 files changed

+47
-47
lines changed

.vscode/launch.json

Lines changed: 32 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,76 +4,64 @@
44
{
55
"type": "node",
66
"request": "launch",
7-
"name": "Jest Current File",
8-
"program": "${workspaceFolder}/node_modules/.bin/jest",
9-
"args": ["--testTimeout=100000", "--findRelatedTests", "${relativeFile}"],
10-
"console": "integratedTerminal",
11-
"internalConsoleOptions": "neverOpen",
12-
"skipFiles": ["<node_internals>/**"]
13-
},
14-
{
15-
"type": "node",
16-
"request": "launch",
17-
"name": "Jest Watch Current File",
7+
"name": "Jest - run only related tests for current file",
188
"program": "${workspaceFolder}/node_modules/.bin/jest",
199
"args": [
2010
"--testTimeout=100000",
21-
"--watch",
2211
"--findRelatedTests",
23-
"${relativeFile}"
12+
"--runInBand",
13+
"--verbose",
14+
"${relativeFile}",
15+
"${input:additionalJestArgs}"
2416
],
2517
"console": "integratedTerminal",
2618
"internalConsoleOptions": "neverOpen",
2719
"skipFiles": ["<node_internals>/**"]
2820
},
2921
{
30-
"name": "Run Jest Tests for Current Package",
22+
"name": "Jest - run _all_ tests for current file's package",
3123
"type": "node",
3224
"request": "launch",
3325
"program": "${workspaceFolder}/node_modules/.bin/jest",
34-
"args": ["--testTimeout=100000"],
35-
"console": "integratedTerminal",
36-
"internalConsoleOptions": "neverOpen",
37-
"cwd": "${fileDirname}"
38-
},
39-
{
40-
"type": "node",
41-
"name": "Jest All",
42-
"request": "launch",
43-
"args": [
44-
"--testTimeout=100000",
45-
"-c",
46-
"${workspaceFolder}/jest.config.js"
47-
],
48-
"cwd": "${workspaceFolder}",
49-
"console": "integratedTerminal",
50-
"internalConsoleOptions": "neverOpen",
51-
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
52-
"skipFiles": ["<node_internals>/**"]
53-
},
54-
{
55-
"type": "node",
56-
"name": "Jest All: Browser",
57-
"request": "launch",
5826
"args": [
5927
"--testTimeout=100000",
60-
"-c",
61-
"${workspaceFolder}/packages/browser/jest.config.js"
28+
"--runInBand",
29+
"${input:additionalJestArgs}"
6230
],
63-
"cwd": "${workspaceFolder}",
6431
"console": "integratedTerminal",
6532
"internalConsoleOptions": "neverOpen",
66-
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
67-
"skipFiles": ["<node_internals>/**"]
33+
"skipFiles": ["<node_internals>/**"],
34+
"cwd": "${fileDirname}"
6835
},
6936
{
70-
"name": "ts-node Current File",
37+
"name": "ts-node - execute current .ts file/script",
7138
"type": "node",
7239
"request": "launch",
7340
"args": ["${relativeFile}"],
7441
"runtimeArgs": ["-r", "ts-node/register"],
7542
"cwd": "${workspaceRoot}",
7643
"internalConsoleOptions": "openOnSessionStart"
7744
}
45+
],
46+
"inputs": [
47+
{
48+
"id": "additionalJestArgs",
49+
"type": "pickString",
50+
"description": "(Optional) Select additional Jest arguments",
51+
"options": [
52+
{ "label": "none", "value": "" },
53+
{ "label": "", "value": "--watch" },
54+
{ "label": "", "value": "--updateSnapshot" },
55+
{ "label": "", "value": "--coverage" },
56+
{ "label": "", "value": "--runInBand" }
57+
],
58+
"default": ""
59+
},
60+
{
61+
"id": "packageName",
62+
"type": "pickString",
63+
"description": "Select a package to debug",
64+
"options": ["@segment/analytics-", "package-b", "package-c"]
65+
}
7866
]
7967
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
"test:check-dts": "yarn build && yarn ts-node meta-tests/check-dts.ts",
1818
"test:node-int": "turbo run --filter=node-integration-tests test",
1919
"lint": "yarn constraints && turbo run lint --continue",
20+
"typecheck": "turbo run tsc --filter='./packages/**'",
2021
"build": "turbo run build --filter='./packages/**'",
2122
"watch": "turbo run watch --filter='./packages/**'",
2223
"dev": "yarn workspace @playground/next-playground run dev",
23-
"prepush": "turbo run lint --filter='...[master...HEAD]'",
24+
"prepush": "turbo run tsc --affected",
2425
"postinstall": "husky install",
2526
"changeset": "changeset",
2627
"update-versions-and-changelogs": "changeset version && yarn version-run-all && bash scripts/update-lockfile.sh",

packages/browser/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**", "**/test-helpers/**", "**/tester/**"],
55
"compilerOptions": {
6+
"noEmit": false,
67
"outDir": "./dist/pkg",
78
"declarationDir": "./dist/types"
89
}

packages/consent/consent-tools/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**"],
55
"compilerOptions": {
6+
"noEmit": false,
67
"outDir": "./dist/esm",
78
"declarationDir": "./dist/types"
89
}

packages/consent/consent-wrapper-onetrust/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**", "**/test-helpers/**"],
55
"compilerOptions": {
6+
"noEmit": false,
67
"outDir": "./dist/esm",
78
"declarationDir": "./dist/types"
89
}

packages/core/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**", "**/*.test.*"],
55
"compilerOptions": {
6+
"noEmit": false,
67
"outDir": "./dist/esm",
78
"declarationDir": "./dist/types"
89
}

packages/generic-utils/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**", "**/*.test.*"],
55
"compilerOptions": {
6+
"noEmit": false,
67
"outDir": "./dist/esm",
78
"declarationDir": "./dist/types"
89
}

packages/node/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**"],
55
"compilerOptions": {
6+
"noEmit": false,
67
"outDir": "./dist/esm",
78
"declarationDir": "./dist/types"
89
}

packages/page-tools/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**"],
55
"compilerOptions": {
6+
"noEmit": false
67
// Options tsup Ignores:
78
// module: tsup always outputs ESM or CommonJS based on its --format option.
89
// outDir: tsup uses its own --out-dir option to control output.

packages/signals/signals-runtime/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["src"],
44
"exclude": ["**/__tests__/**", "**/test-helpers/**"],
55
"compilerOptions": {
6+
"noEmit": false,
67
"outDir": "./dist/esm",
78
"declarationDir": "./dist/types"
89
}

0 commit comments

Comments
 (0)