@momentumcms/migrations 0.5.4 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentumcms/migrations",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Database migration system for Momentum CMS",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.cjs",
@@ -27,7 +27,7 @@ var import_node_child_process = require("node:child_process");
27
27
  function migrationGenerate(options) {
28
28
  return (_tree, context) => {
29
29
  const configPath = options.configPath || "src/momentum.config.ts";
30
- const args = ["tsx", "node_modules/@momentumcms/migrations/cli/generate.cjs", configPath];
30
+ const args = ["tsx", "node_modules/@momentumcms/migrations/src/cli/generate.cjs", configPath];
31
31
  if (options.name) {
32
32
  args.push("--name", options.name);
33
33
  }
@@ -3,7 +3,7 @@ import { execFileSync } from "node:child_process";
3
3
  function migrationGenerate(options) {
4
4
  return (_tree, context) => {
5
5
  const configPath = options.configPath || "src/momentum.config.ts";
6
- const args = ["tsx", "node_modules/@momentumcms/migrations/cli/generate.cjs", configPath];
6
+ const args = ["tsx", "node_modules/@momentumcms/migrations/src/cli/generate.cjs", configPath];
7
7
  if (options.name) {
8
8
  args.push("--name", options.name);
9
9
  }
@@ -27,7 +27,7 @@ var import_node_child_process = require("node:child_process");
27
27
  function migrationRollback(options) {
28
28
  return (_tree, context) => {
29
29
  const configPath = options.configPath || "src/momentum.config.ts";
30
- const args = ["tsx", "node_modules/@momentumcms/migrations/cli/rollback.cjs", configPath];
30
+ const args = ["tsx", "node_modules/@momentumcms/migrations/src/cli/rollback.cjs", configPath];
31
31
  context.logger.info("Rolling back latest migration batch...");
32
32
  try {
33
33
  (0, import_node_child_process.execFileSync)("npx", args, { stdio: "inherit", shell: true });
@@ -3,7 +3,7 @@ import { execFileSync } from "node:child_process";
3
3
  function migrationRollback(options) {
4
4
  return (_tree, context) => {
5
5
  const configPath = options.configPath || "src/momentum.config.ts";
6
- const args = ["tsx", "node_modules/@momentumcms/migrations/cli/rollback.cjs", configPath];
6
+ const args = ["tsx", "node_modules/@momentumcms/migrations/src/cli/rollback.cjs", configPath];
7
7
  context.logger.info("Rolling back latest migration batch...");
8
8
  try {
9
9
  execFileSync("npx", args, { stdio: "inherit", shell: true });
@@ -27,7 +27,7 @@ var import_node_child_process = require("node:child_process");
27
27
  function migrationRun(options) {
28
28
  return (_tree, context) => {
29
29
  const configPath = options.configPath || "src/momentum.config.ts";
30
- const args = ["tsx", "node_modules/@momentumcms/migrations/cli/run.cjs", configPath];
30
+ const args = ["tsx", "node_modules/@momentumcms/migrations/src/cli/run.cjs", configPath];
31
31
  if (options.testOnly) {
32
32
  args.push("--test-only");
33
33
  }
@@ -3,7 +3,7 @@ import { execFileSync } from "node:child_process";
3
3
  function migrationRun(options) {
4
4
  return (_tree, context) => {
5
5
  const configPath = options.configPath || "src/momentum.config.ts";
6
- const args = ["tsx", "node_modules/@momentumcms/migrations/cli/run.cjs", configPath];
6
+ const args = ["tsx", "node_modules/@momentumcms/migrations/src/cli/run.cjs", configPath];
7
7
  if (options.testOnly) {
8
8
  args.push("--test-only");
9
9
  }
@@ -27,7 +27,7 @@ var import_node_child_process = require("node:child_process");
27
27
  function migrationStatus(options) {
28
28
  return (_tree, context) => {
29
29
  const configPath = options.configPath || "src/momentum.config.ts";
30
- const args = ["tsx", "node_modules/@momentumcms/migrations/cli/status.cjs", configPath];
30
+ const args = ["tsx", "node_modules/@momentumcms/migrations/src/cli/status.cjs", configPath];
31
31
  context.logger.info("Checking migration status...");
32
32
  try {
33
33
  (0, import_node_child_process.execFileSync)("npx", args, { stdio: "inherit", shell: true });
@@ -3,7 +3,7 @@ import { execFileSync } from "node:child_process";
3
3
  function migrationStatus(options) {
4
4
  return (_tree, context) => {
5
5
  const configPath = options.configPath || "src/momentum.config.ts";
6
- const args = ["tsx", "node_modules/@momentumcms/migrations/cli/status.cjs", configPath];
6
+ const args = ["tsx", "node_modules/@momentumcms/migrations/src/cli/status.cjs", configPath];
7
7
  context.logger.info("Checking migration status...");
8
8
  try {
9
9
  execFileSync("npx", args, { stdio: "inherit", shell: true });