Skip to content

Commit

Permalink
feat: accept absolute path in linked package of build package
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrzn committed Jan 4, 2023
1 parent 073433c commit 2d01e6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/lib/project/PolywrapProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ export class PolywrapProject extends Project<PolywrapManifest> {

buildManifest.linked_packages.map(
(linkedPackage: { path: string; name: string; filter?: string }) => {
const sourceDir = path.join(rootDir, linkedPackage.path);
const sourceDir = path.isAbsolute(linkedPackage.path)
? linkedPackage.path
: path.join(rootDir, linkedPackage.path);
const destinationDir = path.join(cacheSubPath, linkedPackage.name);

// Update the cache
Expand Down

0 comments on commit 2d01e6c

Please sign in to comment.