andsala / svelte-persistent-store

Persist your svelte store in localStorage or sessionStorage
MIT License
86 stars 5 forks source link

PR to update package.json exports to remove warnings. #21

Open typhonrt opened 2 years ago

typhonrt commented 2 years ago

Greets,

I'd like to make a PR or just get this module updated for better exports in package.json. This will remove several warnings from Node and Svelte. I can make a PR, but didn't want it to be sitting there for a while. Of course this is an easy update too for the maintainer.

Regards...

  "exports": {
    "./*": "./dist/*",
    ".": {
      "import": "./dist/index.mjs",
      "require": "./dist/index.js"
    },
    "./local": {
      "import": "./dist/local.mjs",
      "require": "./dist/local.js"
    },
    "./session": {
      "import": "./dist/session.mjs",
      "require": "./dist/session.js"
    },
    "./package.json": "./package.json"
  },