@web42/cli 0.1.11 → 0.1.12
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/commands/push.js +5 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/commands/push.js
CHANGED
|
@@ -99,16 +99,18 @@ export const pushCommand = new Command("push")
|
|
|
99
99
|
}
|
|
100
100
|
let profile_image_data = undefined;
|
|
101
101
|
// Check for avatar/avatar.png or avatars/avatar.png
|
|
102
|
-
const
|
|
102
|
+
const avatarSearchPaths = [
|
|
103
103
|
join(cwd, "avatar/avatar.png"),
|
|
104
104
|
join(cwd, "avatars/avatar.png"),
|
|
105
105
|
join(cwd, "avatar.png"),
|
|
106
|
+
// Also check .web42/ for the one managed by build/pack
|
|
107
|
+
join(cwd, ".web42/avatar.png"),
|
|
106
108
|
];
|
|
107
|
-
for (const ap of
|
|
109
|
+
for (const ap of avatarSearchPaths) {
|
|
108
110
|
if (existsSync(ap)) {
|
|
109
111
|
try {
|
|
110
112
|
const stats = statSync(ap);
|
|
111
|
-
if (stats.size <=
|
|
113
|
+
if (stats.size <= 5 * 1024 * 1024) {
|
|
112
114
|
profile_image_data = readFileSync(ap).toString("base64");
|
|
113
115
|
break;
|
|
114
116
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.1.
|
|
1
|
+
export declare const CLI_VERSION = "0.1.12";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.1.
|
|
1
|
+
export const CLI_VERSION = "0.1.12";
|