Skip to content

Commit

Permalink
Fix getNativeCacheLocation.js
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag authored and mpfau committed Dec 24, 2024
1 parent c3cef53 commit 761f2a2
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions buildSrc/getNativeCacheLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ const packageJson = JSON.parse(await fs.readFile("package-lock.json", "utf-8"))
const module = process.argv[2]
// we have a git commit as a version in dependencies, we want the actually resolved version number
const version = packageJson.packages[`node_modules/${module}`].version
console.log(
await buildCachedLibPaths({
rootDir: "test",
platform: "linux",
environment: "node",
versionedEnvironment: `node-${process.versions.modules}`,
nodeModule: module,
libraryVersion: version,
architecture: process.arch,
}),
)
const paths = await buildCachedLibPaths({
rootDir: "test",
platform: "linux",
environment: "node",
versionedEnvironment: `node-${process.versions.modules}`,
nodeModule: module,
libraryVersion: version,
architecture: process.arch,
})
console.log(paths[process.arch])

0 comments on commit 761f2a2

Please sign in to comment.