diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96baadc5..646075bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,8 @@ jobs: npm ci - name: Lint run: npm run lint + - name: Typecheck + run: npm run typecheck - name: Test run: npm run test - name: Build Test Site diff --git a/package.json b/package.json index 1f532b4e..b6e87747 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "pack": "mkdir -p pack && npm pack --silent --pack-destination pack >/dev/null && mv \"$(ls -t pack/*.tgz | head -n 1)\" pack/openedx-frontend-base.tgz", "prepack": "npm run build", "test": "jest", + "typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tools/tsconfig.json", "watch:build": "nodemon --exec 'npm run build'", "watch:docs": "nodemon --watch docs/template --watch README.md --exec npm run docs", "watch:pack": "nodemon --exec 'npm run pack'", diff --git a/tsconfig.json b/tsconfig.json index f0748c68..9abb32fc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "./tools/typescript/tsconfig.json", "compilerOptions": { - "outDir": "dist" + "outDir": "dist", + "rootDir": "." }, "include": [ "runtime/**/*",