@grupo-elo-editorial/shared-ui-react 1.2.0 → 1.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/CHANGELOG.md +14 -0
- package/package.json +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) · Versioning:
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.2.1] — 2026-05-24 (Hotfix — exports.development leaking into published tarball)
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`exports` resolution in npm-consumed dev mode**: the package.json `exports."." .development` condition resolved to `./src/index.ts`, but `src/` was not included in the published tarball (`files: ["dist", ...]`). This worked silently when the package was consumed from the workspace (where `src/` exists), but broke any consumer that pulled `@grupo-elo-editorial/shared-ui-react` from npm and ran a tool that matches the `development` export condition (Webpack/Turbopack in Next.js dev mode, Vite dev). The failure mode was a hard *Module not found: Can't resolve '@grupo-elo-editorial/shared-ui-react'* with no obvious cause — webpack honored the condition, tried `./src/index.ts`, didn't find it, and gave up instead of falling through to `import`.
|
|
12
|
+
|
|
13
|
+
Fix removes the `development` condition entirely. Both workspace consumers and npm consumers now resolve via `import: ./dist/index.js`, which works in both contexts. Workspace developers can run `pnpm build --watch` if they need source HMR.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- `package.json` `version` bumped `1.2.0 → 1.2.1`.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
7
21
|
## [1.2.0] — 2026-05-24 (HeroCarousel aspect ratios + RSC compatibility)
|
|
8
22
|
|
|
9
23
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grupo-elo-editorial/shared-ui-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Grupo ELO Editorial — React component library. Multibrand-aware primitives (atoms/molecules/organisms/layout) and domain components, built on Radix UI + shadcn/ui, consuming @grupo-elo-editorial/design-tokens@^3.1.0. Tailwind CSS v4 bundled.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -34,10 +34,6 @@
|
|
|
34
34
|
],
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
|
37
|
-
"development": {
|
|
38
|
-
"types": "./src/index.ts",
|
|
39
|
-
"default": "./src/index.ts"
|
|
40
|
-
},
|
|
41
37
|
"types": "./dist/index.d.ts",
|
|
42
38
|
"import": "./dist/index.js"
|
|
43
39
|
},
|