Ver código fonte

chore: rename ts config

poeti8 6 anos atrás
pai
commit
b83ce016dd
4 arquivos alterados com 4 adições e 4 exclusões
  1. 1 1
      .eslintrc
  2. 2 2
      nodemon.json
  3. 1 1
      package.json
  4. 0 0
      tsconfig.json

+ 1 - 1
.eslintrc

@@ -6,7 +6,7 @@
   ],
   ],
   "parser": "@typescript-eslint/parser",
   "parser": "@typescript-eslint/parser",
   "parserOptions": {
   "parserOptions": {
-    "project": ["./tsconfig.server.json", "./client/tsconfig.json"]
+    "project": ["./tsconfig.json", "./client/tsconfig.json"]
   },
   },
   "plugins": ["@typescript-eslint"],
   "plugins": ["@typescript-eslint"],
   "rules": {
   "rules": {

+ 2 - 2
nodemon.json

@@ -1,6 +1,6 @@
 {
 {
   "watch": ["server/**/*.ts"],
   "watch": ["server/**/*.ts"],
   "execMap": {
   "execMap": {
-    "ts": "rimraf production-server && tsc --project tsconfig.server.json && copyfiles -f \"server/mail/*.html\" production-server/mail && node production-server/server.js"
+    "ts": "rimraf production-server && tsc --project tsconfig.json && copyfiles -f \"server/mail/*.html\" production-server/mail && node production-server/server.js"
   }
   }
-}
+}

+ 1 - 1
package.json

@@ -8,7 +8,7 @@
     "docker:build": "docker build -t kutt .",
     "docker:build": "docker build -t kutt .",
     "docker:run": "docker run -p 3000:3000 --env-file .env -d kutt:latest",
     "docker:run": "docker run -p 3000:3000 --env-file .env -d kutt:latest",
     "dev": "nodemon server/server.ts",
     "dev": "nodemon server/server.ts",
-    "build": "next build client/ && rimraf production-server && tsc --project tsconfig.server.json && copyfiles -f \"server/mail/*.html\" production-server/mail",
+    "build": "next build client/ && rimraf production-server && tsc --project tsconfig.json && copyfiles -f \"server/mail/*.html\" production-server/mail",
     "start": "NODE_ENV=production node production-server/server.js",
     "start": "NODE_ENV=production node production-server/server.js",
     "lint": "eslint server/ --ext .js,.ts --fix",
     "lint": "eslint server/ --ext .js,.ts --fix",
     "lint:nofix": "eslint server/ --ext .js,.ts"
     "lint:nofix": "eslint server/ --ext .js,.ts"

+ 0 - 0
tsconfig.server.json → tsconfig.json