Browse Source

refactor: Added typescript command to backend and updated docs

Owen Diffey 1 year ago
parent
commit
c60658442d
2 changed files with 3 additions and 1 deletions
  1. 1 0
      .wiki/Utility_Script.md
  2. 2 1
      backend/package.json

+ 1 - 0
.wiki/Utility_Script.md

@@ -31,6 +31,7 @@ Linux (Bash):
 | `restore` | `[file]` | Restore database from file. If file is not specified you will be prompted. |
 | `reset` | `[frontend backend redis mongo]` | Reset all data for service(s). |
 | `admin` | `<add,remove> [username]` | Assign/unassign admin role to/from user. If the username is not specified you will be prompted. |
+| `typescript` | `[frontend backend]` | Run TypeScript checks on frontend and/or backend. |
 
 ### Services
 

+ 2 - 1
backend/package.json

@@ -12,7 +12,8 @@
     "dev": "nodemon --es-module-specifier-resolution=node",
     "docker:dev": "nodemon --es-module-specifier-resolution=node --legacy-watch --no-stdin /opt/app",
     "docker:prod": "node --es-module-specifier-resolution=node /opt/app",
-    "lint": "npx eslint --cache logic"
+    "lint": "npx eslint --cache logic",
+    "typescript": "npx tsc --noEmit --skipLibCheck"
   },
   "dependencies": {
     "async": "^3.2.3",