diff --git a/.github/workflows/check_types.yml b/.github/workflows/check_types.yml new file mode 100644 index 00000000..760172da --- /dev/null +++ b/.github/workflows/check_types.yml @@ -0,0 +1,30 @@ +name: Run Type Check + +on: + workflow_dispatch: + push: + paths-ignore: + - '**/*.md' + pull_request: + paths-ignore: + - '**/*.md' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run check-types + diff --git a/.github/workflows/build_lint.yml b/.github/workflows/lint.yml similarity index 86% rename from .github/workflows/build_lint.yml rename to .github/workflows/lint.yml index 59b1a205..e0d63122 100644 --- a/.github/workflows/build_lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: NPM Build & Lint +name: Run Code Linter on: workflow_dispatch: @@ -25,9 +25,6 @@ jobs: - name: Install dependencies run: npm install - - name: Build - run: npm run build - - name: Lint run: npm run lint diff --git a/package.json b/package.json index e9f5feac..e6ad0736 100644 --- a/package.json +++ b/package.json @@ -6,20 +6,21 @@ "scripts": { "setup": "npm i", "lint": "npx @biomejs/biome lint ./", + "check-types": "npx tsc -noEmit -p tsconfig.types.json", "build": "node ./build.mjs", "buildinfo": "node ./build.mjs --verbose" }, "devDependencies": { - "@biomejs/biome": "^1.8.3", - "@types/node": "22.10.2", + "@biomejs/biome": "^1.9.4", + "@types/node": "22.10.5", "@types/ws": "~8.5", "archiver": "^6.0", "fs-extra": "~11.2", "ignore": "^5.2", "tsyringe": "~4.8", - "typescript": "~5.5", + "typescript": "5.7.3", "winston": "~3.13" }, "author": "Fika", "license": "CC-BY-NC-SA-4.0" -} \ No newline at end of file +} diff --git a/tsconfig.types.json b/tsconfig.types.json new file mode 100644 index 00000000..8b2c3a07 --- /dev/null +++ b/tsconfig.types.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "skipLibCheck": true + } +}