From 93447ce18b1d2e5a264c1bbad77987aeed90c89b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lui=CC=81s=20Arteiro?= Date: Tue, 4 Jun 2024 04:17:32 +0100 Subject: [PATCH 1/3] fix: Removing "type: module" and bundling `.mjs` files. Accommodates older CommonJS-based `js` projects by removing `type: "module"` from `package.json`. --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 89cc7d9..4db3e75 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "aws-sdk-mock", "version": "6.0.1", "description": "Functions to mock the JavaScript aws-sdk", - "type": "module", - "main": "dist/index.cjs", + "main": "dist/index.js", + "module": "dist/index.mjs", "types": "dist/index.d.ts", "files": [ "dist", @@ -15,7 +15,7 @@ "nocov": "ts-mocha test/**/*.spec.ts", "test": "nyc ts-mocha test/**/*.spec.ts && tsd", "coverage": "nyc --report html ts-mocha test/**/*.spec.ts && open coverage/index.html", - "build": "tsup src/index.ts --format cjs, esm, --dts" + "build": "tsup src/index.ts --format esm,cjs --dts" }, "repository": { "type": "git", From d9d8502924a0dbd131c0b296ca4ac139e731090a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lui=CC=81s=20Arteiro?= Date: Tue, 4 Jun 2024 04:17:58 +0100 Subject: [PATCH 2/3] chore: Increase version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4db3e75..0fe2c9c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aws-sdk-mock", - "version": "6.0.1", + "version": "6.0.2", "description": "Functions to mock the JavaScript aws-sdk", "main": "dist/index.js", "module": "dist/index.mjs", From 4dec9aa5649b8a57c415ac3b2897c05e558fa929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lui=CC=81s=20Arteiro?= Date: Tue, 4 Jun 2024 04:21:49 +0100 Subject: [PATCH 3/3] chore: Update version in `package-lock.json` as well. --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0188d33..8793359 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aws-sdk-mock", - "version": "6.0.1", + "version": "6.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aws-sdk-mock", - "version": "6.0.1", + "version": "6.0.2", "license": "Apache-2.0", "dependencies": { "aws-sdk": "^2.1231.0",