i-VRESSE / haddock3-analysis-components

Components to be used by analyse command of haddock3
Apache License 2.0
0 stars 0 forks source link

Are the types wrong? #6

Open sverhoeven opened 1 year ago

sverhoeven commented 1 year ago

Putting @i-vresse/haddock3-analysis-components on https://arethetypeswrong.github.io/

Gives

"@i-vresse/haddock3-analysis-components" "@i-vresse/haddock3-analysis-components/dist/style.css"
node10 💀 Resolution failed 💀 Resolution failed
node16 (from CJS) 💀 Resolution failed 💀 Resolution failed
node16 (from ESM) 🥴 Internal resolution error 💀 Resolution failed
bundler ✅ 💀 Resolution failed

I was expecting to see more green ticks.

sverhoeven commented 1 year ago

Also https://publint.dev/@i-vresse/haddock3-analysis-components@0.2.0 gives error in package.json

"main": "./dist/haddock3-analysis-components.umd.cjs", File does not exist (More info)

We should drop the umd as we are not producing it and can use esm instead.

sverhoeven commented 12 months ago

In package.json I replaced module + exports with

  "main": "./dist/haddock3-analysis-components.js",
  "types": "./dist/lib.d.ts",

This works for vs code and remix, but websites still complain