Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/test-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
run: pnpm build

- name: Type check
run: pnpm run type-check
run: pnpm type-check

- name: Run tests
run: pnpm test
5 changes: 5 additions & 0 deletions apps/docs/css.modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ declare module '*.module.css' {
const classes: { readonly [key: string]: string };
export default classes;
}

declare module '*.module.scss' {
const classes: { readonly [key: string]: string };
export default classes;
}
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"clean": "rm -rf .turbo && rm -rf node_modules",
"chromatic": "pnpm dlx chromatic --exit-zero-on-changes --config-file 'chromatic.config.json'",
"test": "VITEST_CHROMIUM_GC_DISK_THRESHOLD_GB=100000 vitest run",
"test-storybook": "vitest --project=storybook"
"type-check": "tsgo --noEmit"
},
"dependencies": {
"@radix-ui/react-tabs": "^1.1.19",
Expand Down
5 changes: 5 additions & 0 deletions apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"extends": "@repo/typescript-config/react-library.json",
"compilerOptions": {
"paths": {
"@signozhq/ui": ["../../packages/ui/src/index.ts"]
}
},
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "turbo run build",
"publint": "turbo run publint",
"dev": "turbo run dev",
"type-check": "tsgo --noEmit -p tsconfig.json",
"type-check": "turbo run type-check",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"clean": "turbo run clean && rm -rf node_modules",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-config/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"preserveWatchOutput": true,
"skipLibCheck": true,
"strict": true,
"lib": ["dom", "ES2018"],
"lib": ["dom", "ES2022"],
"target": "es2018"
},
"exclude": ["node_modules"]
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@
"test": "vitest run",
"test:run": "vitest run",
"tokens": "node scripts/extract-css-tokens.mjs",
"tokens:check": "node scripts/extract-css-tokens.mjs --check"
"tokens:check": "node scripts/extract-css-tokens.mjs --check",
"type-check": "tsgo --noEmit"
},
"dependencies": {
"@chenglou/pretext": "^0.0.8",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"node_modules",
"src/**/*.test.ts",
"src/**/*.test.tsx",
"src/**/*.test-utils.tsx"
"src/**/*.test-utils.tsx",
"src/__tests__"
],
"compilerOptions": {
"rootDir": "src",
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
// The Playwright container image points browsers at /ms-playwright; strict
// env mode would otherwise hide it and Playwright would look under $HOME.
"passThroughEnv": ["PLAYWRIGHT_BROWSERS_PATH"]
}
},
"type-check": {}
}
}
Loading