Skip to content

Commit

Permalink
Fix TypeScript for CJS (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
eXon committed Apr 1, 2024
1 parent 3584961 commit ad91126
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/react-cookie/index.d.ts

This file was deleted.

5 changes: 2 additions & 3 deletions packages/react-cookie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "7.1.2",
"description": "Universal cookies for React",
"main": "cjs/index.js",
"types": "cjs/index.d.mts",
"types": "cjs/index.d.ts",
"module": "esm/index.mjs",
"exports": {
".": {
Expand All @@ -12,7 +12,7 @@
"default": "./esm/index.mjs"
},
"require": {
"types": "./cjs/index.d.mts",
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"default": "./cjs/index.js"
Expand All @@ -23,7 +23,6 @@
"esm",
"cjs",
"umd",
"index.d.mts",
"LICENSE"
],
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/universal-cookie-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "7.1.2",
"description": "Hook cookies get/set on Express for server-rendering",
"main": "cjs/index.js",
"types": "cjs/index.d.mts",
"types": "cjs/index.d.ts",
"module": "esm/index.mjs",
"exports": {
".": {
Expand All @@ -12,7 +12,7 @@
"default": "./esm/index.mjs"
},
"require": {
"types": "./cjs/index.d.mts",
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"default": "./cjs/index.js"
Expand Down
4 changes: 2 additions & 2 deletions packages/universal-cookie-koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "7.1.2",
"description": "Hook cookies get/set on Koa for server-rendering",
"main": "cjs/index.js",
"types": "cjs/index.d.mts",
"types": "cjs/index.d.ts",
"module": "esm/index.mjs",
"exports": {
".": {
Expand All @@ -12,7 +12,7 @@
"default": "./esm/index.mjs"
},
"require": {
"types": "./cjs/index.d.mts",
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"default": "./cjs/index.js"
Expand Down
5 changes: 2 additions & 3 deletions packages/universal-cookie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "universal-cookie",
"version": "7.1.2",
"description": "Universal cookies for JavaScript",
"types": "cjs/index.d.mts",
"types": "cjs/index.d.ts",
"module": "esm/index.mjs",
"exports": {
".": {
Expand All @@ -11,7 +11,7 @@
"default": "./esm/index.mjs"
},
"require": {
"types": "./cjs/index.d.mts",
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"default": "./cjs/index.js"
Expand All @@ -22,7 +22,6 @@
"esm",
"cjs",
"umd",
"index.d.mts",
"LICENSE"
],
"repository": {
Expand Down

0 comments on commit ad91126

Please sign in to comment.