@vexblocks/cli 2.0.7 → 2.0.8
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.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -249,7 +249,8 @@ async function downloadAndExtractPackage(packagePath, targetDir, onProgress, opt
|
|
|
249
249
|
const localFiles = await collectLocalFiles(targetDir);
|
|
250
250
|
for (const localFile of localFiles) {
|
|
251
251
|
const relPath = path2.relative(targetDir, localFile);
|
|
252
|
-
|
|
252
|
+
const isHidden = relPath.split(path2.sep).some((segment) => segment.startsWith("."));
|
|
253
|
+
if (!isHidden && !remoteRelativePaths.has(relPath)) {
|
|
253
254
|
await fs2.remove(localFile);
|
|
254
255
|
}
|
|
255
256
|
}
|