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

174
Views
Parcel bundled type declarations not being exposed

So I am building a pure typescript library and using parcel as the bundler. when built it generates 3 files to the ./lib folder index.cjs.js index.es.js and index.d.ts now they build just fine and look alright but when installing it into the library the types just don't come up. This are the configs in my package.json. Please, thanks.

 "main": "lib/index.cjs.js",
 "module": "lib/index.es.js",
 "source": "./src/index.ts",
 "types": "lib/index.d.ts",
 "transformers": {
    "*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"]
  },
 "scripts": {
    "test": "jest",
    "build": "rm -rf ./lib && parcel build --no-source-maps --no-cache",
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx"
  },

about 4 years ago · Juan Pablo Isaza
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!