@sociallane/elements 1.0.4 → 1.0.5
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/package.json +1 -1
- package/scripts/install.js +10 -2
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -123,9 +123,17 @@ function install(targetPath, minimal) {
|
|
|
123
123
|
console.log('Copying package...');
|
|
124
124
|
if (minimal) {
|
|
125
125
|
copyPackage(target, (src) => {
|
|
126
|
-
if (src.includes('node_modules'))
|
|
126
|
+
if (src.includes('node_modules')) {
|
|
127
|
+
console.log('EXCLUDE node_modules:', src);
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
127
130
|
const rel = path.relative(packageRoot, src).split(path.sep).join('/');
|
|
128
|
-
|
|
131
|
+
const exclude = rel === 'packages/widgets' || rel.startsWith('packages/widgets/');
|
|
132
|
+
if (exclude) {
|
|
133
|
+
console.log('EXCLUDE packages/widgets:', rel);
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
return true;
|
|
129
137
|
});
|
|
130
138
|
const widgetsDest = path.join(target, 'packages', 'widgets');
|
|
131
139
|
if (!existsSync(widgetsDest)) {
|