Restore dev, build & gen:types scripts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tobias 2024-05-25 08:18:33 +02:00
parent 8fdfb2fbe4
commit d62e7d788e
4 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@
"license": "AGPL-3.0-or-later",
"version": "1.2",
"scripts": {
"dev": "docker compose up --build",
"dev:watch": "yarn dev:docker & yarn payload:types",
"dev": "yarn dev:docker & yarn payload:types",
"dev:docker": "docker compose up --build",
"payload:types": "yarn --cwd ./payload run generate:types:listen",
"stop": "docker compose down",
"dev:nobuild": "docker compose up"

View File

@ -8,7 +8,7 @@
"dev": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts nodemon",
"build:payload": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts node -r tsconfig-paths/register node_modules/payload/dist/bin/index.js build ",
"build:server": "tsc",
"build": "yarn build:payload && yarn build:server",
"build": "yarn generate:types && build:payload && yarn build:server",
"serve": "cross-env PAYLOAD_CONFIG_PATH=dist/payload.config.js node -r tsconfig-paths/register dist/server.js",
"generate:types": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts node -r tsconfig-paths/register node_modules/payload/dist/bin/index.js generate:types",
"generate:types:listen": "nodemon --watch src --ext ts --exec 'npm run generate:types'"

View File

@ -8,7 +8,7 @@
"outDir": "./dist",
"paths": {
"@/*": ["./src/*", "./dist/*", "./dist/src/*"],
"@/types/*": ["./types/*"]
"@/types/*": ["../*"]
},
"jsx": "react"
},