Skip to content

Commit

Permalink
Fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Oct 25, 2024
1 parent dfed0f5 commit a251eb2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/map-interface/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-components/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions scripts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -35,6 +36,7 @@ async function main() {

for (const pkg of pkgsToPublish) {
const dir = getPackageDirectory(pkg);
prepareModule(dir, pkg);
publishModule(dir, pkg);
}
}
Expand Down

0 comments on commit a251eb2

Please sign in to comment.