Skip to content

Commit

Permalink
fix: monobundle
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Mar 13, 2024
1 parent c52ac4f commit c802a97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion nodedevpkg/monobundle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@innoai-tech/monobundle",
"version": "0.13.0",
"version": "0.13.1",
"monobundle": {
"exports": {
".": "./src/index.ts",
Expand Down
5 changes: 4 additions & 1 deletion nodedevpkg/monobundle/src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export const bundle = async ({
}

if (project.root === cwd) {
return await bootstrap(project);
// monorepo root
if ((await project.pm.workspaces(project.root)).length) {
return await bootstrap(project);
}
}

const pkg = JSON.parse(String(await readFile(join(cwd, "package.json")))) as {
Expand Down

0 comments on commit c802a97

Please sign in to comment.