Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix: Error for non-existant rootDir should not throw for virtual fs (#23
Browse files Browse the repository at this point in the history
)
  • Loading branch information
stephan-noel authored Oct 17, 2020
1 parent 01e26ee commit dc9cc65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions core/garment/src/garment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,13 +753,14 @@ async function garmentFromWorkspace(
const outputPaths = output ? [...arrayfy(output)] : [];
if (
currentActionGraph.getDirectDependantsOf(action).length &&
!outputPaths.length
!outputPaths.length &&
filesToWrite.length
) {
// if there was no "output" option provided but the action is in the chain and has a next action
// we create a temporary path for output to the memfs
// and the current action has output, we create a temporary path for output to the memfs
outputPaths.push(actionToOutputPath(action));
}
if (meta) {
if (meta && outputPaths.length) {
meta.outputPath = outputPaths[0]; // Next actions can use this output path to create an input
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"gr": "node local_garment/node_modules/.bin/garment",
"gr": "node local_garment/node_modules/@garment/cli/lib/cli.js",
"gr:local": "node core/cli/lib/cli.js",
"build": "yarn gr build",
"build:ci": "yarn gr build --ts.configFile tsconfig.ci.json",
Expand Down

0 comments on commit dc9cc65

Please sign in to comment.