From a63b018cad2b2be9272c4ff30d82447766b3cf4f Mon Sep 17 00:00:00 2001 From: Maksim Stepanov <17935127+delatrie@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:13:34 +0700 Subject: [PATCH] fix: make types the first in exports --- packages/allure-codeceptjs/package.json | 4 ++-- packages/allure-cucumberjs/package.json | 8 ++++---- packages/allure-cypress/package.json | 8 ++++---- packages/allure-jasmine/package.json | 1 + packages/allure-jest/package.json | 2 ++ packages/allure-js-commons/package.json | 8 ++++---- packages/allure-mocha/package.json | 8 ++++---- packages/allure-playwright/package.json | 6 +++--- packages/allure-vitest/package.json | 4 ++-- 9 files changed, 26 insertions(+), 23 deletions(-) diff --git a/packages/allure-codeceptjs/package.json b/packages/allure-codeceptjs/package.json index 851f25755..8e289e607 100644 --- a/packages/allure-codeceptjs/package.json +++ b/packages/allure-codeceptjs/package.json @@ -21,9 +21,9 @@ "license": "Apache-2.0", "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "require": "./dist/cjs/index.js" } }, "main": "./dist/cjs/index.js", diff --git a/packages/allure-cucumberjs/package.json b/packages/allure-cucumberjs/package.json index 6f6f175d4..69dbf9709 100644 --- a/packages/allure-cucumberjs/package.json +++ b/packages/allure-cucumberjs/package.json @@ -27,14 +27,14 @@ }, "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "require": "./dist/cjs/index.js" }, "./reporter": { + "types": "./dist/types/reporter.d.ts", "import": "./dist/esm/reporter.js", - "require": "./dist/cjs/reporter.js", - "types": "./dist/types/reporter.d.ts" + "require": "./dist/cjs/reporter.js" } }, "main": "./dist/cjs/index.js", diff --git a/packages/allure-cypress/package.json b/packages/allure-cypress/package.json index 20e430f1d..89512ed7f 100644 --- a/packages/allure-cypress/package.json +++ b/packages/allure-cypress/package.json @@ -25,14 +25,14 @@ "author": "Qameta Software (https://qameta.io/)", "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "require": "./dist/cjs/index.js" }, "./reporter": { + "types": "./dist/types/reporter.d.ts", "import": "./dist/esm/reporter.js", - "require": "./dist/cjs/reporter.js", - "types": "./dist/types/reporter.d.ts" + "require": "./dist/cjs/reporter.js" } }, "main": "./dist/cjs/index.js", diff --git a/packages/allure-jasmine/package.json b/packages/allure-jasmine/package.json index 1d85576ef..03b2dd7aa 100644 --- a/packages/allure-jasmine/package.json +++ b/packages/allure-jasmine/package.json @@ -26,6 +26,7 @@ }, "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" } diff --git a/packages/allure-jest/package.json b/packages/allure-jest/package.json index dbd6e4f7b..ce83a9b97 100644 --- a/packages/allure-jest/package.json +++ b/packages/allure-jest/package.json @@ -28,10 +28,12 @@ }, "exports": { "./node": { + "types": "./dist/types/node.d.ts", "import": "./dist/esm/node.js", "require": "./dist/cjs/node.js" }, "./jsdom": { + "types": "./dist/types/jsdom.d.ts", "import": "./dist/esm/jsdom.js", "require": "./dist/cjs/jsdom.js" } diff --git a/packages/allure-js-commons/package.json b/packages/allure-js-commons/package.json index 3fa0c7441..52a8ce9b1 100644 --- a/packages/allure-js-commons/package.json +++ b/packages/allure-js-commons/package.json @@ -34,27 +34,27 @@ }, "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts", "default": "./dist/cjs/index.js" }, "./sdk": { + "types": "./dist/types/sdk/index.d.ts", "import": "./dist/esm/sdk/index.js", "require": "./dist/cjs/sdk/index.js", - "types": "./dist/types/sdk/index.d.ts", "default": "./dist/cjs/sdk/index.js" }, "./sdk/reporter": { + "types": "./dist/types/sdk/reporter/index.d.ts", "import": "./dist/esm/sdk/reporter/index.js", "require": "./dist/cjs/sdk/reporter/index.js", - "types": "./dist/types/sdk/reporter/index.d.ts", "default": "./dist/cjs/sdk/reporter/index.js" }, "./sdk/runtime": { + "types": "./dist/types/sdk/runtime/index.d.ts", "import": "./dist/esm/sdk/runtime/index.js", "require": "./dist/cjs/sdk/runtime/index.js", - "types": "./dist/types/sdk/runtime/index.d.ts", "default": "./dist/cjs/sdk/runtime/index.js" } }, diff --git a/packages/allure-mocha/package.json b/packages/allure-mocha/package.json index 6227c8af9..5b4d5d61f 100644 --- a/packages/allure-mocha/package.json +++ b/packages/allure-mocha/package.json @@ -26,14 +26,14 @@ }, "exports": { ".": { + "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "require": "./dist/cjs/index.js" }, "./runtime": { + "types": "./dist/types/legacy.d.ts", "import": "./dist/esm/legacy.js", - "require": "./dist/cjs/legacy.js", - "types": "./dist/types/legacy.d.ts" + "require": "./dist/cjs/legacy.js" } }, "main": "./dist/cjs/index.js", diff --git a/packages/allure-playwright/package.json b/packages/allure-playwright/package.json index 9d1df9476..dd6091937 100644 --- a/packages/allure-playwright/package.json +++ b/packages/allure-playwright/package.json @@ -26,18 +26,18 @@ }, "exports": { ".": { - "require": "./dist/cjs/index.js", "types": "./dist/types/index.d.ts", + "require": "./dist/cjs/index.js", "default": "./dist/cjs/index.js" }, "./testplan": { - "require": "./dist/cjs/testplan.js", "types": "./dist/types/testplan.d.ts", + "require": "./dist/cjs/testplan.js", "default": "./dist/cjs/testplan.js" }, "./autoconfig": { - "require": "./dist/cjs/autoconfig.js", "types": "./dist/types/autoconfig.d.ts", + "require": "./dist/cjs/autoconfig.js", "default": "./dist/cjs/autoconfig.js" } }, diff --git a/packages/allure-vitest/package.json b/packages/allure-vitest/package.json index bbf229c4c..4fafacb49 100644 --- a/packages/allure-vitest/package.json +++ b/packages/allure-vitest/package.json @@ -27,13 +27,13 @@ "type": "module", "exports": { "./reporter": { - "import": "./dist/reporter.js", "types": "./dist/reporter.d.ts", + "import": "./dist/reporter.js", "default": "./dist/reporter.js" }, "./setup": { - "import": "./dist/setup.js", "types": "./dist/setup.d.ts", + "import": "./dist/setup.js", "default": "./dist/setup.js" } },