You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: pack the SDK and import it from a clean install #107
Three past releases built and passed tests from source but failed for anyone installing the package: 0.10.0 (require() inside ESM), 0.13.0 (ERR_MODULE_NOT_FOUND) and the undeclared dependency fixed in #68. CI only runs tests from the source tree, so this class of bug can't be caught today.
Proposal, as a new job in sdk-test.yml:
npm pack, install the tarball in an empty temp project
import it as ESM and require it as CJS, and construct x402Serve() and initX402() with dummy config, no network
fail the job on any error
While there: the published 0.16.0 tarball ships test files (dist/*.test.js, .d.ts). Exclude them from the build or from files, and assert in the same job that no *.test.* file is in the tarball.
Disclosure: drafted with AI assistance under my direction and reviewed by hand.
Gracias por el interés. Varios de los comentarios aquí (y en otros issues abiertos esta semana) repiten el mismo texto plantilla palabra por palabra, así que no vamos a asignar por orden de comentario esta vez — si tienes experiencia real con el empaquetado del SDK o con el pipeline de CI, cuéntanos tu enfoque concreto para este caso.
I'll take it. A script run by a new clean-install job (Node 22, same install flags as the existing job) packs the SDK, fails on any *.test.* file or a missing entry point, installs the tarball into an empty project outside the monorepo, then runs an ESM import, a CJS require (Agent#initX402() and x402Serve() with dummy config, no network) and a strict tsc --noEmit against the shipped .d.ts. Test files are excluded via "!dist/**/*.test.*" in files, with no tsconfig/ts-jest changes. Verified locally: green with the fix, red without it. From my fork, PR with "Closes #107", AI use declared.
Activity
guptakumarranjeet150 commentedon Oct 8, 2026
Hello maintainers,
I am interested in taking up
CI: pack the SDK and import it from a clean install.Solution overview:
Please assign this to me if the plan looks good. Thanks!
Eras256 commentedon Oct 9, 2026
Gracias por el interés. Varios de los comentarios aquí (y en otros issues abiertos esta semana) repiten el mismo texto plantilla palabra por palabra, así que no vamos a asignar por orden de comentario esta vez — si tienes experiencia real con el empaquetado del SDK o con el pipeline de CI, cuéntanos tu enfoque concreto para este caso.
Edgadafi commentedon Oct 13, 2026
I'll take it. A script run by a new
clean-installjob (Node 22, same install flags as the existing job) packs the SDK, fails on any*.test.*file or a missing entry point, installs the tarball into an empty project outside the monorepo, then runs an ESM import, a CJS require (Agent#initX402()andx402Serve()with dummy config, no network) and a stricttsc --noEmitagainst the shipped.d.ts. Test files are excluded via"!dist/**/*.test.*"infiles, with no tsconfig/ts-jest changes. Verified locally: green with the fix, red without it. From my fork, PR with "Closes #107", AI use declared.PR: #132
ci(sdk): pack the SDK and import it from a clean install (nirium-prot…