tobogganSe connecter

library

Prebuilt pebble components: drop-in custom elements, no compiler needed

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Dernier runAucun
0Étoiles
0Forks
2Issues

A package ships only the declarations its index reaches

The publish assembly copied all of dist/types into every package, so
@pebble/tablet 0.2.0 carried toaster's declarations, and @pebble/toaster
0.1.0 carried lifetime.d.ts, whose "@pebble/pebble" import names a package it
does not depend on (harmless only because index never reaches it).

scripts/declarations.ts walks the imports from types/<name>/index.d.ts and
returns what to ship, and fails the publish when a reached declaration
imports outside types/<name>/ or uses a bare import the package does not
declare; declared dependencies now reach the generated package.json. tablet
ships 3 declaration files and toaster 3, where each shipped 13. A consumer
typechecks against them with --strict and skipLibCheck off.

Published versions keep their extra files; the next release of each package
ships the trimmed set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 3 sem. · 1b56dd904b2c50d00a48a0217f61f7397c9a30ba

Parents 1c21b1c

3 fichiers modifiés, 147 ajouts, 5 suppressions