@mdfriday/foundry 26.3.17 → 26.3.19
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/cli.js
CHANGED
|
@@ -3680,7 +3680,7 @@ var init_workspace_factory = __esm({
|
|
|
3680
3680
|
name: project.getName(),
|
|
3681
3681
|
deleteFiles: options.deleteFiles
|
|
3682
3682
|
});
|
|
3683
|
-
workspace.removeProject(
|
|
3683
|
+
workspace.removeProject(project.getId());
|
|
3684
3684
|
await this.save(workspace);
|
|
3685
3685
|
if (options.deleteFiles) {
|
|
3686
3686
|
await this.projectRepo.deleteProjectFiles(project.getPath());
|
|
@@ -8821,6 +8821,7 @@ var init_mdfriday_publisher = __esm({
|
|
|
8821
8821
|
const formData = this.buildFormData(
|
|
8822
8822
|
zipContent,
|
|
8823
8823
|
projectName,
|
|
8824
|
+
this.config.path || "",
|
|
8824
8825
|
this.config.deploymentType
|
|
8825
8826
|
);
|
|
8826
8827
|
const response = await this.httpClient.postMultipart(
|
|
@@ -8883,10 +8884,10 @@ var init_mdfriday_publisher = __esm({
|
|
|
8883
8884
|
/**
|
|
8884
8885
|
* Build multipart form data for upload
|
|
8885
8886
|
*/
|
|
8886
|
-
buildFormData(zipContent, projectName, deploymentType) {
|
|
8887
|
+
buildFormData(zipContent, projectName, path43, deploymentType) {
|
|
8887
8888
|
return {
|
|
8888
8889
|
type: deploymentType,
|
|
8889
|
-
path:
|
|
8890
|
+
path: path43,
|
|
8890
8891
|
id: "-1",
|
|
8891
8892
|
// NEW_ID
|
|
8892
8893
|
name: projectName,
|
|
@@ -9611,6 +9612,8 @@ var init_publish2 = __esm({
|
|
|
9611
9612
|
accessToken,
|
|
9612
9613
|
apiUrl,
|
|
9613
9614
|
deploymentType: mdConfig.type || "share",
|
|
9615
|
+
path: "",
|
|
9616
|
+
// TODO: 未来支持自定义路径
|
|
9614
9617
|
enabled: true
|
|
9615
9618
|
};
|
|
9616
9619
|
default:
|
|
@@ -55159,7 +55162,7 @@ For more information, visit: https://help.mdfriday.com
|
|
|
55159
55162
|
* Show version
|
|
55160
55163
|
*/
|
|
55161
55164
|
showVersion() {
|
|
55162
|
-
const version = "26.3.
|
|
55165
|
+
const version = "26.3.19";
|
|
55163
55166
|
return {
|
|
55164
55167
|
success: true,
|
|
55165
55168
|
message: `MDFriday CLI v${version}`
|