@ghentcdh/create-crouton 0.0.1-alpha.57 → 0.0.1-alpha.59

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.
package/dist/index.js CHANGED
@@ -38806,7 +38806,6 @@ datasource db {
38806
38806
  const relSchema = relImport(configDir, prismaSchema);
38807
38807
  const relMigrations = relImport(configDir, migrationsDir);
38808
38808
  const prismaConfigTs = `// Generated by \`crouton create-datasource\`.
38809
- import 'dotenv/config';
38810
38809
  import { defineConfig, env } from 'prisma/config';
38811
38810
 
38812
38811
  export default defineConfig({
@@ -38844,8 +38843,9 @@ import { join as join3 } from "path";
38844
38843
 
38845
38844
  // ../crouton-codegen/src/prisma-shell.ts
38846
38845
  import { spawn } from "child_process";
38847
- import { existsSync } from "fs";
38846
+ import { existsSync, readdirSync } from "fs";
38848
38847
  import { copyFile, readFile as readFile4, readdir as readdir4, writeFile as writeFile2 } from "fs/promises";
38848
+ import { createRequire } from "module";
38849
38849
  import { dirname as dirname5, join as join4 } from "path";
38850
38850
 
38851
38851
  // src/lib/files.ts
@@ -38966,7 +38966,7 @@ var runCreate = async (name, opts) => {
38966
38966
  const tokens = {
38967
38967
  name,
38968
38968
  Name: toTitle(name),
38969
- version: true ? "0.0.1-alpha.57" : "latest",
38969
+ version: true ? "0.0.1-alpha.59" : "latest",
38970
38970
  year: String((/* @__PURE__ */ new Date()).getFullYear()),
38971
38971
  pmRun: pm === "npm" ? "npm run" : pm,
38972
38972
  urlEnv: "DATABASE_URL",