chore: nodemon stdin:false, -I flag
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"watch": ["server.ts"],
|
"watch": ["server.ts"],
|
||||||
"exec": "ts-node --project tsconfig.server.json src/server.ts",
|
"exec": "ts-node --project tsconfig.server.json src/server.ts -- -I",
|
||||||
"ext": "js ts",
|
"ext": "js ts",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"watch": [
|
"watch": ["./src/**/*.ts"],
|
||||||
"./src/**/*.ts"
|
"exec": "ts-node ./src/server.ts -- -I"
|
||||||
],
|
|
||||||
"exec": "ts-node ./src/server.ts"
|
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"exec": "ts-node ./test/dev.ts",
|
"exec": "ts-node ./test/dev.ts -- -I",
|
||||||
"ext": "ts,js,json",
|
"ext": "ts,js,json",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
".git",
|
".git",
|
||||||
@@ -11,5 +11,5 @@
|
|||||||
"test/**/payload-types.ts"
|
"test/**/payload-types.ts"
|
||||||
],
|
],
|
||||||
"watch": ["./test/", "./packages/**/*.ts"],
|
"watch": ["./test/", "./packages/**/*.ts"],
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"exec": "ts-node ../../test/dev.ts",
|
"exec": "ts-node ../../test/dev.ts -- -I",
|
||||||
"ext": "ts,js,json",
|
"ext": "ts,js,json",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
".git",
|
".git",
|
||||||
@@ -11,5 +11,5 @@
|
|||||||
"test/**/payload-types.ts"
|
"test/**/payload-types.ts"
|
||||||
],
|
],
|
||||||
"watch": ["src/**/*.ts", "../../test/", "../../packages/**/*.ts"],
|
"watch": ["src/**/*.ts", "../../test/", "../../packages/**/*.ts"],
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "payload",
|
"name": "payload",
|
||||||
"version": "2.0.0-beta.13",
|
"version": "2.0.0-beta.15",
|
||||||
"description": "Node, React and MongoDB Headless CMS and Application Framework",
|
"description": "Node, React and MongoDB Headless CMS and Application Framework",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const scriptIndex = args._.findIndex((x) => x === 'build')
|
|||||||
const script = scriptIndex === -1 ? args._[0] : args._[scriptIndex]
|
const script = scriptIndex === -1 ? args._[0] : args._[scriptIndex]
|
||||||
|
|
||||||
if (script.startsWith('migrate')) {
|
if (script.startsWith('migrate')) {
|
||||||
migrate(args._).then(() => process.exit(0))
|
migrate(args).then(() => process.exit(0))
|
||||||
} else {
|
} else {
|
||||||
switch (script.toLowerCase()) {
|
switch (script.toLowerCase()) {
|
||||||
case 'build': {
|
case 'build': {
|
||||||
|
|||||||
@@ -14,12 +14,14 @@ export async function migrateDown(this: BaseDatabaseAdapter): Promise<void> {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const migrationsToRollback = existingMigrations.filter(
|
const migrationsToRollback = existingMigrations.filter(
|
||||||
(migration) => migration.batch === latestBatch,
|
(migration) => migration.batch === latestBatch && migration.batch !== -1,
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!migrationsToRollback?.length) {
|
if (!migrationsToRollback?.length) {
|
||||||
payload.logger.info({ msg: 'No migrations to rollback.' })
|
payload.logger.info({ msg: 'No migrations to rollback.' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
payload.logger.info({
|
payload.logger.info({
|
||||||
msg: `Rolling back batch ${latestBatch} consisting of ${migrationsToRollback.length} migration(s).`,
|
msg: `Rolling back batch ${latestBatch} consisting of ${migrationsToRollback.length} migration(s).`,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"watch": ["server.ts"],
|
"watch": ["server.ts"],
|
||||||
"exec": "ts-node --project tsconfig.server.json src/server.ts",
|
"exec": "ts-node --project tsconfig.server.json src/server.ts -- -I",
|
||||||
"ext": "js ts",
|
"ext": "js ts",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/nodemon.json",
|
"$schema": "https://json.schemastore.org/nodemon.json",
|
||||||
"ext": "ts",
|
"ext": "ts",
|
||||||
"exec": "ts-node src/server.ts",
|
"exec": "ts-node src/server.ts -- -I",
|
||||||
"stdin": true
|
"stdin": false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user