cyhnkckali / vue3-color-picker

The Unlicense
33 stars 9 forks source link

typescript support, need to define type export in package.json exports #2

Closed StringKe closed 4 months ago

StringKe commented 4 months ago

Could not find a declaration file for module @cyhnkckali/vue3-color-picker.

package.json

  "exports": {
    ".": {
      "import": "./dist/vue3-color-picker.js",
      "require": "./dist/vue3-color-picker.umd.cjs",
      "types": "./dist/index.d.ts" // add this line
    },
    "./dist/style.css": {
      "import": "./dist/style.css",
      "require": "./dist/style.css"
    }
  },