@codemation/cli 0.0.1 → 0.0.2

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.
@@ -1264,6 +1264,7 @@ var DatabaseMigrationsApplyService = class {
1264
1264
  return;
1265
1265
  }
1266
1266
  process.env.CODEMATION_HOST_PACKAGE_ROOT = this.hostPackageRoot;
1267
+ process.env.CODEMATION_PRISMA_CONFIG_PATH = path.join(this.hostPackageRoot, "prisma.config.ts");
1267
1268
  this.cliLogger.debug(`Applying database migrations (${this.databaseUrlDescriptor.describePersistence(persistence)})`);
1268
1269
  await this.migrationDeployer.deployPersistence(persistence, process.env);
1269
1270
  this.cliLogger.info(`Database migrations applied (${this.databaseUrlDescriptor.describePersistence(persistence)}).`);
package/dist/bin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as CliBin } from "./CliBin-vjSSUDWE.js";
1
+ import { t as CliBin } from "./CliBin-DTTnbKz7.js";
2
2
  import process from "node:process";
3
3
  import "reflect-metadata";
4
4
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as CliProgram, i as CliPathResolver, n as CliProgramFactory, o as ConsumerOutputBuilder, r as CodemationCliApplicationSession, s as ConsumerBuildOptionsParser, t as CliBin } from "./CliBin-vjSSUDWE.js";
1
+ import { a as CliProgram, i as CliPathResolver, n as CliProgramFactory, o as ConsumerOutputBuilder, r as CodemationCliApplicationSession, s as ConsumerBuildOptionsParser, t as CliBin } from "./CliBin-DTTnbKz7.js";
2
2
  import { CodemationPluginDiscovery } from "@codemation/host/server";
3
3
 
4
4
  export { CliBin, CliPathResolver, CliProgram, CliProgramFactory, CodemationCliApplicationSession, CodemationPluginDiscovery, ConsumerBuildOptionsParser, ConsumerOutputBuilder };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemation/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -28,11 +28,11 @@
28
28
  "figlet": "^1.11.0",
29
29
  "reflect-metadata": "^0.2.2",
30
30
  "typescript": "^5.9.3",
31
- "@codemation/host": "0.0.1",
32
- "@codemation/dev-gateway": "0.0.1",
33
- "@codemation/next-host": "0.0.1",
34
- "@codemation/runtime-dev": "0.0.1",
35
- "@codemation/worker-cli": "0.0.1"
31
+ "@codemation/host": "0.0.2",
32
+ "@codemation/next-host": "0.0.2",
33
+ "@codemation/dev-gateway": "0.0.2",
34
+ "@codemation/runtime-dev": "0.0.2",
35
+ "@codemation/worker-cli": "0.0.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^25.3.5",
@@ -1,6 +1,7 @@
1
1
  import { CodemationConsumerConfigLoader } from "@codemation/host/server";
2
2
  import type { ResolvedDatabasePersistence } from "@codemation/host/persistence";
3
3
  import type { Logger } from "@codemation/host/next/server";
4
+ import path from "node:path";
4
5
 
5
6
  import { ConsumerCliTsconfigPreparation } from "../consumer/ConsumerCliTsconfigPreparation";
6
7
  import { ConsumerDatabaseConnectionResolver } from "./ConsumerDatabaseConnectionResolver";
@@ -65,6 +66,7 @@ export class DatabaseMigrationsApplyService {
65
66
  return;
66
67
  }
67
68
  process.env.CODEMATION_HOST_PACKAGE_ROOT = this.hostPackageRoot;
69
+ process.env.CODEMATION_PRISMA_CONFIG_PATH = path.join(this.hostPackageRoot, "prisma.config.ts");
68
70
  this.cliLogger.debug(
69
71
  `Applying database migrations (${this.databaseUrlDescriptor.describePersistence(persistence)})`,
70
72
  );