2023-07-14 11:03:01 +00:00
|
|
|
{
|
|
|
|
"name": "payload",
|
|
|
|
"description": "Payload project created from blank template",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"main": "dist/server.js",
|
|
|
|
"license": "MIT",
|
|
|
|
"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": "npm run copyfiles && npm run build:payload && npm run 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",
|
2023-07-14 14:42:37 +00:00
|
|
|
"generate:graphQLSchema": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload generate:graphQLSchema",
|
|
|
|
"prettier": "prettier --list-different --end-of-line auto --write src",
|
|
|
|
"tsc": "tsc --noEmit",
|
|
|
|
"precommit": "npm run generate:types && npm run prettier && npm run tsc"
|
2023-07-14 11:03:01 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"cross-env": "^7.0.3",
|
|
|
|
"dotenv": "^8.2.0",
|
|
|
|
"express": "^4.17.1",
|
|
|
|
"iso-639-1": "^2.1.15",
|
|
|
|
"payload": "^1.11.1"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@types/express": "^4.17.9",
|
|
|
|
"copyfiles": "^2.4.1",
|
|
|
|
"nodemon": "^2.0.6",
|
|
|
|
"prettier": "^3.0.0",
|
|
|
|
"ts-node": "^9.1.1",
|
|
|
|
"typescript": "^4.8.4"
|
|
|
|
}
|
|
|
|
}
|