From 41c7d726342597e064946b63921f70017cb5e631 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 03:14:38 +0000 Subject: [PATCH 1/2] chore(deps): update dependency publint to v0.2.2 --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index bb67b4bc..51bd2284 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "mocha": "10.2.0", "npm-run-all2": "6.0.6", "proxyquire": "2.1.3", - "publint": "0.1.16", + "publint": "0.2.2", "referee": "1.2.0", "referee-sinon": "1.0.3", "remark-cli": "11.0.0", @@ -10651,9 +10651,9 @@ "dev": true }, "node_modules/publint": { - "version": "0.1.16", - "resolved": "https://registry.npmjs.org/publint/-/publint-0.1.16.tgz", - "integrity": "sha512-wJgk7HnXDT5Ap0DjFYbGz78kPkN44iQvDiaq8P63IEEyNU9mYXvaMd2cAyIM6OgqXM/IA3CK6XWIsRq+wjNpgw==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/publint/-/publint-0.2.2.tgz", + "integrity": "sha512-2t2IO6Y8Z+QBNLG89bpRhTQH7Ifn/83Kr0dVVdmOybq7GAT6+M4YGZd5AhtfMJbYPmbT7YD469pDKLCK94Q2+Q==", "dev": true, "dependencies": { "npm-packlist": "^5.1.3", diff --git a/package.json b/package.json index 067e5e68..fb5a2db6 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "mocha": "10.2.0", "npm-run-all2": "6.0.6", "proxyquire": "2.1.3", - "publint": "0.1.16", + "publint": "0.2.2", "referee": "1.2.0", "referee-sinon": "1.0.3", "remark-cli": "11.0.0", From 8657f04dc7730e8ec6eddf00e2ab950b82553a42 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Tue, 12 Sep 2023 23:25:59 -0500 Subject: [PATCH 2/2] fix(type-definitions): defined separate definition files for esm vs cjs bundles --- .gitignore | 4 +++- package.json | 13 +++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 95a98c94..9d44632e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ node_modules/ coverage/ dist/ lib/ -.nyc_output +.nyc_output/ + +/index.d.mts diff --git a/package.json b/package.json index fb5a2db6..0b4d48c8 100644 --- a/package.json +++ b/package.json @@ -39,16 +39,21 @@ "chance" ], "exports": { - "types": "./index.d.ts", - "import": "./lib/any.mjs", - "require": "./lib/any.js" + "import": { + "types": "./index.d.mts", + "default": "./lib/any.mjs" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/any.js" + } }, "main": "lib/any.js", "module": "lib/any.mjs", "types": "./index.d.ts", "scripts": { "clean": "rimraf coverage/ lib/", - "build": "rollup -c", + "build": "rollup -c && cp ./index.d.ts ./index.d.mts", "lint:js": "eslint .", "lint:md": "remark . --frail", "lint:peer": "npm ls >/dev/null",