Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

chore: Make tsc ignore dep/frontend #293

Closed
wants to merge 1 commit into from
Closed
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"lint": "run-p \"lint:*\"",
"lint:eslint": "yarn _eslint",
"lint:prettier": "yarn _prettier --check",
"lint:tsc": "tsc --noEmit --project tsconfig.json",
"lint:tsc": "tsc --noEmit --project tsconfig.excludingFrontendDependency.json",
"scripts:is-server-running": "ts-node-esm --transpileOnly scripts/is-server-running.ts",
"start:edusharing": "NODE_OPTIONS='--experimental-specifier-resolution=node' nodemon --watch src/server-utils.ts --watch src/edusharing-server --watch src/shared src/edusharing-server/start-server.ts",
"start:mongodb": "yarn scripts:is-server-running --reverse-mode 27017 && docker-compose up -d || node -e 'process.exit(0)'",
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.excludingFrontendDependency.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": "./tsconfig.json",
"include": ["next-env.d.ts", "src/**/*.{ts,tsx}"],
"exclude": ["node_modules", "dep/frontend/**/*"]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"ts-node": {
"esm": true
},
"include": ["next-env.d.ts", "src/**/*.{ts,tsx}"],
"include": ["next-env.d.ts", "src/**/*"],
"exclude": ["node_modules", "dep/frontend/node_modules"]
}
Loading