@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/setup.js +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropi/ui",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Dropi Design System — Web Components for Angular, React and Vue",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
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(projectRoot, 'node_modules', '@dropi/ui', srcRelativePath);
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