typefaces icon indicating copy to clipboard operation
typefaces copied to clipboard

Recent releases missing `files/` folder in npm package

Open jacobq opened this issue 5 years ago • 2 comments

Recently I updated my typeface-league-spartan package from v0.0.44 to v1.1.13 and found that this broke my application (font no longer loaded). A quick peek at the package tarballs from npm shows that 1.1.8 thru latest (1.1.13) do not contain the files/ folder, which is where the actual font assets are. I have no idea why this font wasn't part of the many other versions between here, and I suppose I shouldn't expect a v0.x package not to break when updating across a 3 years span, but still....

jacobq avatar Oct 16 '20 18:10 jacobq

Repro:

  1. Fetch https://registry.npmjs.org/typeface-league-spartan/-/typeface-league-spartan-0.0.44.tgz
  2. Observe presence of files/ folder in archive:
$ tar ztf typeface-league-spartan-0.0.44.tgz
package/package.json
package/.npmignore
package/README.md
package/SIL Open Font License.txt
package/files/.npmignore
package/files/league-spartan-700.eot
package/files/league-spartan-700.svg
package/files/league-spartan-700.ttf
package/files/league-spartan-700.woff
package/files/league-spartan-700.woff2
package/files-hash.json
package/index.css
  1. Fetch https://registry.npmjs.org/typeface-league-spartan/-/typeface-league-spartan-1.1.13.tgz
  2. Observe that the files/ folder is missing:
$ tar ztf typeface-league-spartan-1.1.13.tgz
package/index.css
package/files-hash.json
package/package.json
package/README.md
package/SIL Open Font License.txt

jacobq avatar Oct 16 '20 18:10 jacobq

Also, same thing for typeface-cooper-hewitt -- does it have something to do with these fonts not being part of Google Fonts?

jacobq avatar Oct 16 '20 18:10 jacobq