Hi wrote a package and published it on npm repository and showed icon "ts" on the site
This is package.json with "ts" icon "- https://unpkg.com/c2array@0.0.3/package.json
I wrote another package but missing "ts" icon
This is package.json mssing "ts" icon - https://unpkg.com/@salsan/iscss@1.0.0/package.json
The different from these two packages
d.ts file is generated from tsconfig.json
"declaration": true,
"declarationMap": true,
Any idea for resolve this issue ?
You have to specify the "types": "PATH TO YOU .D.TS FILE" in you package.json, like
{
"name": "@salsan/iscss",
"version": "1.0.0",
"description": "isCss is a Node.js package, return true if input is a valid Cascading Style Sheets",
"main": "./dist/index.js",
"types": "./dist/index.d.ts"
}