breaking: rework how links database migrations are managed (#8162)

This commit is contained in:
Adrien de Peretti
2024-07-22 09:42:23 +02:00
committed by GitHub
parent f435c6c7f6
commit f74fdcb644
24 changed files with 1090 additions and 264 deletions

View File

@@ -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`,