@joystick.js/cli-canary 0.0.0-canary.1669 → 0.0.0-canary.1670
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import d from"../../lib/build/index.js";import n from"../../lib/cli_log.js";import i from"./get_deployment.js";import p from"./get_push_domain.js";import c from"./get_settings_file.js";import l from"./get_deployment_token.js";import"./upload_build_to_push.js";import m from"../../lib/loader.js";const u=async(r="")=>{const e=await l(r);return e||(n("Must pass a deployment token via the -t or --token flag, or, have an existing deployment token on your machine.",{level:"danger",docs:"https://cheatcode.co/docs/push/authentication"}),process.exit(0))},y=async(r={},e={})=>{if(!e?.domain)return n("Must pass a deployment via -d or --domain flag.",{level:"danger",docs:"https://cheatcode.co/docs/push/cli"}),process.exit(0);process.loader=new m,process.loader.print("Starting deployment...");const a=await u(e?.deployment_token),s=e?.environment||"production",h=await c({environment:s}),o=p(e?.push_server),t=await i({domain:e?.domain,deployment_token:a,push_domain:o});if(console.log(t),!t)return n(`Sorry, we couldn't find a deployment with the domain ${e?.domain} on your account. If you haven't created it yet, head over to the Push dashboard: https://push.cheatcode.co/deployments/create`,{level:"danger",docs:"https://cheatcode.co/docs/push/deployments/create-a-new-deployment"}),process.exit(0);const _=new Date().toISOString();await d({environment:s,encrypt_build:!0,encryption_key:t?.deployment_secret,silence_confirmation:!0}),process.loader.print("Deploying to Push..."),process.loader.print(t?.intial_deployment_completed?`Deploying. Monitor your deployment at ${o}/deployments/${t?._id}.`:`Deploying. Finish your deployment's setup at ${o}/deployments/${t?._id}/setup.`)};var S=y;export{S as default};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joystick.js/cli-canary",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-canary.
|
|
5
|
-
"canary_version": "0.0.0-canary.
|
|
4
|
+
"version": "0.0.0-canary.1670",
|
|
5
|
+
"canary_version": "0.0.0-canary.1669",
|
|
6
6
|
"description": "The CLI for Joystick.",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"bin": {
|
|
@@ -12,7 +12,7 @@ const get_token_for_deployment = async (input_deployment_token = '') => {
|
|
|
12
12
|
|
|
13
13
|
if (!deployment_token) {
|
|
14
14
|
cli_log(
|
|
15
|
-
|
|
15
|
+
'Must pass a deployment token via the -t or --token flag, or, have an existing deployment token on your machine.',
|
|
16
16
|
{
|
|
17
17
|
level: "danger",
|
|
18
18
|
docs: "https://cheatcode.co/docs/push/authentication"
|