merged jsvm migrations and hooks and updated the ambient TS types location

This commit is contained in:
Gani Georgiev
2023-06-27 14:45:04 +03:00
parent 1571ebe4eb
commit a672ab959f
11 changed files with 6336 additions and 6280 deletions
+5 -9
View File
@@ -84,15 +84,11 @@ func main() {
// Plugins and hooks:
// ---------------------------------------------------------------
// load js pb_hooks
jsvm.MustRegisterHooks(app, jsvm.HooksConfig{
Dir: hooksDir,
Watch: hooksWatch,
})
// load js pb_migrations
jsvm.MustRegisterMigrations(app, jsvm.MigrationsConfig{
Dir: migrationsDir,
// load jsvm (hooks and migrations)
jsvm.MustRegister(app, jsvm.Config{
MigrationsDir: migrationsDir,
HooksDir: hooksDir,
HooksWatch: hooksWatch,
})
// migrate command (with js templates)