Skip to content

Commit

Permalink
Merge pull request #191 from FlowFuse/190-update-launcher-to-work-in-…
Browse files Browse the repository at this point in the history
…dev-env-following-org-rename

Update path to localfs following org rename
  • Loading branch information
hardillb authored Nov 15, 2023
2 parents 70b8b99 + e7c9b11 commit 51923c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ class Launcher {
]

// Check to see if we're in the dev-env - in which case, we need to add the right
// path to NODE_PATH so that the settings file can load `@flowforge/nr-launcher/*`
// path to NODE_PATH so that the settings file can load `@flowfuse/nr-launcher/*`
// We have to point at the driver-localfs node_modules as that will have the right paths
// in place to load this module.
const devEnvPath = path.join(require.main.path, '..', 'flowforge-driver-localfs', 'node_modules')
const devEnvPath = path.join(require.main.path, '..', 'driver-localfs', 'node_modules')
if (fs.existsSync(devEnvPath)) {
nodePaths.push(devEnvPath)
}
Expand Down

0 comments on commit 51923c3

Please sign in to comment.