From a251eb23d39040f8c9e43c48aafa398671d217d5 Mon Sep 17 00:00:00 2001 From: Daven Quinn Date: Fri, 25 Oct 2024 06:20:40 -0500 Subject: [PATCH] Fix publish script --- packages/map-interface/package.json | 2 +- packages/ui-components/package.json | 2 +- scripts/prepare.ts | 2 +- scripts/publish.ts | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/map-interface/package.json b/packages/map-interface/package.json index 7a539858..9218e413 100644 --- a/packages/map-interface/package.json +++ b/packages/map-interface/package.json @@ -1,6 +1,6 @@ { "name": "@macrostrat/map-interface", - "version": "1.0.6", + "version": "1.0.7", "description": "Map interface for Macrostrat", "main": "dist/main.cjs", "module": "dist/module.mjs", diff --git a/packages/ui-components/package.json b/packages/ui-components/package.json index e838745b..9834c33b 100644 --- a/packages/ui-components/package.json +++ b/packages/ui-components/package.json @@ -1,6 +1,6 @@ { "name": "@macrostrat/ui-components", - "version": "4.0.5", + "version": "4.0.6", "description": "UI components for React and Blueprint.js", "main": "dist/main.cjs", "module": "dist/module.mjs", diff --git a/scripts/prepare.ts b/scripts/prepare.ts index e7b7b3bc..c9f1c9eb 100644 --- a/scripts/prepare.ts +++ b/scripts/prepare.ts @@ -9,7 +9,7 @@ import { } from "./status"; /* Runs, npm build in the correct pkg directory*/ -function prepareModule(dir, pkg) { +export function prepareModule(dir, pkg) { const pkgData = getPackageData(pkg); logAction(pkgData, "Building"); try { diff --git a/scripts/publish.ts b/scripts/publish.ts index c5f952ae..44649b24 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -7,6 +7,7 @@ import { getPackageData, logAction, } from "./status"; +import { prepareModule } from "./prepare"; /* tries to run npm publish and if succeeds adds a tag to the repo*/ function publishModule(dir, pkg) { @@ -35,6 +36,7 @@ async function main() { for (const pkg of pkgsToPublish) { const dir = getPackageDirectory(pkg); + prepareModule(dir, pkg); publishModule(dir, pkg); } }