Skip to content
Open
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
],
"scripts": {
"foreach": "yarn workspaces foreach --no-private --parallel --verbose",
"build:tsc": "tsc --build --verbose",
"build": "yarn run build:tsc",
"build:watch": "concurrently --raw --kill-others 'tsc --build --verbose --watch --inlineSourceMap'",
"build:clean": "tsc --build --clean && yarn workspaces foreach exec rm -rf dist",
"version": "yarn changeset version && yarn install --mode=update-lockfile",
"publish": "yarn foreach npm publish --tolerate-republish",
"postinstall": "yarn foreach run prepack",
Expand All @@ -16,6 +20,7 @@
"@changesets/cli": "^2.26.0",
"@flex-development/toggle-pkg-type": "^1.0.1",
"@vitest/coverage-v8": "^2.1.1",
"concurrently": "^9.1.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocker: This package is not being used so it can be removed.

"danger": "^11.2.3",
"duti": "^0.15.2",
"esbuild": "^0.17.5",
Expand All @@ -25,6 +30,8 @@
"glob": "^8.1.0",
"minimist": "^1.2.7",
"prettier": "^2.8.3",
"tsx": "^4.19.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocker: This package is not being used so it can be removed.

"typescript": "^5.7.3",
"vitest": "^2.1.1"
},
"packageManager": "yarn@3.3.1"
Expand Down
7 changes: 7 additions & 0 deletions packages/client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["../../tsconfig.all.jsonc"],
"include": ["src/**/*"],
"compilerOptions": {
"tsBuildInfoFile": "../../node_modules/.buildinfo/client"
}
}
7 changes: 7 additions & 0 deletions packages/export/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["../../tsconfig.all.jsonc"],
"include": ["src/**/*"],
"compilerOptions": {
"tsBuildInfoFile": "../../node_modules/.buildinfo/export"
}
}
7 changes: 7 additions & 0 deletions packages/provider-elasticsearch/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["../../tsconfig.all.jsonc"],
"include": ["src/**/*"],
"compilerOptions": {
"tsBuildInfoFile": "../../node_modules/.buildinfo/provider-elasticsearch"
}
}
2 changes: 1 addition & 1 deletion packages/provider-mongo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
},
"devDependencies": {
"contexture": "^0.12.23",
"mongodb-memory-server": "^9.1.1"
"mongodb-memory-server": "^10.1.4"
}
}
7 changes: 7 additions & 0 deletions packages/provider-mongo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["../../tsconfig.all.jsonc"],
"include": ["src/**/*"],
"compilerOptions": {
"tsBuildInfoFile": "../../node_modules/.buildinfo/provider-mongo"
}
}
7 changes: 7 additions & 0 deletions packages/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["../../tsconfig.all.jsonc"],
"include": ["src/**/*"],
"compilerOptions": {
"tsBuildInfoFile": "../../node_modules/.buildinfo/server"
}
}
7 changes: 7 additions & 0 deletions packages/util/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["../../tsconfig.all.jsonc"],
"include": ["src/**/*"],
"compilerOptions": {
"tsBuildInfoFile": "../../node_modules/.buildinfo/util"
}
}
26 changes: 26 additions & 0 deletions tsconfig.all.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"compilerOptions": {
"allowUnreachableCode": false, // Prevents accidental execution of unreachable code.
"allowUnusedLabels": false, // Disallows unused labels to avoid confusion in code.
"noFallthroughCasesInSwitch": true, // Ensures every switch case explicitly handles its execution flow.
"noUnusedLocals": true, // Reports unused local variables to keep the code clean.
"noErrorTruncation": true, // Prevents truncation of error messages for better debugging.
"isolatedModules": true, // Ensures each module can be transpiled independently for better tooling support.
"verbatimModuleSyntax": true, // Enforces explicit use of `type` imports for type-only dependencies.
"module": "nodenext", // Uses the ES module system compatible with Node.js.
"moduleResolution": "nodenext", // Resolves modules as per Node.js ESM standards.
"resolveJsonModule": true, // Allows importing JSON files as modules.
"types": ["vite/client", "vitest/globals", "node", "vitest"], // Provides Node.js global types and includes Vitest types.
"jsx": "react", // Specifies JSX transformation method for React applications.
"noEmitOnError": true, // Prevents output generation if there are TypeScript errors.
"incremental": true, // Enables incremental builds for better performance.
"skipLibCheck": true, // Skips type checking of library declaration files to speed up compilation.
"allowJs": true, // Allows TypeScript to compile JavaScript files.
"checkJs": false, // Disables type checking on .js files.
"noImplicitReturns": true, // Ensures all functions return a value (e.g., prevents missing return in `if` branches).
"noUncheckedIndexedAccess": true, // Forces explicit undefined checks when accessing arrays or objects.
"noUnusedParameters": true, // Ensures function parameters are used (reports unused ones).
"strict": true, // Enables all strict type-checking options (includes `strictNullChecks`, `noImplicitAny`, etc.).
"outDir": "dist" // Specifies the output directory for compiled files.
}
}
14 changes: 14 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Good reference for project references in a monorepo setting
// https://moonrepo.dev/docs/guides/javascript/typescript-project-refs
{
// Do not doubly build files (they're already being built via references).
"files": [],
"references": [
{ "path": "./packages/client/tsconfig.json" },
{ "path": "./packages/export/tsconfig.json" },
{ "path": "./packages/provider-elasticsearch/tsconfig.json" },
{ "path": "./packages/provider-mongo/tsconfig.json" },
{ "path": "./packages/server/tsconfig.json" },
{ "path": "./packages/util/tsconfig.json" }
]
}
Loading