Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix : Fix ESM exports #441

Merged
merged 4 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions packages/react-cookie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
"version": "7.0.0",
"description": "Universal cookies for React",
"main": "cjs/index.js",
"types": "cjs/index.d.ts",
"module": "esm/index.mjs",
"exports": {
".": {
"import": "./esm/index.mjs",
"require": "./cjs/index.js"
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/index.mjs"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"default": "./cjs/index.js"
}
},
"types": "esm/index.d.ts",
"sideEffects": false,
"files": [
"esm",
Expand Down
14 changes: 11 additions & 3 deletions packages/universal-cookie-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
"version": "7.0.0",
"description": "Hook cookies get/set on Express for server-rendering",
"main": "cjs/index.js",
"types": "cjs/index.d.ts",
"module": "esm/index.mjs",
"exports": {
".": {
"import": "./esm/index.mjs",
"require": "./cjs/index.js"
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/index.mjs"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"default": "./cjs/index.js"
}
},
"types": "esm/index.d.ts",
"sideEffects": false,
"files": [
"esm",
Expand Down
14 changes: 11 additions & 3 deletions packages/universal-cookie-koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@
"version": "7.0.0",
"description": "Hook cookies get/set on Koa for server-rendering",
"main": "cjs/index.js",
"types": "cjs/index.d.ts",
"module": "esm/index.mjs",
"exports": {
".": {
"import": "./esm/index.mjs",
"require": "./cjs/index.js"
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/index.mjs"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"default": "./cjs/index.js"
}
},
"types": "esm/index.d.ts",
"sideEffects": false,
"files": [
"esm",
Expand Down
15 changes: 11 additions & 4 deletions packages/universal-cookie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
"name": "universal-cookie",
"version": "7.0.0",
"description": "Universal cookies for JavaScript",
"main": "cjs/index.js",
"types": "cjs/index.d.ts",
eXon marked this conversation as resolved.
Show resolved Hide resolved
"module": "esm/index.mjs",
"exports": {
".": {
"import": "./esm/index.mjs",
"require": "./cjs/index.js"
"import": {
"types": "./esm/index.d.ts",
"default": "./esm/index.mjs"
},
"require": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"default": "./cjs/index.js"
}
},
"types": "esm/index.d.ts",
"sideEffects": false,
"files": [
"esm",
Expand Down