@donkeylabs/server 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/core.ts +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donkeylabs/server",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "type": "module",
5
5
  "description": "Type-safe plugin system for building RPC-style APIs with Bun",
6
6
  "main": "./src/index.ts",
package/src/core.ts CHANGED
@@ -360,9 +360,13 @@ export class PluginManager {
360
360
  for (const plugin of sortedPlugins) {
361
361
  const pluginName = plugin.name;
362
362
  const possibleMigrationDirs = [
363
- join(process.cwd(), "examples/basic-server/src/plugins", pluginName, "migrations"),
363
+ // SvelteKit adapter location
364
+ join(process.cwd(), "src/server/plugins", pluginName, "migrations"),
365
+ // Standard locations
364
366
  join(process.cwd(), "src/plugins", pluginName, "migrations"),
365
367
  join(process.cwd(), "plugins", pluginName, "migrations"),
368
+ // Legacy/example location
369
+ join(process.cwd(), "examples/basic-server/src/plugins", pluginName, "migrations"),
366
370
  ];
367
371
 
368
372
  let migrationDir = "";