From 62596800b0825623e3b90c5b31e101338efdc28f Mon Sep 17 00:00:00 2001 From: Joel Carter Date: Wed, 22 May 2024 08:13:51 -0500 Subject: [PATCH 1/2] Specify package type --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a9395fd..bdc1adc 100644 --- a/package.json +++ b/package.json @@ -73,5 +73,6 @@ "volta": { "node": "18.13.0", "yarn": "1.22.19" - } + }, + "type": "commonjs" } From 126a888d80eaec37e074a6e8cb9a43302d559400 Mon Sep 17 00:00:00 2001 From: Joel Carter Date: Wed, 22 May 2024 08:18:05 -0500 Subject: [PATCH 2/2] Update package.json --- package.json | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index bdc1adc..a2150d7 100644 --- a/package.json +++ b/package.json @@ -7,23 +7,24 @@ "version": "2.0.96", "description": "XYO Automation Witness", "sideeffects": false, - "engines": { - "node": ">=18 <19" - }, - "esm5": "dist/esm/index.js", "exports": { ".": { - "esm5": "./dist/esm/index.js", "node": { - "import": "./dist/cjs/index.js", - "require": "./dist/cjs/index.js" - }, - "default": "./dist/esm/index.js" + "import": { + "types": "./dist/node/index.d.mts", + "default": "./dist/node/index.mjs" + }, + "require": { + "types": "./dist/node/index.d.cts", + "default": "./dist/node/index.js" + } + } }, "./package.json": "./package.json" }, - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", + "main": "dist/node/index.js", + "module": "dist/node/index.mjs", + "types": "dist/node/index.d.ts", "scripts": { "start": "nodemon", "launch": "node --max-old-space-size=8192 --experimental-specifier-resolution=node ./dist/cjs/index.js", @@ -69,10 +70,14 @@ "ts-node": "^10.9.2", "typescript": "^5.4.5" }, - "packageManager": "yarn@3.3.1", + "packageManager": "yarn@4.1.1", + "private": true, + "engines": { + "node": ">=20.10.0 <21" + }, "volta": { - "node": "18.13.0", - "yarn": "1.22.19" + "node": "20.10.0", + "yarn": "4.1.1" }, "type": "commonjs" }