pgroll 0.0.3 → 0.0.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.
@@ -4,8 +4,8 @@ const tslib_1 = require("tslib");
4
4
  const process = tslib_1.__importStar(require("node:process"));
5
5
  const commander_1 = require("commander");
6
6
  const postgres_1 = tslib_1.__importDefault(require("postgres"));
7
- const index_1 = require("@/index");
8
7
  const utils_1 = require("./utils");
8
+ const index_1 = require("./index");
9
9
  const program = new commander_1.Command();
10
10
  let migrator;
11
11
  program
@@ -1,5 +1,5 @@
1
1
  import { ReservedSql, Sql } from 'postgres';
2
- import { Direction } from '@/utils';
2
+ import { Direction } from './utils';
3
3
  interface Option {
4
4
  eventHandler: (info: string) => void;
5
5
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Migrator = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const node_path_1 = tslib_1.__importDefault(require("node:path"));
6
- const utils_1 = require("@/utils");
6
+ const utils_1 = require("./utils");
7
7
  class Migrator {
8
8
  constructor(dbClient, migrationsDir = '') {
9
9
  Object.defineProperty(this, "dbClient", {
@@ -2,8 +2,8 @@ import { __awaiter } from "tslib";
2
2
  import * as process from 'node:process';
3
3
  import { Command } from 'commander';
4
4
  import postgres from 'postgres';
5
- import { Migrator } from '@/index';
6
5
  import { createFile } from './utils';
6
+ import { Migrator } from './index';
7
7
  const program = new Command();
8
8
  let migrator;
9
9
  program
@@ -1,5 +1,5 @@
1
1
  import { ReservedSql, Sql } from 'postgres';
2
- import { Direction } from '@/utils';
2
+ import { Direction } from './utils';
3
3
  interface Option {
4
4
  eventHandler: (info: string) => void;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import path from 'node:path';
3
- import { getMigrationFiles } from '@/utils';
3
+ import { getMigrationFiles } from './utils';
4
4
  export class Migrator {
5
5
  constructor(dbClient, migrationsDir = '') {
6
6
  Object.defineProperty(this, "dbClient", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgroll",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Postgres migration tool",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "module": "dist/esm/src/index.js",
@@ -62,12 +62,12 @@
62
62
  "jest": "^29.7.0",
63
63
  "prettier": "^3.3.2",
64
64
  "ts-jest": "^29.1.5",
65
- "tslib": "^2.6.3",
65
+ "tsx": "^4.15.7",
66
66
  "typescript": "=5.4.5"
67
67
  },
68
68
  "dependencies": {
69
69
  "commander": "^12.1.0",
70
70
  "postgres": "^3.4.4",
71
- "tsx": "^4.15.7"
71
+ "tslib": "^2.6.3"
72
72
  }
73
73
  }