opcn1214-generator: the npm package ships only its two dist entry files and can't be imported (same for shaam-uniform-format-generator)
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 83/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- nodejs, typescript
- Área
- build-system, release
Línea de trabajo
Lee los archivos package.json de packages/opcn1214-generator y packages/shaam-uniform-format-generator y luego ejecuta yarn pack --dry-run en cada paquete. Añade el contenido de dist indicado a los archivos de los paquetes y confirma que las ejecuciones de prueba incluyen los directorios dist completos, sin src, tests, .bob ni documentación. El issue también describe la importación de snapshots alpha recientes y la resolución de sus tipos TypeScript como comprobaciones de finalización.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
The published @accounter/opcn1214-generator package can't be imported. The alpha published on 2026-11-30 (0.2.0-alpha-20261130163912-63f117c7…) contains only two files from dist/:
dist/esm/index.jsdist/cjs/index.js
index.js re-exports from ./api/generate.js, ./api/parse.js, ./api/response.js, ./layout/registry.js and other modules, none of which are in the tarball. So
import { generate1214 } from '@accounter/opcn1214-generator';
fails with ERR_MODULE_NOT_FOUND. dist/typings/ is missing too, so TypeScript finds no types.
The tarball also carries files a consumer doesn't need:
.bob/(285 files)src/tests/, including the fixturesdocumentation/, including the 1.5 MB form PDFscripts/,CLAUDE.mdand the tsconfigs
That comes to 481 files and 6.2 MB unpacked.
Cause
packages/opcn1214-generator/.gitignore lists dist, and package.json has no files field. npm then uses .gitignore for exclusions and keeps only the entry files it always includes (main, module).
The same bug in shaam-uniform-format-generator
@accounter/[email protected], the current latest, is built the same way:
- its
.gitignorelistsdist/, andpackage.jsonhas nofilesfield; - the tarball has only
dist/esm/index.jsanddist/cjs/index.js, which re-export./types/index.js,./generator/index.jsand./parser/index.js; - it also ships
src/,tests/,spec.md,prompt_plan.mdandtodo.md.
shaam6111-generator and pcn874-generator have no package .gitignore, so they probably ship dist/, but also their sources. Worth checking while fixing this.
Fix
Add "files": ["dist"] to package.json in both packages. npm always includes package.json, README and LICENSE on top of that. During the review of #5076, yarn pack --dry-run with this field listed all of dist/ and nothing else. That run used stand-in dist files.
Done when
-
yarn pack --dry-runin each package lists the fulldist/(esm, cjs, typings) and nosrc/,tests/,.bob/or documentation. - A fresh alpha snapshot of each package imports in a scratch project, and
tscresolves its types. - Optional: a CI step that packs each published package and imports it, so this can't come back.
Found while reviewing #5076 (H4, release wiring). Its minor changeset would publish the same broken tarball as a stable release. The review wasn't posted because the PR merged first. Re-checked on main at 31245bc7f and against the npm registry on 2026-11-30.
- Lenguaje dominante
- TypeScript
- Estrellas
- 30
- Forks
- 10
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 276
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Urigo/accounter-fullstack
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Urigo/accounter-fullstack#5302 ·
Los mantenedores suelen responder en 2 días
-
1214 annual-audit-workflow
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Urigo/accounter-fullstack#5257 ·
Los mantenedores suelen responder en 2 días
-
annual-audit-workflow
Dificultad 1/5 1-3 horas Aptitud para principiantes 87/100
Urigo/accounter-fullstack#5252 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Urigo/accounter-fullstack#4919 ·
Los mantenedores suelen responder en 2 días
-
Business-trip attendee mutations throw TypeError instead of a clear error when no row is affectedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Urigo/accounter-fullstack#4917 ·
Los mantenedores suelen responder en 2 días
Todos los issues de Urigo/accounter-fullstack
Issues similares
-
area: integrations documentation priority: P2 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eddiejaoude/StackDash#798 ·
Los mantenedores suelen responder en 1 día
-
bot:ai-assisted component:midnight-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
midnightntwrk/midnight-js#1790 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area:vscode bug has repro platform:macos platform:vscode regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDAbiertocheck:passed streams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día