From a5759e9d8d4fba2abe0ba3d869c4f94b05f12989 Mon Sep 17 00:00:00 2001 From: Jonas de Luna Skulberg <113468143+jonasdeluna@users.noreply.github.com> Date: Mon, 29 Jan 2024 23:33:30 +0100 Subject: [PATCH] Publish package to npm (#67) * Publish package to npm * v1.0.73 * v1.0.731 * v1.0.732 * v1.0.733 * v1.0.734 * Publish to npm, rename Graphica component to GraphicaCore --- .npmrc | 1 - package.json | 12 ++++-------- src/{Graphica.ts => GraphicaCore.ts} | 4 ++-- src/index.ts | 2 +- 4 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 .npmrc rename src/{Graphica.ts => GraphicaCore.ts} (99%) diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 685a17c..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -@kateter-platform:registry=https://npm.pkg.github.com/kateter-platform \ No newline at end of file diff --git a/package.json b/package.json index 6a55114..f5f0ef9 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,13 @@ { - "name": "@kateter-platform/graphica-gemini", - "version": "1.0.71", + "name": "@kateter-platform/graphica", + "version": "1.0.734", "source": "./src/index.ts", "description": "A tool for advanced graphing and visualization", - "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/kateter-platform/graphica-gemini.git" - }, - "publishConfig": { - "registry": "https://npm.pkg.github.com/", - "access": "restricted" + "url": "git+https://github.com/kateter-platform/graphica.git" }, + "main": "dist/index.js", "devDependencies": { "@babel/core": "^7.22.5", "@babel/preset-env": "^7.22.5", diff --git a/src/Graphica.ts b/src/GraphicaCore.ts similarity index 99% rename from src/Graphica.ts rename to src/GraphicaCore.ts index cb6aad0..a9d89ad 100644 --- a/src/Graphica.ts +++ b/src/GraphicaCore.ts @@ -46,7 +46,7 @@ const defaultGraphicaOptions: GraphicaOptions = { //Note for docs: minZoom is how far you are allowed to zoom IN. MaxZoom is how far you are allowed to zoom OUT. -class Graphica { +class GraphicaCore { components: Component[]; draggables: Component[]; updateComponents: Component[]; @@ -270,4 +270,4 @@ class Graphica { } } -export default Graphica; +export default GraphicaCore; diff --git a/src/index.ts b/src/index.ts index abb3089..526b14d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export { default as Graphica } from "./Graphica"; +export { default as GraphicaCore } from "./GraphicaCore"; export { default as Arc } from "./Components/Arc"; export { default as Bracket } from "./Components/Bracket"; export { default as Button } from "./Components/Button";