@saidulbadhon/jssm-cli 1.5.2 → 1.5.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.
- package/dist/index.js +13 -11
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -4041,12 +4041,12 @@ async function loginCommand() {
|
|
|
4041
4041
|
console.log(`\u{1F4A1} Use 'jssm logout' to logout`);
|
|
4042
4042
|
return;
|
|
4043
4043
|
}
|
|
4044
|
-
|
|
4045
|
-
|
|
4044
|
+
let globalConfig = await loadGlobalConfig();
|
|
4045
|
+
let host = globalConfig.host;
|
|
4046
4046
|
if (!host) {
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4047
|
+
globalConfig.host = DEFAULT_HOST;
|
|
4048
|
+
await saveGlobalConfig(globalConfig);
|
|
4049
|
+
host = DEFAULT_HOST;
|
|
4050
4050
|
}
|
|
4051
4051
|
console.log("\u{1F510} Login to JSSM\n");
|
|
4052
4052
|
try {
|
|
@@ -4100,15 +4100,17 @@ async function registerCommand() {
|
|
|
4100
4100
|
const authData = await loadAuthData();
|
|
4101
4101
|
if (authData) {
|
|
4102
4102
|
console.log(`\u2705 Already logged in as ${authData.user.email}`);
|
|
4103
|
-
console.log(
|
|
4103
|
+
console.log(
|
|
4104
|
+
`\u{1F4A1} Use 'jssm logout' to logout first if you want to register a new account`
|
|
4105
|
+
);
|
|
4104
4106
|
return;
|
|
4105
4107
|
}
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
+
let globalConfig = await loadGlobalConfig();
|
|
4109
|
+
let host = globalConfig.host;
|
|
4108
4110
|
if (!host) {
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4111
|
+
globalConfig.host = DEFAULT_HOST;
|
|
4112
|
+
await saveGlobalConfig(globalConfig);
|
|
4113
|
+
host = DEFAULT_HOST;
|
|
4112
4114
|
}
|
|
4113
4115
|
console.log("\u{1F4DD} Register for JSSM\n");
|
|
4114
4116
|
try {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saidulbadhon/jssm-cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CLI for JSSM - Simple environment variable manager",
|
|
6
|
-
"author": "
|
|
6
|
+
"author": "Saidul Badhon",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"bin": {
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"build": "bun build src/index.ts --outdir dist --target bun --format esm && chmod +x dist/index.js",
|
|
33
33
|
"build:node": "npx esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --external:os --external:path --external:fs --external:crypto --external:child_process && chmod +x dist/index.js",
|
|
34
34
|
"type-check": "tsc --noEmit",
|
|
35
|
-
"prepublishOnly": "npm run build:node"
|
|
35
|
+
"prepublishOnly": "npm run build:node",
|
|
36
|
+
"publish": "npm publish --access public"
|
|
36
37
|
},
|
|
37
38
|
"engines": {
|
|
38
39
|
"node": ">=18.0.0"
|