From ad91126e4a8b6f32f3f1c864990dfbf2ff1b9c90 Mon Sep 17 00:00:00 2001 From: Benoit Tremblay Date: Mon, 1 Apr 2024 10:44:37 -0400 Subject: [PATCH] Fix TypeScript for CJS (#480) --- packages/react-cookie/index.d.ts | 1 - packages/react-cookie/package.json | 5 ++--- packages/universal-cookie-express/package.json | 4 ++-- packages/universal-cookie-koa/package.json | 4 ++-- packages/universal-cookie/package.json | 5 ++--- 5 files changed, 8 insertions(+), 11 deletions(-) delete mode 100644 packages/react-cookie/index.d.ts diff --git a/packages/react-cookie/index.d.ts b/packages/react-cookie/index.d.ts deleted file mode 100644 index e660210..0000000 --- a/packages/react-cookie/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './esm'; diff --git a/packages/react-cookie/package.json b/packages/react-cookie/package.json index 3f692bc..aa99564 100644 --- a/packages/react-cookie/package.json +++ b/packages/react-cookie/package.json @@ -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": { ".": { @@ -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" @@ -23,7 +23,6 @@ "esm", "cjs", "umd", - "index.d.mts", "LICENSE" ], "repository": { diff --git a/packages/universal-cookie-express/package.json b/packages/universal-cookie-express/package.json index ad716e2..64fe6f3 100644 --- a/packages/universal-cookie-express/package.json +++ b/packages/universal-cookie-express/package.json @@ -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": { ".": { @@ -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" diff --git a/packages/universal-cookie-koa/package.json b/packages/universal-cookie-koa/package.json index 93ee56a..5a35471 100644 --- a/packages/universal-cookie-koa/package.json +++ b/packages/universal-cookie-koa/package.json @@ -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": { ".": { @@ -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" diff --git a/packages/universal-cookie/package.json b/packages/universal-cookie/package.json index a601490..a9337e9 100644 --- a/packages/universal-cookie/package.json +++ b/packages/universal-cookie/package.json @@ -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": { ".": { @@ -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" @@ -22,7 +22,6 @@ "esm", "cjs", "umd", - "index.d.mts", "LICENSE" ], "repository": {