nsbp-cli 0.1.4 → 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.
Files changed (2) hide show
  1. package/bin/nsbp.js +4 -1
  2. 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 !excluded.some(ex => src.includes(ex));
83
+ return !segments.some(seg => excluded.includes(seg));
81
84
  }
82
85
  });
83
86
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsbp-cli",
3
- "version": "0.1.4",
3
+ "version": "0.2.1",
4
4
  "description": "CLI tool for creating NSBP (Node React SSR by Webpack) projects",
5
5
  "main": "index.js",
6
6
  "files": [