yurkimusY
Denoβ€’14mo ago
yurkimus

IntelliSense doesn't work with npm:minio@8.0.2

Looking for help if someone have solved this already.

I have the following
deno.json
:

{
  "imports": {
    "minio": "npm:minio@8.0.2",

    ...other packages

    "source/": "./source/"
  }
}


After I run the installation script:

deno install --vendor --entrypoint source/*


There are vendor and
node_modules
directories appearing in the root directory.

The exports part of minio's
package.json
:

"exports": {
    ".": {
      "require": "./dist/main/minio.js",
      "types": "./types/esm/minio.d.ts",
      "default": "./dist/esm/minio.mjs"
    },
    "./dist/main/internal/*": null,
    "./dist/main/*": {
      "require": "./dist/main/*",
      "default": null
    },
    "./dist/esm/internal/*": null,
    "./dist/esm/*": {
      "import": "./dist/esm/*",
      "default": null
    },
    "./package.json": "./package.json"
  },


I have attached node_modules/minio/package.json to the message as well.

I didn't find any info in the Deno Docs on how the deno reads the package.json, so if someone can explain this as well I will be happy.
Was this page helpful?