Skip to content

Commit

Permalink
#218: fix makeDirectory for link
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Dec 10, 2024
1 parent 080f97d commit d2336ec
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,35 @@
"console": "internalConsole",
"sourceMaps": false
},
{
"type": "node",
"request": "launch",
"name": "xpm link @scope/name",
"program": "${workspaceRoot}/bin/xpm.js",
"stopOnEntry": true,
"args": [
"link",
"@xpack-dev-tools/xbb-helper",
"-dd",
"-C",
"/Users/ilg/tmp/tolink"
],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"skipFiles": [
"async_hooks.js",
"inspector_async_hook.js"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": false
},
{
"type": "node",
"request": "launch",
Expand Down
4 changes: 2 additions & 2 deletions lib/xpm/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class Link extends CliCommand {
}

// Create parent folder, for just in case.
await makeDirectory(globalPackagePath)
await makeDirectory(path.dirname(globalPackageLinkPath))

// fs.symlink(target, path[, type], callback)
// 'creates the link called path pointing to target'
Expand Down Expand Up @@ -368,7 +368,7 @@ export class Link extends CliCommand {
}

// Create parent folder, for just in case.
await makeDirectory(localXpacksFolderPath)
await makeDirectory(path.dirname(localXpacksLinkPath))

// fs.symlink(target, path[, type], callback)
// 'creates the link called path pointing to target'
Expand Down

0 comments on commit d2336ec

Please sign in to comment.