@wp-playground/blueprints 1.0.27 → 1.0.28
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/index.cjs +2 -1
- package/index.cjs.map +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -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);
|