Skip to content

Commit a6d4d05

Browse files
committed
chore: update dependencies and add type checking
- Added `fast-glob` and `gray-matter` dependencies to `package.json` and `bun.lock`. - Updated `picomatch` version in multiple dependencies. - Introduced a new script `check-types` in `package.json` for TypeScript type checking. - Updated the QA workflow to include type checking step. - Removed unused image files `mushroom.png` and `platform.png` from the repository. - Added `src/types/**/*.d.ts` to the TypeScript configuration for type definitions.
1 parent 00ce88d commit a6d4d05

7 files changed

Lines changed: 29 additions & 17 deletions

File tree

.github/workflows/qa.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ jobs:
148148
if: github.event_name == 'pull_request'
149149
id: qa-tests
150150
run: |
151+
bun run check-types
151152
bun run build
152153
env:
153154
NEXT_PUBLIC_POSTHOG_KEY: ${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}

bun.lock

Lines changed: 18 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/img/mushroom.png

-263 KB
Binary file not shown.

content/img/platform.png

-6.19 MB
Binary file not shown.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"dev": "bun generate-sdk-docs && next dev",
99
"start": "bun generate-sdk-docs && next start",
1010
"lint": "bun generate-sdk-docs && next lint",
11+
"check-types": "tsc --noEmit",
1112
"format": "prettier --write .",
1213
"postinstall": "fumadocs-mdx",
1314
"docker": "bash -c \"docker buildx build . --provenance true --sbom true --platform=linux/amd64,linux/arm64 -t ghcr.io/settlemint/btp-docs:${VERSION:-7.0.0-dev.$(date +%s)} --push --progress=plain\"",
@@ -28,11 +29,13 @@
2829
"@theguild/remark-mermaid": "0.3.0",
2930
"class-variance-authority": "0.7.1",
3031
"clsx": "2.1.1",
32+
"fast-glob": "^3.3.3",
3133
"fumadocs-core": "15.5.1",
3234
"fumadocs-docgen": "2.0.0",
3335
"fumadocs-mdx": "11.6.7",
3436
"fumadocs-twoslash": "3.1.3",
3537
"fumadocs-ui": "15.5.1",
38+
"gray-matter": "^4.0.3",
3639
"lucide-react": "0.522.0",
3740
"next": "15.3.4",
3841
"posthog-js": "1.255.1",

src/types/svg.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module "*.svg" {
2+
import type { StaticImageData } from "next/image";
3+
const content: StaticImageData;
4+
export default content;
5+
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"**/*.ts",
3131
"**/*.tsx",
3232
".next/types/**/*.ts",
33-
"eslint.config.mjs"
33+
"eslint.config.mjs",
34+
"src/types/**/*.d.ts"
3435
],
3536
"exclude": ["node_modules"]
3637
}

0 commit comments

Comments
 (0)