@cimplify/cli 0.14.0 → 0.15.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.
- package/dist/{add-PPUGTTDA.mjs → add-EPY25NNV.mjs} +3 -3
- package/dist/{assets-OEY6FHHZ.mjs → assets-CWB72PZG.mjs} +3 -3
- package/dist/{auth-step-up-ALEUQUCE.mjs → auth-step-up-VL742AS7.mjs} +4 -4
- package/dist/{cancel-FD66LTTS.mjs → cancel-ZHVVILOU.mjs} +3 -3
- package/dist/{chunk-IK6NQHTG.mjs → chunk-3KRSHO6J.mjs} +1 -1
- package/dist/{chunk-4O4G2CDE.mjs → chunk-3QUK5BPY.mjs} +7 -3
- package/dist/{chunk-SOYZZZVT.mjs → chunk-5SMYK3U2.mjs} +5 -5
- package/dist/{chunk-7CI5RWNE.mjs → chunk-A6WHBSXZ.mjs} +5 -5
- package/dist/{dev-L3W6UXYN.mjs → chunk-F2UI225N.mjs} +5 -5
- package/dist/{chunk-KAZMZD4X.mjs → chunk-GCQKTUXN.mjs} +2 -2
- package/dist/{chunk-RU53TQLZ.mjs → chunk-I2UP7YTG.mjs} +1 -1
- package/dist/{chunk-YIBOOKQQ.mjs → chunk-KN2YSKXZ.mjs} +1 -1
- package/dist/{chunk-6CHBU7O4.mjs → chunk-MLE4MVYC.mjs} +1 -1
- package/dist/{chunk-PDGKBATF.mjs → chunk-NK6VC264.mjs} +1 -1
- package/dist/{chunk-TOQGLBWF.mjs → chunk-NYXA6X56.mjs} +1 -1
- package/dist/{chunk-5ZQURRIM.mjs → chunk-TH4XENKH.mjs} +1 -1
- package/dist/{chunk-JOF7ESSA.mjs → chunk-YJDQYKZU.mjs} +8 -8
- package/dist/{deploy-64ZVAQ3R.mjs → deploy-JE6TUYCL.mjs} +53 -9
- package/dist/dev-V7JSUVOI.mjs +8 -0
- package/dist/dispatcher.mjs +29 -29
- package/dist/{doctor-6ZIFM5J5.mjs → doctor-TTI237ZY.mjs} +7 -7
- package/dist/{domains-7D7WJAMC.mjs → domains-BZKGIDF4.mjs} +4 -4
- package/dist/{env-PAENNABF.mjs → env-FZNXKLGL.mjs} +5 -5
- package/dist/{explain-REIDDRKC.mjs → explain-HVK5ZNTV.mjs} +2 -2
- package/dist/{inspect-MGVG4Z44.mjs → inspect-X3M7WSTL.mjs} +2 -2
- package/dist/introspect-KTB4BXU5.mjs +8 -0
- package/dist/{link-AWC7VJNN.mjs → link-4NM2QMI5.mjs} +4 -4
- package/dist/{lint-EYKIQ6RO.mjs → lint-DDZ7HUQN.mjs} +1 -1
- package/dist/{list-7ZL6FRKT.mjs → list-L6FMY3AF.mjs} +2 -2
- package/dist/{login-NCO4P5G5.mjs → login-ZTSWYO5G.mjs} +4 -4
- package/dist/{logout-MF6SOLPE.mjs → logout-Z57X6HPE.mjs} +2 -2
- package/dist/{logs-76TCJBIQ.mjs → logs-36BLYJHJ.mjs} +3 -3
- package/dist/{mock-CAWNXSGC.mjs → mock-EVER34IX.mjs} +1 -1
- package/dist/{projects-P65SUETQ.mjs → projects-4XRNHJAH.mjs} +3 -3
- package/dist/repo-X3KZ5R64.mjs +9 -0
- package/dist/{rollback-ZL3V7SYH.mjs → rollback-WCRWXSE3.mjs} +4 -4
- package/dist/{status-52HG63FE.mjs → status-VA326DWD.mjs} +3 -3
- package/dist/{unlink-TCG3NBAR.mjs → unlink-H3BO3DOQ.mjs} +2 -2
- package/dist/{update-MBEPZANS.mjs → update-XUDRJZDE.mjs} +3 -3
- package/dist/{whoami-B5Y5KSOZ.mjs → whoami-ZWTJMEDB.mjs} +3 -3
- package/package.json +2 -2
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/package.json +1 -1
- package/dist/introspect-APRI7R7K.mjs +0 -8
- package/dist/repo-ZPYZK3KW.mjs +0 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { promptYesNo } from './chunk-TH4XENKH.mjs';
|
|
3
|
+
import { REGISTRY_INDEX, REGISTRY } from './chunk-YJDQYKZU.mjs';
|
|
4
4
|
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
5
|
-
import { CliError, CLI_ERROR_CODE, info, bold, dim, success, result, yellow } from './chunk-
|
|
5
|
+
import { CliError, CLI_ERROR_CODE, info, bold, dim, success, result, yellow } from './chunk-3QUK5BPY.mjs';
|
|
6
6
|
import { mkdirSync, existsSync, writeFileSync } from 'fs';
|
|
7
7
|
import { resolve, join, dirname } from 'path';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
3
|
-
import { ApiClient } from './chunk-
|
|
4
|
-
import { readAuth } from './chunk-
|
|
5
|
-
import { CliError, CLI_ERROR_CODE, step, yellow, dim, success, info, result, bold, green } from './chunk-
|
|
3
|
+
import { ApiClient } from './chunk-NYXA6X56.mjs';
|
|
4
|
+
import { readAuth } from './chunk-MLE4MVYC.mjs';
|
|
5
|
+
import { CliError, CLI_ERROR_CODE, step, yellow, dim, success, info, result, bold, green } from './chunk-3QUK5BPY.mjs';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { promises } from 'fs';
|
|
8
8
|
import path from 'path';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { startLoopbackServer, generateState, openBrowser } from './chunk-
|
|
2
|
+
import { startLoopbackServer, generateState, openBrowser } from './chunk-3KRSHO6J.mjs';
|
|
3
3
|
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
4
|
-
import { resolveBaseUrl } from './chunk-
|
|
5
|
-
import { readAuth, writeStepUp } from './chunk-
|
|
6
|
-
import { isJsonMode, CliError, CLI_ERROR_CODE, step, info, dim, success, result } from './chunk-
|
|
4
|
+
import { resolveBaseUrl } from './chunk-NYXA6X56.mjs';
|
|
5
|
+
import { readAuth, writeStepUp } from './chunk-MLE4MVYC.mjs';
|
|
6
|
+
import { isJsonMode, CliError, CLI_ERROR_CODE, step, info, dim, success, result } from './chunk-3QUK5BPY.mjs';
|
|
7
7
|
|
|
8
8
|
// src/commands/auth-step-up.ts
|
|
9
9
|
var FLAG_NO_BROWSER = "no-browser";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { parseArgs } from './chunk-5KYR6WJB.mjs';
|
|
3
|
-
import { ApiClient } from './chunk-
|
|
4
|
-
import { readAuth, readProjectLink } from './chunk-
|
|
5
|
-
import { CliError, CLI_ERROR_CODE, success, result } from './chunk-
|
|
3
|
+
import { ApiClient } from './chunk-NYXA6X56.mjs';
|
|
4
|
+
import { readAuth, readProjectLink } from './chunk-MLE4MVYC.mjs';
|
|
5
|
+
import { CliError, CLI_ERROR_CODE, success, result } from './chunk-3QUK5BPY.mjs';
|
|
6
6
|
|
|
7
7
|
// src/commands/cancel.ts
|
|
8
8
|
function cancelEndpoint(businessId, projectId, deploymentId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { CliError, CLI_ERROR_CODE } from './chunk-
|
|
2
|
+
import { CliError, CLI_ERROR_CODE } from './chunk-3QUK5BPY.mjs';
|
|
3
3
|
import { randomBytes, createHash } from 'crypto';
|
|
4
4
|
import { createServer } from 'http';
|
|
5
5
|
import { spawn } from 'child_process';
|
|
@@ -18,7 +18,9 @@ var CLI_ERROR_CODE = {
|
|
|
18
18
|
/** Generic resource-not-found (e.g. unknown registry component, missing local fixture). */
|
|
19
19
|
NOT_FOUND: "NOT_FOUND",
|
|
20
20
|
/** Destructive op needs a fresh user re-auth — run `cimplify auth step-up`. */
|
|
21
|
-
STEP_UP_REQUIRED: "STEP_UP_REQUIRED"
|
|
21
|
+
STEP_UP_REQUIRED: "STEP_UP_REQUIRED",
|
|
22
|
+
/** The project's local build failed, so the deploy was not started. */
|
|
23
|
+
BUILD_FAILED: "BUILD_FAILED"
|
|
22
24
|
};
|
|
23
25
|
var EXIT_CODE = {
|
|
24
26
|
OK: 0,
|
|
@@ -38,7 +40,8 @@ var EXIT_CODE = {
|
|
|
38
40
|
AUTH_FAILED: 21,
|
|
39
41
|
UNAUTHORIZED: 22,
|
|
40
42
|
STEP_UP_REQUIRED: 23,
|
|
41
|
-
INVALID_INPUT: 30
|
|
43
|
+
INVALID_INPUT: 30,
|
|
44
|
+
BUILD_FAILED: 31
|
|
42
45
|
};
|
|
43
46
|
var EXIT_CODE_FOR = {
|
|
44
47
|
NOT_LOGGED_IN: EXIT_CODE.NOT_LOGGED_IN,
|
|
@@ -55,7 +58,8 @@ var EXIT_CODE_FOR = {
|
|
|
55
58
|
TIMEOUT: EXIT_CODE.TIMEOUT,
|
|
56
59
|
INTERACTIVE_REQUIRED: EXIT_CODE.INTERACTIVE_REQUIRED,
|
|
57
60
|
NOT_FOUND: EXIT_CODE.NOT_FOUND,
|
|
58
|
-
STEP_UP_REQUIRED: EXIT_CODE.STEP_UP_REQUIRED
|
|
61
|
+
STEP_UP_REQUIRED: EXIT_CODE.STEP_UP_REQUIRED,
|
|
62
|
+
BUILD_FAILED: EXIT_CODE.BUILD_FAILED
|
|
59
63
|
};
|
|
60
64
|
var CliError = class extends Error {
|
|
61
65
|
code;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { parseEnvFile } from './chunk-
|
|
3
|
-
import { package_default } from './chunk-
|
|
4
|
-
import { gitDetectRoot, gitCurrentBranch, gitCurrentSha, gitStatusPorcelain } from './chunk-
|
|
2
|
+
import { parseEnvFile } from './chunk-I2UP7YTG.mjs';
|
|
3
|
+
import { package_default } from './chunk-GCQKTUXN.mjs';
|
|
4
|
+
import { gitDetectRoot, gitCurrentBranch, gitCurrentSha, gitStatusPorcelain } from './chunk-KN2YSKXZ.mjs';
|
|
5
5
|
import { parseArgs } from './chunk-5KYR6WJB.mjs';
|
|
6
|
-
import { readAuthOrNull, readProjectLinkOrNull, readProjectState } from './chunk-
|
|
7
|
-
import { bold, dim, yellow, green, info, result, red } from './chunk-
|
|
6
|
+
import { readAuthOrNull, readProjectLinkOrNull, readProjectState } from './chunk-MLE4MVYC.mjs';
|
|
7
|
+
import { bold, dim, yellow, green, info, result, red } from './chunk-3QUK5BPY.mjs';
|
|
8
8
|
import { promises } from 'fs';
|
|
9
9
|
import path from 'path';
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { promptYesNo } from './chunk-
|
|
2
|
+
import { promptYesNo } from './chunk-TH4XENKH.mjs';
|
|
3
3
|
import { TOKEN_PURPOSE, REPO_PROVIDER, REPO_PROVIDER_VALUES } from './chunk-MXYUAJEW.mjs';
|
|
4
|
-
import { gitRemoteHead } from './chunk-
|
|
4
|
+
import { gitRemoteHead } from './chunk-KN2YSKXZ.mjs';
|
|
5
5
|
import { parseArgs, flagString, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
6
|
-
import { ApiClient } from './chunk-
|
|
7
|
-
import { readAuth, readProjectLink } from './chunk-
|
|
8
|
-
import { CliError, CLI_ERROR_CODE, isJsonMode, result, dim, success, info, bold } from './chunk-
|
|
6
|
+
import { ApiClient } from './chunk-NYXA6X56.mjs';
|
|
7
|
+
import { readAuth, readProjectLink } from './chunk-MLE4MVYC.mjs';
|
|
8
|
+
import { CliError, CLI_ERROR_CODE, isJsonMode, result, dim, success, info, bold } from './chunk-3QUK5BPY.mjs';
|
|
9
9
|
|
|
10
10
|
// src/commands/repo.ts
|
|
11
11
|
var SUB_PROVISION = "provision";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { parseEnvFile, formatEnvFile } from './chunk-
|
|
2
|
+
import { parseEnvFile, formatEnvFile } from './chunk-I2UP7YTG.mjs';
|
|
3
3
|
import { ENV_SCOPE, PUBLIC_ENV_PREFIX } from './chunk-MXYUAJEW.mjs';
|
|
4
4
|
import { parseArgs, flagBool } from './chunk-5KYR6WJB.mjs';
|
|
5
|
-
import { ApiClient } from './chunk-
|
|
6
|
-
import { readAuth, readProjectLink } from './chunk-
|
|
7
|
-
import { info, CliError, CLI_ERROR_CODE, dim } from './chunk-
|
|
5
|
+
import { ApiClient } from './chunk-NYXA6X56.mjs';
|
|
6
|
+
import { readAuth, readProjectLink } from './chunk-MLE4MVYC.mjs';
|
|
7
|
+
import { info, CliError, CLI_ERROR_CODE, dim } from './chunk-3QUK5BPY.mjs';
|
|
8
8
|
import { spawn } from 'child_process';
|
|
9
9
|
import { promises } from 'fs';
|
|
10
10
|
import path from 'path';
|
|
@@ -159,4 +159,4 @@ async function run(argv) {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
export {
|
|
162
|
+
export { detectPackageManager, mergeEnvEntries, run };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// package.json
|
|
3
3
|
var package_default = {
|
|
4
4
|
name: "@cimplify/cli",
|
|
5
|
-
version: "0.
|
|
5
|
+
version: "0.15.0",
|
|
6
6
|
description: "Cimplify CLI \u2014 deploy, manage env vars, link projects, and scaffold storefronts",
|
|
7
7
|
keywords: [
|
|
8
8
|
"cimplify",
|
|
@@ -43,7 +43,7 @@ var package_default = {
|
|
|
43
43
|
"@babel/parser": "^8.0.4",
|
|
44
44
|
"@babel/traverse": "^8.0.4",
|
|
45
45
|
"@babel/types": "^8.0.4",
|
|
46
|
-
"@cimplify/sdk": "^0.
|
|
46
|
+
"@cimplify/sdk": "^0.102.0",
|
|
47
47
|
re2js: "^1.4.0"
|
|
48
48
|
},
|
|
49
49
|
devDependencies: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { TERMINAL_DEPLOYMENT_STATUSES, DEPLOYMENT_STATUS } from './chunk-MXYUAJEW.mjs';
|
|
3
|
-
import { dim, CliError, CLI_ERROR_CODE, failure, success, isJsonMode } from './chunk-
|
|
3
|
+
import { dim, CliError, CLI_ERROR_CODE, failure, success, isJsonMode } from './chunk-3QUK5BPY.mjs';
|
|
4
4
|
|
|
5
5
|
// src/progress.ts
|
|
6
6
|
var POLL_INTERVAL_MS = 1e3;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { isAutoYes, isInteractive, CliError, CLI_ERROR_CODE } from './chunk-
|
|
2
|
+
import { isAutoYes, isInteractive, CliError, CLI_ERROR_CODE } from './chunk-3QUK5BPY.mjs';
|
|
3
3
|
import readline from 'readline';
|
|
4
4
|
|
|
5
5
|
async function promptLine(question) {
|