playcademy 0.12.5 → 0.12.6

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/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5381,6 +5381,7 @@ function generateEntryCode(customRoutes, customRoutesDir) {
5381
5381
  // src/lib/deploy/schema.ts
5382
5382
  init_core();
5383
5383
  import { existsSync as existsSync9 } from "fs";
5384
+ import { createRequire } from "module";
5384
5385
  import { join as join8 } from "path";
5385
5386
 
5386
5387
  // src/lib/init/prompts.ts
@@ -5641,7 +5642,8 @@ async function getSchemaInfo(previousSchemaSnapshot) {
5641
5642
  return null;
5642
5643
  }
5643
5644
  try {
5644
- const drizzleKitApi = await import("drizzle-kit/api");
5645
+ const require2 = createRequire(import.meta.url);
5646
+ const drizzleKitApi = require2("drizzle-kit/api");
5645
5647
  const { generateSQLiteDrizzleJson, generateSQLiteMigration } = drizzleKitApi;
5646
5648
  const schemaModule = await import(schemaPath);
5647
5649
  const currentSchema = schemaModule.default || schemaModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playcademy",
3
- "version": "0.12.5",
3
+ "version": "0.12.6",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",