Skip to content

Commit

Permalink
Resolve properly os.homedir(). See #588
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Apr 3, 2023
1 parent 835a618 commit 8408bff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ui5Framework/Sapui5MavenSnapshotResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ class Sapui5MavenSnapshotResolver extends AbstractResolver {
static async fetchAllVersions({ui5HomeDir, cwd} = {}) {
const installer = new Installer({
cwd: cwd ? path.resolve(cwd) : process.cwd(),
ui5HomeDir:
ui5HomeDir ? path.resolve(ui5HomeDir) :
path.join(os.homedir(), ".ui5")
ui5HomeDir: path.resolve(
ui5HomeDir || path.join(os.homedir(), ".ui5")
)
});
return await installer.fetchPackageVersions({
groupId: DIST_GROUP_ID,
Expand Down

0 comments on commit 8408bff

Please sign in to comment.