Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

fix: Issue fixed for building binary with recompileFromSource #173

Merged
merged 1 commit into from
Jul 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/check-build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const require = createRequire(import.meta.url);

function recompileFromSource() {
console.log('@sentry/profiling-node: Compiling from source...');
cp.spawnSync(`npm run build:configure && npm run build:bindings && node scripts/copy-target.mjs`, {
env: process.env
});
cp.spawnSync('npm', ['run', 'build:configure'], { env: process.env });
cp.spawnSync('npm', ['run', 'build:bindings'], { env: process.env });
cp.spawnSync('node', ['scripts/copy-target.mjs'], { env: process.env });
}

if (existsSync(target)) {
Expand Down