Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
TypeScript icon missing on packages on npm website

Hi wrote a package and published it on npm repository and showed icon "ts" on the site

enter image description here

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

Th

The different from these two packages

  • Package with "ts" icon, files are in one directory
  • Package mssing "ts" contain a sub-directory

d.ts file is generated from tsconfig.json

  "declaration": true,                            
  "declarationMap": true,   

Any idea for resolve this issue ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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"
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!