@wp-playground/blueprints 1.0.27 → 1.0.29
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/README.md +11 -0
- package/blueprint-schema-validator.js +8 -6
- package/blueprint-schema.json +3 -3
- package/index.cjs +4 -3
- package/index.cjs.map +1 -1
- package/index.js +5 -4
- package/index.js.map +1 -1
- package/lib/steps/install-plugin.d.ts +1 -1
- package/lib/steps/install-theme.d.ts +1 -1
- package/lib/steps/write-files.d.ts +12 -1
- package/package.json +16 -12
package/index.js
CHANGED
|
@@ -1231,7 +1231,8 @@ function zipDir($root, $output, $options = array())
|
|
|
1231
1231
|
$directory_path = $entry . '/';
|
|
1232
1232
|
array_push($directories, $directory_path);
|
|
1233
1233
|
} else if (is_file($entry)) {
|
|
1234
|
-
|
|
1234
|
+
// ensure compliance with zip spec by only using relative paths for files
|
|
1235
|
+
$zip->addFile($entry, ltrim(substr($entry, strlen($zip_root)), '/'));
|
|
1235
1236
|
}
|
|
1236
1237
|
}
|
|
1237
1238
|
closedir($handle);
|
|
@@ -2873,7 +2874,7 @@ for existing apps using this option.`
|
|
|
2873
2874
|
},
|
|
2874
2875
|
pluginZipFile: {
|
|
2875
2876
|
$ref: "#/definitions/FileReference",
|
|
2876
|
-
deprecated: ". Use
|
|
2877
|
+
deprecated: ". Use 'pluginData' instead."
|
|
2877
2878
|
},
|
|
2878
2879
|
options: {
|
|
2879
2880
|
$ref: "#/definitions/InstallPluginOptions",
|
|
@@ -2913,7 +2914,7 @@ for existing apps using this option.`
|
|
|
2913
2914
|
},
|
|
2914
2915
|
themeZipFile: {
|
|
2915
2916
|
$ref: "#/definitions/FileReference",
|
|
2916
|
-
deprecated: ". Use
|
|
2917
|
+
deprecated: ". Use 'themeData' instead."
|
|
2917
2918
|
},
|
|
2918
2919
|
options: {
|
|
2919
2920
|
$ref: "#/definitions/InstallThemeOptions",
|
|
@@ -3284,7 +3285,7 @@ Only the username field is required for user authentication.`
|
|
|
3284
3285
|
},
|
|
3285
3286
|
filesTree: {
|
|
3286
3287
|
$ref: "#/definitions/DirectoryReference",
|
|
3287
|
-
description: "The
|
|
3288
|
+
description: "The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."
|
|
3288
3289
|
}
|
|
3289
3290
|
},
|
|
3290
3291
|
required: ["filesTree", "step", "writeToPath"]
|