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

This commit is contained in:
Gani Georgiev committed 2023-06-27 14:45:04 +03:00
1 parent 1571ebe4eb
commit a672ab959f
11 files changed
+6336 -6280

No files matched your search

+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)