Skip to content

Commit

Permalink
Fix bad build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Oct 25, 2024
1 parent a1f266c commit e80bebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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.3",
"version": "1.0.4",
"description": "Map interface for Macrostrat",
"main": "dist/main.js",
"module": "dist/module.js",
Expand Down
5 changes: 5 additions & 0 deletions scripts/prepare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ function prepareModule(dir, pkg) {
const pkgData = getPackageData(pkg);
logAction(pkgData, "Building");
try {
// Clean the dist directory
execSync(`rm -rf ${dir}/dist`, {
stdio: "inherit",
});

execSync(`yarn workspace ${pkgData.name} run build`, {
stdio: "inherit",
maxBuffer: 1024 * 1024 * 20,
Expand Down

0 comments on commit e80bebd

Please sign in to comment.