From 47f67f1903531ac54d42e9af9fb8a8da73566fd4 Mon Sep 17 00:00:00 2001 From: Michael Puehringer Date: Thu, 9 Nov 2023 08:38:04 +0100 Subject: [PATCH] Prepare no_dist version --- package.json | 45 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index ba01704..bd2f11a 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,41 @@ "npm": ">=8", "node": ">=16" }, - "private": true, - "main": "dist/index.js", - "types": "dist/index.d.ts", + "private": true,"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" + }, "scripts": { "all": "npm run lint:fix && npm run test && npm run build && npm run dist", "build": "npm run clean && npm run compile && npm run copy", @@ -39,7 +71,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", @@ -52,10 +83,10 @@ "dist" ], "dependencies": { - "ordino": "git+ssh://git@github.com:Caleydo/ordino#develop", + "ordino": "git+ssh://git@github.com:Caleydo/ordino#no_dist", "react-router-dom": "^5.2.0", - "tdp_core": "git+ssh://git@github.com:datavisyn/tdp_core#develop", - "visyn_scripts": "git+ssh://git@github.com/datavisyn/visyn_scripts#develop" + "tdp_core": "git+ssh://git@github.com:datavisyn/tdp_core#no_dist", + "visyn_scripts": "git+ssh://git@github.com/datavisyn/visyn_scripts#no_dist" }, "devDependencies": { "@types/react-router-dom": "^5.1.7"