breaking: rework how links database migrations are managed (#8162)
This commit is contained in:
committed by
GitHub
parent
f435c6c7f6
commit
f74fdcb644
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
try {
|
||||
require('ts-node').register({})
|
||||
require("ts-node").register({})
|
||||
} catch {}
|
||||
require("dotenv").config()
|
||||
require("./dist/index.js")
|
||||
|
||||
@@ -190,6 +190,23 @@ function buildLocalCommands(cli, isLocalProject) {
|
||||
})
|
||||
),
|
||||
})
|
||||
.command({
|
||||
command: `links [action]`,
|
||||
desc: `Manage migrations for the links from the core, your project and packages`,
|
||||
builder: {
|
||||
action: {
|
||||
demand: true,
|
||||
description: "The action to perform on links",
|
||||
choices: ["sync"],
|
||||
},
|
||||
},
|
||||
handler: handlerP(
|
||||
getCommandHandler(`links`, (args, cmd) => {
|
||||
process.env.NODE_ENV = process.env.NODE_ENV || `development`
|
||||
return cmd(args)
|
||||
})
|
||||
),
|
||||
})
|
||||
.command({
|
||||
command: `develop`,
|
||||
desc: `Start development server. Watches file and rebuilds when something changes`,
|
||||
|
||||
Reference in New Issue
Block a user