clefbase 1.2.2 → 1.2.4
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,11 +8,12 @@ const chalk_1 = __importDefault(require("chalk"));
|
|
|
8
8
|
const init_1 = require("./commands/init");
|
|
9
9
|
const deploy_1 = require("./commands/deploy");
|
|
10
10
|
const info_1 = require("./commands/info");
|
|
11
|
+
const package_json_1 = require("../../package.json");
|
|
11
12
|
const program = new commander_1.Command();
|
|
12
13
|
program
|
|
13
14
|
.name("clefbase")
|
|
14
15
|
.description("Clefbase CLI — initialise projects, deploy sites, manage hosting")
|
|
15
|
-
.version(
|
|
16
|
+
.version(package_json_1.version);
|
|
16
17
|
// ─── init ─────────────────────────────────────────────────────────────────────
|
|
17
18
|
program
|
|
18
19
|
.command("init")
|
package/dist/cli.js
CHANGED
|
@@ -14190,10 +14190,10 @@ var require_supports_color = __commonJS({
|
|
|
14190
14190
|
return 3;
|
|
14191
14191
|
}
|
|
14192
14192
|
if ("TERM_PROGRAM" in env2) {
|
|
14193
|
-
const
|
|
14193
|
+
const version2 = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
14194
14194
|
switch (env2.TERM_PROGRAM) {
|
|
14195
14195
|
case "iTerm.app":
|
|
14196
|
-
return
|
|
14196
|
+
return version2 >= 3 ? 3 : 2;
|
|
14197
14197
|
case "Apple_Terminal":
|
|
14198
14198
|
return 2;
|
|
14199
14199
|
}
|
|
@@ -30161,10 +30161,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
30161
30161
|
return 3;
|
|
30162
30162
|
}
|
|
30163
30163
|
if ("TERM_PROGRAM" in env) {
|
|
30164
|
-
const
|
|
30164
|
+
const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
30165
30165
|
switch (env.TERM_PROGRAM) {
|
|
30166
30166
|
case "iTerm.app": {
|
|
30167
|
-
return
|
|
30167
|
+
return version2 >= 3 ? 3 : 2;
|
|
30168
30168
|
}
|
|
30169
30169
|
case "Apple_Terminal": {
|
|
30170
30170
|
return 2;
|
|
@@ -33966,6 +33966,7 @@ function buildLibTs(cfg) {
|
|
|
33966
33966
|
` serverUrl: config.serverUrl,`,
|
|
33967
33967
|
` projectId: config.projectId,`,
|
|
33968
33968
|
` apiKey: config.apiKey,`,
|
|
33969
|
+
` adminSecret: "",`,
|
|
33969
33970
|
`});`,
|
|
33970
33971
|
``
|
|
33971
33972
|
];
|
|
@@ -34403,9 +34404,12 @@ async function runSitesList(cwd = process.cwd()) {
|
|
|
34403
34404
|
}
|
|
34404
34405
|
}
|
|
34405
34406
|
|
|
34407
|
+
// package.json
|
|
34408
|
+
var version = "1.2.4";
|
|
34409
|
+
|
|
34406
34410
|
// src/cli/index.ts
|
|
34407
34411
|
var program2 = new Command();
|
|
34408
|
-
program2.name("clefbase").description("Clefbase CLI \u2014 initialise projects, deploy sites, manage hosting").version(
|
|
34412
|
+
program2.name("clefbase").description("Clefbase CLI \u2014 initialise projects, deploy sites, manage hosting").version(version);
|
|
34409
34413
|
program2.command("init").description("Initialise a Clefbase project in the current directory").action(async () => {
|
|
34410
34414
|
try {
|
|
34411
34415
|
await runInit();
|