From d80024fe8cfacfad146905be619b3688f42c66f1 Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Thu, 9 Nov 2023 08:42:33 +0100 Subject: [PATCH] Prepare no_dist version --- package.json | 42 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 046381b..c14752e 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,41 @@ "type": "git", "url": "git@github.com:Caleydo/tourdino.git" }, - "main": "dist/index.js", - "types": "dist/index.d.ts", + "main": "src/index.ts", + "types": "src/index.ts", + "exports": { + ".": { + "types": [ + "./dist/index.d.ts", + "./src/index.ts" + ], + "import": [ + "./dist/index.js", + "./src/index.ts" + ], + "default": [ + "./dist/index.js", + "./src/index.ts" + ] + }, + "./phovea_registry": [ + "./dist/phovea_registry.js", + "./src/phovea_registry.ts" + ], + "./dist/phovea_registry": [ + "./dist/phovea_registry.js", + "./src/phovea_registry.ts" + ], + "./src/scss/*": [ + "./dist/scss/*", + "./src/scss/*" + ], + "./dist/scss/*": [ + "./dist/scss/*", + "./src/scss/*" + ], + "./package.json": "./package.json" + }, "files": [ "src", "dist" @@ -48,7 +81,6 @@ "docs": "visyn_scripts docs", "lint:fix": "visyn_scripts lint --fix", "lint": "visyn_scripts lint", - "prepack": "npm run build", "start": "visyn_scripts start --env workspace_mode=single", "storybook:build": "NODE_OPTIONS=--max_old_space_size=4096 build-storybook", "storybook": "NODE_OPTIONS=--max_old_space_size=4096 start-storybook -p 6006", @@ -65,13 +97,13 @@ "d3.parsets": "git+ssh://git@github.com/jasondavies/d3-parsets#v1.2.4", "jstat": "^1.9.4", "lodash": "~4.17.20", - "tdp_core": "git+ssh://git@github.com:datavisyn/tdp_core#develop", + "tdp_core": "git+ssh://git@github.com:datavisyn/tdp_core#no_dist", "vega": "~5.20.0", "vega-embed": "6.19.1", "vega-functions": "5.12.0", "vega-lite": "5.1.1", "vega-parser": "6.1.3", - "visyn_scripts": "git+ssh://git@github.com/datavisyn/visyn_scripts.git#develop", + "visyn_scripts": "git+ssh://git@github.com/datavisyn/visyn_scripts.git#no_dist", "xxhashjs": "^0.2.2" }, "resolutions": {