Skip to content

Commit 2b39095

Browse files
authored
Merge pull request #1470 from polywrap/chore/accept-abs-path-build-linked-package
chore: accept absolute path in linked package attribute of build manifest
2 parents 5d290ec + 44fe598 commit 2b39095

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cli/src/lib/project/PolywrapProject.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ export class PolywrapProject extends Project<PolywrapManifest> {
283283

284284
buildManifest.linked_packages.map(
285285
(linkedPackage: { path: string; name: string; filter?: string }) => {
286-
const sourceDir = path.join(rootDir, linkedPackage.path);
286+
const sourceDir = path.isAbsolute(linkedPackage.path)
287+
? linkedPackage.path
288+
: path.join(rootDir, linkedPackage.path);
287289
const destinationDir = path.join(cacheSubPath, linkedPackage.name);
288290

289291
// Update the cache

0 commit comments

Comments
 (0)