mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-23 22:40:24 +02:00
merged jsvm migrations and hooks and updated the ambient TS types location
This commit is contained in:
1 parent
1571ebe4eb
commit
a672ab959f
11 files changed
+6336
-6280
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user