Skip to content

Small repo chores #1289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 32 additions & 44 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,64 @@
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--testTimeout=100000", "--findRelatedTests", "${relativeFile}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"request": "launch",
"name": "Jest Watch Current File",
"name": "Jest - run only related tests for current file",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--testTimeout=100000",
"--watch",
"--findRelatedTests",
"${relativeFile}"
"--runInBand",
"--verbose",
"${relativeFile}",
"${input:additionalJestArgs}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": ["<node_internals>/**"]
},
{
"name": "Run Jest Tests for Current Package",
"name": "Jest - run _all_ tests for current file's package",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--testTimeout=100000"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"cwd": "${fileDirname}"
},
{
"type": "node",
"name": "Jest All",
"request": "launch",
"args": [
"--testTimeout=100000",
"-c",
"${workspaceFolder}/jest.config.js"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"name": "Jest All: Browser",
"request": "launch",
"args": [
"--testTimeout=100000",
"-c",
"${workspaceFolder}/packages/browser/jest.config.js"
"--runInBand",
"${input:additionalJestArgs}"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"skipFiles": ["<node_internals>/**"]
"skipFiles": ["<node_internals>/**"],
"cwd": "${fileDirname}"
},
{
"name": "ts-node Current File",
"name": "ts-node - execute current .ts file/script",
"type": "node",
"request": "launch",
"args": ["${relativeFile}"],
"runtimeArgs": ["-r", "ts-node/register"],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart"
}
],
"inputs": [
{
"id": "additionalJestArgs",
"type": "pickString",
"description": "(Optional) Select additional Jest arguments",
"options": [
{ "label": "none", "value": "" },
{ "label": "", "value": "--watch" },
{ "label": "", "value": "--updateSnapshot" },
{ "label": "", "value": "--coverage" },
{ "label": "", "value": "--runInBand" }
],
"default": ""
},
{
"id": "packageName",
"type": "pickString",
"description": "Select a package to debug",
"options": ["@segment/analytics-", "package-b", "package-c"]
}
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
"test:check-dts": "yarn build && yarn ts-node meta-tests/check-dts.ts",
"test:node-int": "turbo run --filter=node-integration-tests test",
"lint": "yarn constraints && turbo run lint --continue",
"typecheck": "turbo run tsc --filter='./packages/**'",
"build": "turbo run build --filter='./packages/**'",
"watch": "turbo run watch --filter='./packages/**'",
"dev": "yarn workspace @playground/next-playground run dev",
"prepush": "turbo run lint --filter='...[master...HEAD]'",
"prepush": "turbo run tsc --affected",
"postinstall": "husky install",
"changeset": "changeset",
"update-versions-and-changelogs": "changeset version && yarn version-run-all && bash scripts/update-lockfile.sh",
Expand Down
1 change: 1 addition & 0 deletions packages/browser/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**", "**/test-helpers/**", "**/tester/**"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/pkg",
"declarationDir": "./dist/types"
}
Expand Down
1 change: 1 addition & 0 deletions packages/consent/consent-tools/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/esm",
"declarationDir": "./dist/types"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**", "**/test-helpers/**"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/esm",
"declarationDir": "./dist/types"
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**", "**/*.test.*"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/esm",
"declarationDir": "./dist/types"
}
Expand Down
1 change: 1 addition & 0 deletions packages/generic-utils/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**", "**/*.test.*"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/esm",
"declarationDir": "./dist/types"
}
Expand Down
1 change: 1 addition & 0 deletions packages/node/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/esm",
"declarationDir": "./dist/types"
}
Expand Down
1 change: 1 addition & 0 deletions packages/page-tools/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**"],
"compilerOptions": {
"noEmit": false
// Options tsup Ignores:
// module: tsup always outputs ESM or CommonJS based on its --format option.
// outDir: tsup uses its own --out-dir option to control output.
Expand Down
1 change: 1 addition & 0 deletions packages/signals/signals-runtime/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**", "**/test-helpers/**"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/esm",
"declarationDir": "./dist/types"
}
Expand Down
1 change: 1 addition & 0 deletions packages/signals/signals/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**", "**/test-helpers/**"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/esm",
"declarationDir": "./dist/types"
}
Expand Down
1 change: 1 addition & 0 deletions packages/test-helpers/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"include": ["src"],
"exclude": ["**/__tests__/**", "**/*.test.*"],
"compilerOptions": {
"noEmit": false,
"outDir": "./dist/esm",
"declarationDir": "./dist/types"
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"importHelpers": true
"importHelpers": true,
"noEmit": true
},
"ts-node": {
"transpileOnly": true,
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]
},
"tsc": {
"cache": false
"dependsOn": ["^build:esm"]
},
"assert-generated": {
"cache": false
Expand Down