@flowgram.ai/cli 0.4.15 → 0.4.16
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.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +2 -2
- package/src/create-app/index.ts +2 -1
- package/src/utils/npm.ts +2 -1
package/dist/index.cjs
CHANGED
|
@@ -105,7 +105,8 @@ async function loadNpm(packageName) {
|
|
|
105
105
|
import_fs_extra.default.unlinkSync(tempTarballPath);
|
|
106
106
|
return new LoadedNpmPkg(packageName, packageLatestVersion, packagePath);
|
|
107
107
|
} catch (error) {
|
|
108
|
-
console.error(`Error downloading or extracting package
|
|
108
|
+
console.error(`Error downloading or extracting package`);
|
|
109
|
+
console.error(error);
|
|
109
110
|
throw error;
|
|
110
111
|
}
|
|
111
112
|
}
|
|
@@ -890,7 +891,8 @@ var createApp = async (projectName) => {
|
|
|
890
891
|
import_fs_extra2.default.unlinkSync(tempTarballPath);
|
|
891
892
|
return true;
|
|
892
893
|
} catch (error) {
|
|
893
|
-
console.error(`Error downloading or extracting package
|
|
894
|
+
console.error(`Error downloading or extracting package`);
|
|
895
|
+
console.error(error);
|
|
894
896
|
return false;
|
|
895
897
|
}
|
|
896
898
|
};
|
package/dist/index.js
CHANGED
|
@@ -88,7 +88,8 @@ async function loadNpm(packageName) {
|
|
|
88
88
|
fs.unlinkSync(tempTarballPath);
|
|
89
89
|
return new LoadedNpmPkg(packageName, packageLatestVersion, packagePath);
|
|
90
90
|
} catch (error) {
|
|
91
|
-
console.error(`Error downloading or extracting package
|
|
91
|
+
console.error(`Error downloading or extracting package`);
|
|
92
|
+
console.error(error);
|
|
92
93
|
throw error;
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -873,7 +874,8 @@ var createApp = async (projectName) => {
|
|
|
873
874
|
fs5.unlinkSync(tempTarballPath);
|
|
874
875
|
return true;
|
|
875
876
|
} catch (error) {
|
|
876
|
-
console.error(`Error downloading or extracting package
|
|
877
|
+
console.error(`Error downloading or extracting package`);
|
|
878
|
+
console.error(error);
|
|
877
879
|
return false;
|
|
878
880
|
}
|
|
879
881
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowgram.ai/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.16",
|
|
4
4
|
"description": "A CLI tool to create demo projects or sync materials",
|
|
5
5
|
"bin": {
|
|
6
6
|
"flowgram-cli": "./bin/index.js"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint": "^8.54.0",
|
|
29
29
|
"@typescript-eslint/parser": "^6.10.0",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
|
-
"@flowgram.ai/eslint-config": "0.4.
|
|
31
|
+
"@flowgram.ai/eslint-config": "0.4.16"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public",
|
package/src/create-app/index.ts
CHANGED
|
@@ -119,7 +119,8 @@ export const createApp = async (projectName?: string) => {
|
|
|
119
119
|
fs.unlinkSync(tempTarballPath);
|
|
120
120
|
return true;
|
|
121
121
|
} catch (error) {
|
|
122
|
-
console.error(`Error downloading or extracting package
|
|
122
|
+
console.error(`Error downloading or extracting package`);
|
|
123
|
+
console.error(error);
|
|
123
124
|
return false;
|
|
124
125
|
}
|
|
125
126
|
};
|
package/src/utils/npm.ts
CHANGED
|
@@ -110,7 +110,8 @@ export async function loadNpm(packageName: string): Promise<LoadedNpmPkg> {
|
|
|
110
110
|
|
|
111
111
|
return new LoadedNpmPkg(packageName, packageLatestVersion, packagePath);
|
|
112
112
|
} catch (error) {
|
|
113
|
-
console.error(`Error downloading or extracting package
|
|
113
|
+
console.error(`Error downloading or extracting package`);
|
|
114
|
+
console.error(error);
|
|
114
115
|
throw error;
|
|
115
116
|
}
|
|
116
117
|
}
|