From c0756ef629aa68b231bf256f3d40834041e0e7fe Mon Sep 17 00:00:00 2001 From: Serhii Yaschuk Date: Wed, 31 Aug 2022 15:57:37 +0300 Subject: [PATCH] chore: Add "exports" to package.json --- bundles/all-3.8/package.json | 12 ++++++++++++ bundles/all-4.0/package.json | 12 ++++++++++++ bundles/all-4.1/package.json | 12 ++++++++++++ bundles/pixi-spine/package.json | 12 ++++++++++++ packages/base/package.json | 12 ++++++++++++ packages/loader-3.8/package.json | 12 ++++++++++++ packages/loader-4.0/package.json | 12 ++++++++++++ packages/loader-4.1/package.json | 12 ++++++++++++ packages/loader-base/package.json | 14 +++++++++++++- packages/loader-uni/package.json | 15 ++++++++++++++- packages/runtime-3.7/package.json | 14 +++++++++++++- packages/runtime-3.8/package.json | 14 +++++++++++++- packages/runtime-4.0/package.json | 12 ++++++++++++ packages/runtime-4.1/package.json | 12 ++++++++++++ 14 files changed, 173 insertions(+), 4 deletions(-) diff --git a/bundles/all-3.8/package.json b/bundles/all-3.8/package.json index 06f3125e..7eaf4e94 100644 --- a/bundles/all-3.8/package.json +++ b/bundles/all-3.8/package.json @@ -6,6 +6,18 @@ "module": "lib/all-3.8.es.js", "bundle": "dist/pixi-spine-3.8.umd.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/all-3.8.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/all-3.8.js" + } + } + }, "namespace": "PIXI.spine", "dependencies": { "@pixi-spine/base": "~3.1.0", diff --git a/bundles/all-4.0/package.json b/bundles/all-4.0/package.json index b46b763c..279e9b41 100644 --- a/bundles/all-4.0/package.json +++ b/bundles/all-4.0/package.json @@ -6,6 +6,18 @@ "module": "lib/all-4.0.es.js", "bundle": "dist/pixi-spine-4.0.umd.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/all-4.0.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/all-4.0.js" + } + } + }, "namespace": "PIXI.spine", "dependencies": { "@pixi-spine/base": "~3.1.0", diff --git a/bundles/all-4.1/package.json b/bundles/all-4.1/package.json index 2733af2d..591d5ec8 100644 --- a/bundles/all-4.1/package.json +++ b/bundles/all-4.1/package.json @@ -6,6 +6,18 @@ "module": "lib/all-4.1.es.js", "bundle": "dist/pixi-spine-4.1.umd.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/all-4.1.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/all-4.1.js" + } + } + }, "namespace": "PIXI.spine", "dependencies": { "@pixi-spine/base": "~3.1.0", diff --git a/bundles/pixi-spine/package.json b/bundles/pixi-spine/package.json index ced7f3e3..d696fd69 100644 --- a/bundles/pixi-spine/package.json +++ b/bundles/pixi-spine/package.json @@ -6,6 +6,18 @@ "module": "lib/all.es.js", "bundle": "dist/pixi-spine.umd.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/all.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/all.js" + } + } + }, "namespace": "PIXI.spine", "dependencies": { "@pixi-spine/base": "~3.1.0", diff --git a/packages/base/package.json b/packages/base/package.json index fb6547b3..431c01ff 100644 --- a/packages/base/package.json +++ b/packages/base/package.json @@ -7,6 +7,18 @@ "bundle": "dist/base.js", "namespace": "PIXI.spine", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/base.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/base.js" + } + } + }, "peerDependencies": { "@pixi/constants": "^6.1.0", "@pixi/core": "^6.1.0", diff --git a/packages/loader-3.8/package.json b/packages/loader-3.8/package.json index 0b8d0682..b03d90a9 100644 --- a/packages/loader-3.8/package.json +++ b/packages/loader-3.8/package.json @@ -6,6 +6,18 @@ "module": "lib/loader-3.8.es.js", "bundle": "dist/loader-3.8.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/loader-3.8.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/loader-3.8.js" + } + } + }, "namespace": "PIXI.spine", "peerDependencies": { "@pixi/app": "^6.1.0", diff --git a/packages/loader-4.0/package.json b/packages/loader-4.0/package.json index 94dbec56..b4b2d706 100644 --- a/packages/loader-4.0/package.json +++ b/packages/loader-4.0/package.json @@ -6,6 +6,18 @@ "module": "lib/loader-4.0.es.js", "bundle": "dist/loader-4.0.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/loader-4.0.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/loader-4.0.js" + } + } + }, "namespace": "PIXI.spine", "peerDependencies": { "@pixi/app": "^6.1.0", diff --git a/packages/loader-4.1/package.json b/packages/loader-4.1/package.json index 01bf4504..03880d00 100644 --- a/packages/loader-4.1/package.json +++ b/packages/loader-4.1/package.json @@ -6,6 +6,18 @@ "module": "lib/loader-4.1.es.js", "bundle": "dist/loader-4.1.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/loader-4.1.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/loader-4.1.js" + } + } + }, "namespace": "PIXI.spine", "peerDependencies": { "@pixi/app": "^6.1.0", diff --git a/packages/loader-base/package.json b/packages/loader-base/package.json index dac75019..d03dee73 100644 --- a/packages/loader-base/package.json +++ b/packages/loader-base/package.json @@ -6,6 +6,18 @@ "module": "lib/loader-base.es.js", "bundle": "dist/loader-base.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/loader-base.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/loader-base.js" + } + } + }, "namespace": "PIXI.spine", "peerDependencies": { "@pixi/app": "^6.1.0", @@ -52,4 +64,4 @@ "tslib": "~2.2.0", "typescript": "~4.3.0" } -} +} \ No newline at end of file diff --git a/packages/loader-uni/package.json b/packages/loader-uni/package.json index 3466b612..462df8d7 100644 --- a/packages/loader-uni/package.json +++ b/packages/loader-uni/package.json @@ -4,7 +4,20 @@ "description": "Pixi integration with EsotericSoftware Spine, big, contains all runtimes", "main": "lib/loader-uni.js", "module": "lib/loader-uni.es.js", + "bundle": "dist/loader-uni.js", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/loader-uni.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/loader-uni.js" + } + } + }, "namespace": "PIXI.spine", "peerDependencies": { "@pixi/loaders": "^6.1.0" @@ -50,4 +63,4 @@ "tslib": "~2.2.0", "typescript": "~4.3.0" } -} +} \ No newline at end of file diff --git a/packages/runtime-3.7/package.json b/packages/runtime-3.7/package.json index dd62af12..5e474f44 100644 --- a/packages/runtime-3.7/package.json +++ b/packages/runtime-3.7/package.json @@ -7,6 +7,18 @@ "bundle": "dist/runtime-3.7.js", "namespace": "PIXI.spine37", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/runtime-3.7.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/runtime-3.7.js" + } + } + }, "peerDependencies": { "@pixi/constants": "^6.1.0", "@pixi/math": "^6.1.0" @@ -48,4 +60,4 @@ "tslib": "~2.2.0", "typescript": "~4.3.0" } -} +} \ No newline at end of file diff --git a/packages/runtime-3.8/package.json b/packages/runtime-3.8/package.json index 4bcfeb60..96c52111 100644 --- a/packages/runtime-3.8/package.json +++ b/packages/runtime-3.8/package.json @@ -7,6 +7,18 @@ "bundle": "dist/runtime-3.8.js", "namespace": "PIXI.spine38", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/runtime-3.8.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/runtime-3.8.js" + } + } + }, "peerDependencies": { "@pixi/constants": "^6.1.0", "@pixi/math": "^6.1.0" @@ -48,4 +60,4 @@ "tslib": "~2.2.0", "typescript": "~4.3.0" } -} +} \ No newline at end of file diff --git a/packages/runtime-4.0/package.json b/packages/runtime-4.0/package.json index b457e0e8..fdaf50c1 100644 --- a/packages/runtime-4.0/package.json +++ b/packages/runtime-4.0/package.json @@ -7,6 +7,18 @@ "bundle": "dist/runtime-4.0.js", "namespace": "PIXI.spine40", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/runtime-4.0.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/runtime-4.0.js" + } + } + }, "peerDependencies": { "@pixi/constants": "^6.1.0", "@pixi/math": "^6.1.0" diff --git a/packages/runtime-4.1/package.json b/packages/runtime-4.1/package.json index 2383cd37..0ecb9b6b 100644 --- a/packages/runtime-4.1/package.json +++ b/packages/runtime-4.1/package.json @@ -7,6 +7,18 @@ "bundle": "dist/runtime-4.1.js", "namespace": "PIXI.spine41", "types": "./index.d.ts", + "exports": { + ".": { + "import": { + "types": "./index.d.ts", + "default": "./lib/runtime-4.1.es.js" + }, + "require": { + "types": "./index.d.ts", + "default": "./lib/runtime-4.1.js" + } + } + }, "peerDependencies": { "@pixi/constants": "^6.1.0", "@pixi/math": "^6.1.0"