Skip to content

Commit

Permalink
chore: Add "exports" to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
SerG-Y committed Aug 31, 2022
1 parent 1a10098 commit c0756ef
Show file tree
Hide file tree
Showing 14 changed files with 173 additions and 4 deletions.
12 changes: 12 additions & 0 deletions bundles/all-3.8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions bundles/all-4.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions bundles/all-4.1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions bundles/pixi-spine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions packages/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions packages/loader-3.8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions packages/loader-4.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions packages/loader-4.1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 13 additions & 1 deletion packages/loader-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -52,4 +64,4 @@
"tslib": "~2.2.0",
"typescript": "~4.3.0"
}
}
}
15 changes: 14 additions & 1 deletion packages/loader-uni/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -50,4 +63,4 @@
"tslib": "~2.2.0",
"typescript": "~4.3.0"
}
}
}
14 changes: 13 additions & 1 deletion packages/runtime-3.7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -48,4 +60,4 @@
"tslib": "~2.2.0",
"typescript": "~4.3.0"
}
}
}
14 changes: 13 additions & 1 deletion packages/runtime-3.8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -48,4 +60,4 @@
"tslib": "~2.2.0",
"typescript": "~4.3.0"
}
}
}
12 changes: 12 additions & 0 deletions packages/runtime-4.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 12 additions & 0 deletions packages/runtime-4.1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c0756ef

Please sign in to comment.