Update migration and script tools for Supabase CLI integration
- Refactored `CreateMigration` method in `migrations.ts` to use `pnpm --filter web` for better command execution context. - Added new Supabase CLI command descriptions in `scripts.ts` to facilitate access via the web project, enhancing usability and documentation.
This commit is contained in:
@@ -19,8 +19,8 @@ export class MigrationsTool {
|
||||
);
|
||||
}
|
||||
|
||||
static CreateMigration(path: string) {
|
||||
return promisify(exec)(`supabase migration new ${path}`);
|
||||
static CreateMigration(name: string) {
|
||||
return promisify(exec)(`pnpm --filter web supabase migration new ${name}`);
|
||||
}
|
||||
|
||||
static Diff() {
|
||||
|
||||
Reference in New Issue
Block a user