nsbp-cli 0.2.0 → 0.2.1
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/bin/nsbp.js +4 -1
- package/package.json +1 -1
package/bin/nsbp.js
CHANGED
|
@@ -76,8 +76,11 @@ program
|
|
|
76
76
|
fs.copySync(source, target, {
|
|
77
77
|
filter: (src) => {
|
|
78
78
|
// Exclude node_modules, build, .temp_cache, etc.
|
|
79
|
+
// Use relative path to avoid matching parent directory names
|
|
80
|
+
const relativePath = path.relative(source, src);
|
|
81
|
+
const segments = relativePath.split(path.sep);
|
|
79
82
|
const excluded = ['node_modules', '.temp_cache', 'build', '.git', '.DS_Store', '.serena'];
|
|
80
|
-
return !
|
|
83
|
+
return !segments.some(seg => excluded.includes(seg));
|
|
81
84
|
}
|
|
82
85
|
});
|
|
83
86
|
} else {
|