Skip to content

Commit

Permalink
Update paths to JS file in package.json (#158)
Browse files Browse the repository at this point in the history
Since the published module (on npm) ships everything in the `dist` folder, the relevant entries in `package.json` should point into that folder. Otherwise Node's resolve algorithm will fail to import the ES modules. 

E.g. I use rollup with `@rollup/plugin-node-resolve` for bundling.
  • Loading branch information
semmel committed Aug 17, 2022
1 parent 5e27abe commit e9c1671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"cookie esm"
],
"type": "module",
"module": "index.js",
"types": "index.d.ts",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"repository": "markcellus/cookie-store",
"devDependencies": {
"@types/chai": "^4.2.14",
Expand Down

0 comments on commit e9c1671

Please sign in to comment.