From 67940c8aa8e9e81b54ed87621c7ee1465189cbe2 Mon Sep 17 00:00:00 2001 From: Benoit Simard Date: Wed, 28 Jun 2023 16:24:23 +0200 Subject: [PATCH] [all] Try to fix #54 --- project/packages/core/package.json | 5 ++++- project/packages/layout-circlepack/package.json | 5 ++++- project/packages/layout-circular/package.json | 5 ++++- project/packages/layout-core/package.json | 5 ++++- project/packages/layout-force/package.json | 5 ++++- project/packages/layout-forceatlas2/package.json | 5 ++++- project/packages/layout-noverlap/package.json | 5 ++++- project/packages/layout-random/package.json | 5 ++++- 8 files changed, 32 insertions(+), 8 deletions(-) diff --git a/project/packages/core/package.json b/project/packages/core/package.json index 348c4c1c..29269eb0 100644 --- a/project/packages/core/package.json +++ b/project/packages/core/package.json @@ -22,7 +22,10 @@ "module": "./lib/react-sigma_core.esm.min.js", "typings": "./lib/index.d.ts", "exports": { - ".": "./lib/react-sigma_core.esm.min.js", + ".": { + "default": "./lib/react-sigma_core.esm.min.js", + "types": "./lib/index.d.ts" + }, "./lib/react-sigma.min.css": "./lib/react-sigma.min.css" }, "scripts": { diff --git a/project/packages/layout-circlepack/package.json b/project/packages/layout-circlepack/package.json index e3dc930c..85db548a 100644 --- a/project/packages/layout-circlepack/package.json +++ b/project/packages/layout-circlepack/package.json @@ -23,7 +23,10 @@ "module": "./lib/react-sigma_layout-circlepack.esm.min.js", "typings": "./lib/index.d.ts", "exports": { - ".": "./lib/react-sigma_layout-circlepack.esm.min.js" + ".": { + "default": "./lib/react-sigma_layout-circlepack.esm.min.js", + "types": "./lib/index.d.ts" + } }, "scripts": { "clean": "rimraf lib tsconfig.tsbuildinfo .rollup.cache", diff --git a/project/packages/layout-circular/package.json b/project/packages/layout-circular/package.json index 85562bfd..0a6782aa 100644 --- a/project/packages/layout-circular/package.json +++ b/project/packages/layout-circular/package.json @@ -22,7 +22,10 @@ "module": "./lib/react-sigma_layout-circular.esm.min.js", "typings": "./lib/index.d.ts", "exports": { - ".": "./lib/react-sigma_layout-circular.esm.min.js" + ".": { + "default": "./lib/react-sigma_layout-circular.esm.min.js", + "types": "./lib/index.d.ts" + } }, "publishConfig": { "access": "public", diff --git a/project/packages/layout-core/package.json b/project/packages/layout-core/package.json index bc7bc3b6..93953223 100644 --- a/project/packages/layout-core/package.json +++ b/project/packages/layout-core/package.json @@ -22,7 +22,10 @@ "module": "./lib/react-sigma_layout-core.esm.min.js", "typings": "./lib/index.d.ts", "exports": { - ".": "./lib/react-sigma_layout-core.esm.min.js" + ".": { + "default": "./lib/react-sigma_layout-core.esm.min.js", + "types": "./lib/index.d.ts" + } }, "scripts": { "clean": "rimraf lib tsconfig.tsbuildinfo .rollup.cache", diff --git a/project/packages/layout-force/package.json b/project/packages/layout-force/package.json index 713951ca..e6c20ce4 100644 --- a/project/packages/layout-force/package.json +++ b/project/packages/layout-force/package.json @@ -22,7 +22,10 @@ "module": "./lib/react-sigma_layout-force.esm.min.js", "typings": "./lib/index.d.ts", "exports": { - ".": "./lib/react-sigma_layout-force.esm.min.js" + ".": { + "default": "./lib/react-sigma_layout-force.esm.min.js", + "types": "./lib/index.d.ts" + } }, "scripts": { "clean": "rimraf lib tsconfig.tsbuildinfo .rollup.cache", diff --git a/project/packages/layout-forceatlas2/package.json b/project/packages/layout-forceatlas2/package.json index 62b0080e..aa602733 100644 --- a/project/packages/layout-forceatlas2/package.json +++ b/project/packages/layout-forceatlas2/package.json @@ -22,7 +22,10 @@ "module": "./lib/react-sigma_layout-forceatlas2.esm.min.js", "typings": "./lib/index.d.ts", "exports": { - ".": "./lib/react-sigma_layout-forceatlas2.esm.min.js" + ".": { + "default": "./lib/react-sigma_layout-forceatlas2.esm.min.js", + "types": "./lib/index.d.ts" + } }, "scripts": { "clean": "rimraf lib tsconfig.tsbuildinfo .rollup.cache", diff --git a/project/packages/layout-noverlap/package.json b/project/packages/layout-noverlap/package.json index 4e3b0537..42703ffc 100644 --- a/project/packages/layout-noverlap/package.json +++ b/project/packages/layout-noverlap/package.json @@ -22,7 +22,10 @@ "module": "./lib/react-sigma_layout-noverlap.esm.min.js", "typings": "./lib/index.d.ts", "exports": { - ".": "./lib/react-sigma_layout-noverlap.esm.min.js" + ".": { + "default": "./lib/react-sigma_layout-noverlap.esm.min.js", + "types": "./lib/index.d.ts" + } }, "scripts": { "clean": "rimraf lib tsconfig.tsbuildinfo .rollup.cache", diff --git a/project/packages/layout-random/package.json b/project/packages/layout-random/package.json index d20c96d7..fda7e423 100644 --- a/project/packages/layout-random/package.json +++ b/project/packages/layout-random/package.json @@ -22,7 +22,10 @@ "module": "./lib/react-sigma_layout-random.esm.min.js", "typings": "./lib/index.d.ts", "exports": { - ".": "./lib/react-sigma_layout-random.esm.min.js" + ".": { + "default": "./lib/react-sigma_layout-random.esm.min.js", + "types": "./lib/index.d.ts" + } }, "scripts": { "clean": "rimraf lib tsconfig.tsbuildinfo .rollup.cache",