@joystick.js/cli-canary 0.0.0-canary.1649 → 0.0.0-canary.1650
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,5 +4,5 @@ ${n+1===s?.errors?.length?"":`
|
|
|
4
4
|
`}`}c(`${t?`${p.yellowBright(t)}
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
`:""}${e}`,{level:"danger",docs:{push_config:"https://cheatcode.co/docs/push/config",deployment:"https://cheatcode.co/docs/push/subscription"}[o]}),process.exit(0)},h=async()=>{const o=await f();return o||(c(data?.error?.message,{level:"danger",docs:"https://cheatcode.co/docs/push/cli#authentication"}),process.exit(0))},Q=(o="")=>(c(`settings.${o}.json must contain a push config object. Add this following the docs link below and try again.`,{level:"danger",docs:"https://cheatcode.co/docs/push/config"}),process.exit(0)),y=async(o={},t={})=>{process.loader=new g,process.loader.print("Starting deployment...");const s=await h(),e=t?.environment||"production",r=(await u({environment:e}))?.config?.push||{},w=_(t?.push_server),i={status:"undeployed",deployment_secret:"abc123"},{confirm_deployment:d}=i?.status==="undeployed"?await m.prompt(a(
|
|
7
|
+
`:""}${e}`,{level:"danger",docs:{push_config:"https://cheatcode.co/docs/push/config",deployment:"https://cheatcode.co/docs/push/subscription"}[o]}),process.exit(0)},h=async()=>{const o=await f();return o||(c(data?.error?.message,{level:"danger",docs:"https://cheatcode.co/docs/push/cli#authentication"}),process.exit(0))},Q=(o="")=>(c(`settings.${o}.json must contain a push config object. Add this following the docs link below and try again.`,{level:"danger",docs:"https://cheatcode.co/docs/push/config"}),process.exit(0)),y=async(o={},t={})=>{process.loader=new g,process.loader.print("Starting deployment...");const s=await h(),e=t?.environment||"production",r=(await u({environment:e}))?.config?.push||{},w=_(t?.push_server),i={status:"undeployed",deployment_secret:"abc123"},{confirm_deployment:d}=i?.status==="undeployed"?await m.prompt(a([])):{confirm_deployment:!0};if(d){i?.status==="undeployed"&&console.log(`
|
|
8
8
|
`);const v=new Date().toISOString();await l({environment:e,encrypt_build:!0,encryption_key:i?.deployment_secret,silence_confirmation:!0}),console.log("Now do the docker build.")}};var R=y;export{R 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.1650",
|
|
5
|
+
"canary_version": "0.0.0-canary.1649",
|
|
6
6
|
"description": "The CLI for Joystick.",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"bin": {
|
|
@@ -93,7 +93,7 @@ const push = async (args = {}, options = {}) => {
|
|
|
93
93
|
|
|
94
94
|
// NOTE: A bit hacky but removes need for weird if {} statement nesting.
|
|
95
95
|
const { confirm_deployment } = deployment?.status === 'undeployed' ? await inquirer.prompt(
|
|
96
|
-
confirm_deployment_prompt(push_config_validation_response?.instances)
|
|
96
|
+
confirm_deployment_prompt([] || push_config_validation_response?.instances)
|
|
97
97
|
) : { confirm_deployment: true };
|
|
98
98
|
|
|
99
99
|
if (confirm_deployment) {
|
|
@@ -113,7 +113,7 @@ const push = async (args = {}, options = {}) => {
|
|
|
113
113
|
});
|
|
114
114
|
|
|
115
115
|
console.log('Now do the docker build.');
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
// process.loader.print('Uploading version...');
|
|
118
118
|
|
|
119
119
|
// await upload_build_to_cdn(
|