Missing typescript types in scoped packages
See original GitHub issueDescribe the bug
@theme-ui/*
packages have missing typescript types
.
To Reproduce
Inspect the latest version of @theme-ui/color@0.3.1
:
$ npm view @theme-ui/color
@theme-ui/color@0.3.1 | MIT | deps: 2 | versions: 14
Color manipulation utilities for Theme UI
dist
.tarball: https://registry.npmjs.org/@theme-ui/color/-/color-0.3.1.tgz
.shasum: fceffc0be305ad6ca6be9755ac9cafc955b1e6f5
.integrity: sha512-Bgew6etspp087AdrKuMpcWjIQDQ8UTp28wtHCXgi1Ip5ClFn9i91DvaKgqXk9UwQJFL/IwydX8Bks/+u9tf0WA==
.unpackedSize: 26.9 kB
dependencies:
@theme-ui/css: ^0.3.1 polished: ^3.4.1
maintainers:
- johno <johnotander@gmail.com>
- jxnblk <jxnblk@gmail.com>
dist-tags:
latest: 0.3.1 next: 0.3.0-alpha.6
published a month ago by jxnblk <jxnblk@gmail.com>
If we download the package: https://registry.npmjs.org/@theme-ui/color/-/color-0.3.1.tgz
We found out that types are missing:
{
"name": "@theme-ui/color",
"version": "0.3.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"scripts": {
"prepare": "microbundle --no-compress",
"watch": "microbundle watch --no-compress"
},
"dependencies": {
"@theme-ui/css": "^0.3.1",
"polished": "^3.4.1"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",
"gitHead": "f6380fc356ce97e64bf50ba60e0bc6f38a25dabe"
}
This is quite weird since I’m able to build the project locally and I can confirm that types are being outputted to /dist
and the relevant entry shows up in the package.json
file.
I can’t see the build process (ci) but I’m guessing there’s something happening during ci/build that is dropping or not considering typescript types, maybe something to do with missing .npmignore
file or a missing files
entry in package.json
Expected behavior Output packages should have typescript type definitions
Screenshots
Additional context
I can confirm this is also happening with other packages like @theme-ui/core
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top GitHub Comments
hey @ivoreis, it’s already published https://www.npmjs.com/package/theme-ui/v/0.4.0-alpha.0
Going to close this issue in favor of tracking in #668