jotaijs / jotai-apollo

Apollo graphql client integration for jotai :rocket: :ghost:
MIT License
50 stars 4 forks source link

invaild exports location #4

Closed aidenlx closed 1 year ago

aidenlx commented 1 year ago

in current package.json, the exports point to files that no longer exists:

{
  "main": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    "./package.json": "./package.json",
    ".": {
      "types": "./dist/index.d.ts",
      "module": "./dist/index.mjs", <- out of date
      "import": "./dist/index.mjs", <- out of date
      "default": "./dist/index.js" <- out of date
    }
  }
}

the correct exports should be:

{
  "main": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    "./package.json": "./package.json",
    ".": {
      "types": "./dist/index.d.ts",
      "module": "./dist/index.js",
      "import": "./dist/index.js",
      "default": "./dist/index.cjs"
    }
  }
}
Aslemammad commented 1 year ago

@aidenlx Hey, Sure, I'd work on this tonight. it got updated but not released since I was working on the error handling. So much busy here.

Aslemammad commented 1 year ago

Done!