From 96f337e792c2411504c6c09490f6280cc0663c73 Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Tue, 12 Sep 2023 15:39:18 -0500 Subject: [PATCH] fix: get exports working in TS `nodeNext` --- package.json | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index acd2354..f23899c 100644 --- a/package.json +++ b/package.json @@ -2,22 +2,21 @@ "name": "oas-normalize", "version": "10.0.0", "description": "Tooling for converting, validating, and parsing OpenAPI, Swagger, and Postman API definitions", + "type": "module", "exports": { ".": { - "types": "./dist/index.d.ts", - "require": "./dist/index.js", - "import": "./dist/index.mjs" + "require": "./dist/index.cjs", + "import": "./dist/index.js" }, "./lib/utils": { - "types": "./dist/lib/utils.d.ts", - "require": "./dist/lib/utils.js", - "import": "./dist/lib/utils.mjs" + "require": "./dist/lib/utils.cjs", + "import": "./dist/lib/utils.js" }, "./package.json": "./package.json" }, - "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/index.d.ts", + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.cts", "engines": { "node": ">=18" },