Skip to content

Commit 5fcea78

Browse files
committed
use fallback for path
1 parent 4fd2eeb commit 5fcea78

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
## [v1.0.2](https://github.com/push2cloud/compiler-workspace-resolver/compare/v1.0.1...v1.0.2)
2+
- use fallback for path
3+
14
## [v1.0.1](https://github.com/push2cloud/compiler-workspace-resolver/compare/v1.0.0...v1.0.1)
25
- Now only changes apps that are from the requested repo

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const resolver = {
77
const config = require(deployConfigPath);
88
const resolvedApps = _.map(config.apps, (app) => {
99
if (tools.repoHash(app.source) === repoHash) {
10-
app.path = join(rootDir, app.path);
11-
app.source.path = join(rootDir, app.source.path);
10+
app.path = join(rootDir, app.path || '');
11+
app.source.path = join(rootDir, app.source.path || '');
1212
app.scripts = _.mapValues(app.scripts, (value, key) => {
1313
return _.map(value, (script) => script.replace('${rootDir}', rootDir));
1414
});

0 commit comments

Comments
 (0)