@dropi/ui 0.1.33 → 0.1.34
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/setup.js +10 -2
package/package.json
CHANGED
package/scripts/setup.js
CHANGED
|
@@ -364,9 +364,17 @@ dropi-icon:not(.hydrated) {
|
|
|
364
364
|
|
|
365
365
|
// 5. Iconos y Lottie (Symlink/Copia de assets)
|
|
366
366
|
const publicDir = isAngular ? 'src/assets' : 'public';
|
|
367
|
-
|
|
367
|
+
|
|
368
|
+
// Resolver ruta real de @dropi/ui (compatible con Yarn Berry/PnP y npm)
|
|
369
|
+
let dropiUiRoot;
|
|
370
|
+
try {
|
|
371
|
+
dropiUiRoot = path.dirname(require.resolve('@dropi/ui/package.json', { paths: [projectRoot] }));
|
|
372
|
+
} catch (e) {
|
|
373
|
+
dropiUiRoot = path.join(projectRoot, 'node_modules', '@dropi/ui');
|
|
374
|
+
}
|
|
375
|
+
|
|
368
376
|
const setupAsset = (srcRelativePath, destRelativePath) => {
|
|
369
|
-
const src = path.join(
|
|
377
|
+
const src = path.join(dropiUiRoot, srcRelativePath);
|
|
370
378
|
const dest = path.join(projectRoot, publicDir, destRelativePath);
|
|
371
379
|
const destDir = path.dirname(dest);
|
|
372
380
|
|