Skip to content

Commit

Permalink
do not worry about symlinked paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Courey committed Jun 13, 2024
1 parent 7d51368 commit 7790ae7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ const launchBinary: SearchEngineLauncherFunction<{ bin: string }> = async ({
}
}

function directoryName() {
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
return __dirname.includes('node_modules')
? __dirname
: './node_modules/@nasa-gcn/architect-plugin-search'
}
const launchDocker: SearchEngineLauncherFunction = async ({
dataDir,
logsDir,
Expand All @@ -79,7 +72,9 @@ const launchDocker: SearchEngineLauncherFunction = async ({
port,
options,
}
const subprocess = fork(`${directoryName()}/launchSearch.js`, [
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const subprocess = fork(`${__dirname}/launchSearch.js`, [
JSON.stringify(argv),
])

Expand Down

0 comments on commit 7790ae7

Please sign in to comment.