diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f62da4b..b2f6d7d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: submodules: true - name: Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.bun/install/cache key: ${{ runner.os }}-pnpm-${{ hashFiles('**/bun.lockb') }} @@ -24,8 +24,11 @@ jobs: - name: Install Dependencies run: bun i + - name: Check style + run: bun run lint + - name: Check for errors - run: bun check + run: bun run check - name: Build - run: bun build + run: bun run build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 146cd20..9852a98 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: submodules: true - name: Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.bun/install/cache key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} @@ -21,5 +21,11 @@ jobs: - name: Install bun uses: oven-sh/setup-bun@v2 + - name: Install dependencies + run: bun i + + - name: Check types + run: bun run check + - name: Check style run: bun run lint diff --git a/bun.lockb b/bun.lockb index bdedac1..4f2de7f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 5d05f8e..9ca797e 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "devDependencies": { "@sveltejs/adapter-static": "^1.0.0", "@sveltejs/kit": "^1.0.1", - "@types/highlight.js": "^10.1.0", + "@types/highlightjs": "^9.12.6", "@types/html-minifier": "^4.0.2", "@types/showdown": "^2.0.6", "autoprefixer": "^10.4.13", @@ -30,8 +30,14 @@ "postcss-scss": "^4.0.6", "prettier": "^2.8.1", "prettier-plugin-svelte": "^2.9.0", + "rehype-highlight": "^7.0.0", + "rehype-raw": "^7.0.0", + "rehype-shift-heading": "^2.0.0", + "rehype-stringify": "^10.0.0", "remark-frontmatter": "^5.0.0", "remark-html": "^16.0.1", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.1.0", "sass": "^1.57.1", "showdown": "^2.1.0", "svelte": "^3.55.0",