@pgpmjs/core 4.2.1 → 4.3.0
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.
|
@@ -8,9 +8,9 @@ exports.inspectTemplate = inspectTemplate;
|
|
|
8
8
|
exports.scaffoldTemplate = scaffoldTemplate;
|
|
9
9
|
const os_1 = __importDefault(require("os"));
|
|
10
10
|
const path_1 = __importDefault(require("path"));
|
|
11
|
-
const
|
|
11
|
+
const genomic_1 = require("genomic");
|
|
12
12
|
exports.DEFAULT_TEMPLATE_REPO = 'https://github.com/constructive-io/pgpm-boilerplates.git';
|
|
13
|
-
exports.DEFAULT_TEMPLATE_TTL_MS =
|
|
13
|
+
exports.DEFAULT_TEMPLATE_TTL_MS = 1 * 24 * 60 * 60 * 1000; // 1 day
|
|
14
14
|
exports.DEFAULT_TEMPLATE_TOOL_NAME = 'pgpm';
|
|
15
15
|
function resolveCacheBaseDir(cacheBaseDir) {
|
|
16
16
|
if (cacheBaseDir) {
|
|
@@ -26,7 +26,7 @@ function resolveCacheBaseDir(cacheBaseDir) {
|
|
|
26
26
|
}
|
|
27
27
|
function inspectTemplate(options) {
|
|
28
28
|
const { fromPath, templateRepo = exports.DEFAULT_TEMPLATE_REPO, branch, cacheTtlMs = exports.DEFAULT_TEMPLATE_TTL_MS, toolName = exports.DEFAULT_TEMPLATE_TOOL_NAME, cwd, cacheBaseDir, dir, } = options;
|
|
29
|
-
const scaffolder = new
|
|
29
|
+
const scaffolder = new genomic_1.TemplateScaffolder({
|
|
30
30
|
toolName,
|
|
31
31
|
ttlMs: cacheTtlMs,
|
|
32
32
|
cacheBaseDir: resolveCacheBaseDir(cacheBaseDir),
|
|
@@ -62,7 +62,7 @@ function inspectTemplate(options) {
|
|
|
62
62
|
}
|
|
63
63
|
async function scaffoldTemplate(options) {
|
|
64
64
|
const { fromPath, outputDir, templateRepo = exports.DEFAULT_TEMPLATE_REPO, branch, answers, noTty = false, cacheTtlMs = exports.DEFAULT_TEMPLATE_TTL_MS, toolName = exports.DEFAULT_TEMPLATE_TOOL_NAME, cwd, cacheBaseDir, dir, prompter, } = options;
|
|
65
|
-
const scaffolder = new
|
|
65
|
+
const scaffolder = new genomic_1.TemplateScaffolder({
|
|
66
66
|
toolName,
|
|
67
67
|
ttlMs: cacheTtlMs,
|
|
68
68
|
cacheBaseDir: resolveCacheBaseDir(cacheBaseDir),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import os from 'os';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { TemplateScaffolder } from '
|
|
3
|
+
import { TemplateScaffolder } from 'genomic';
|
|
4
4
|
export const DEFAULT_TEMPLATE_REPO = 'https://github.com/constructive-io/pgpm-boilerplates.git';
|
|
5
|
-
export const DEFAULT_TEMPLATE_TTL_MS =
|
|
5
|
+
export const DEFAULT_TEMPLATE_TTL_MS = 1 * 24 * 60 * 60 * 1000; // 1 day
|
|
6
6
|
export const DEFAULT_TEMPLATE_TOOL_NAME = 'pgpm';
|
|
7
7
|
function resolveCacheBaseDir(cacheBaseDir) {
|
|
8
8
|
if (cacheBaseDir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpmjs/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PGPM Package and Migration Tools",
|
|
6
6
|
"main": "index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@pgsql/types": "^17.6.2",
|
|
45
45
|
"@types/pg": "^8.16.0",
|
|
46
46
|
"copyfiles": "^2.4.1",
|
|
47
|
-
"inquirerer": "^
|
|
47
|
+
"inquirerer": "^4.1.1",
|
|
48
48
|
"makage": "^0.1.9"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@pgpmjs/logger": "^1.3.5",
|
|
53
53
|
"@pgpmjs/server-utils": "^2.8.11",
|
|
54
54
|
"@pgpmjs/types": "^2.12.8",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
55
|
+
"csv-to-pg": "^3.2.0",
|
|
56
|
+
"genomic": "^5.0.2",
|
|
57
57
|
"glob": "^13.0.0",
|
|
58
58
|
"komoji": "^0.7.11",
|
|
59
59
|
"parse-package-name": "^1.0.0",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"pgsql-parser": "^17.9.5",
|
|
65
65
|
"yanse": "^0.1.8"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "7ac931c063d48e281349b748ba2eb9c9f47ffb06"
|
|
68
68
|
}
|