diff --git a/nodemon.json b/nodemon.json index ed1a185..a404466 100644 --- a/nodemon.json +++ b/nodemon.json @@ -1,4 +1,4 @@ { - "ext": "ts", - "exec": "ts-node src/server.ts" -} + "ext": "ts", + "exec": "ts-node src/server.ts" +} \ No newline at end of file diff --git a/package.json b/package.json index 712f0bd..fc0e2f4 100644 --- a/package.json +++ b/package.json @@ -1,46 +1,46 @@ { - "name": "summer-dci", - "description": "", - "version": "1.0.0", - "main": "dist/server.js", - "scripts": { - "dev": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts nodemon", - "build:payload": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload build", - "build:server": "tsc", - "build": "yarn copyfiles && yarn build:payload && yarn build:server", - "serve": "cross-env PAYLOAD_CONFIG_PATH=dist/payload.config.js NODE_ENV=production node dist/server.js", - "copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png}\" dist/", - "generate:types": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types", - "generate:graphQLSchema": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:graphQLSchema", - "prepare": "husky install", - "lint:check": "eslint .", - "lint:fix": "eslint --fix .", - "lint": "npm run lint:check" - }, - "dependencies": { - "dotenv": "^16.0.1", - "express": "^4.18.1", - "payload": "^1.0.9" - }, - "devDependencies": { - "@matt-fidd/eslint-config": "^1.3.2", - "@types/express": "^4.17.13", - "@typescript-eslint/eslint-plugin": "^5.30.7", - "@typescript-eslint/parser": "^5.30.7", - "copyfiles": "^2.4.1", - "cross-env": "^7.0.3", - "eslint": "^8.20.0", - "husky": "^8.0.1", - "lint-staged": "^13.0.3", - "nodemon": "^2.0.19", - "ts-node": "^10.9.1", - "typescript": "^4.7.4" - }, - "lint-staged": { - "*.ts": [ - "eslint --cache --fix", - "yarn generate:types", - "git add src/payload-types.ts" - ] - } -} + "name": "summer-dci", + "description": "", + "version": "1.0.0", + "main": "dist/server.js", + "scripts": { + "dev": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts nodemon", + "build:payload": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload build", + "build:server": "tsc", + "build": "yarn copyfiles && yarn build:payload && yarn build:server", + "serve": "cross-env PAYLOAD_CONFIG_PATH=dist/payload.config.js NODE_ENV=production node dist/server.js", + "copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png}\" dist/", + "generate:types": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:types", + "generate:graphQLSchema": "PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:graphQLSchema", + "prepare": "husky install", + "lint:check": "eslint .", + "lint:fix": "eslint --fix .", + "lint": "npm run lint:check" + }, + "dependencies": { + "dotenv": "^16.0.1", + "express": "^4.18.1", + "payload": "^1.0.9" + }, + "devDependencies": { + "@matt-fidd/eslint-config": "^1.3.2", + "@types/express": "^4.17.13", + "@typescript-eslint/eslint-plugin": "^5.30.7", + "@typescript-eslint/parser": "^5.30.7", + "copyfiles": "^2.4.1", + "cross-env": "^7.0.3", + "eslint": "^8.20.0", + "husky": "^8.0.1", + "lint-staged": "^13.0.3", + "nodemon": "^2.0.19", + "ts-node": "^10.9.1", + "typescript": "^4.7.4" + }, + "lint-staged": { + "*.ts": [ + "eslint --cache --fix", + "yarn generate:types", + "git add src/payload-types.ts" + ] + } +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 4a26b31..ffdcf68 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,28 +1,28 @@ { - "compilerOptions": { - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "strict": false, - "esModuleInterop": true, - "skipLibCheck": true, - "outDir": "./dist", - "rootDir": "./src", - "jsx": "react" - }, - "include": [ - "src" - ], - "exclude": [ - "node_modules", - "dist", - "build", - ], - "ts-node": { - "transpileOnly": true - } -} + "compilerOptions": { + "target": "es5", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "strict": false, + "esModuleInterop": true, + "skipLibCheck": true, + "outDir": "./dist", + "rootDir": "./src", + "jsx": "react" + }, + "include": [ + "src" + ], + "exclude": [ + "node_modules", + "dist", + "build", + ], + "ts-node": { + "transpileOnly": true + } +} \ No newline at end of file