generated from autonomic-cooperative/astro-payload-template
Restore dev, build & gen:types scripts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8fdfb2fbe4
commit
d62e7d788e
@ -4,8 +4,8 @@
|
|||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"version": "1.2",
|
"version": "1.2",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "docker compose up --build",
|
"dev": "yarn dev:docker & yarn payload:types",
|
||||||
"dev:watch": "yarn dev:docker & yarn payload:types",
|
"dev:docker": "docker compose up --build",
|
||||||
"payload:types": "yarn --cwd ./payload run generate:types:listen",
|
"payload:types": "yarn --cwd ./payload run generate:types:listen",
|
||||||
"stop": "docker compose down",
|
"stop": "docker compose down",
|
||||||
"dev:nobuild": "docker compose up"
|
"dev:nobuild": "docker compose up"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"dev": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts nodemon",
|
"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: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: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",
|
"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": "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'"
|
"generate:types:listen": "nodemon --watch src --ext ts --exec 'npm run generate:types'"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*", "./dist/*", "./dist/src/*"],
|
"@/*": ["./src/*", "./dist/*", "./dist/src/*"],
|
||||||
"@/types/*": ["./types/*"]
|
"@/types/*": ["../*"]
|
||||||
},
|
},
|
||||||
"jsx": "react"
|
"jsx": "react"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user