Skip to content

Commit

Permalink
test: tryfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganitzsh committed Nov 15, 2023
1 parent ed59f3e commit 65a65cf
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions bootstrap.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import path from 'path';
import { fileURLToPath } from 'url';
import { execSync } from 'child_process';

try {
const __dirname = new URL('.', import.meta.url).pathname;
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

execSync(
'npm install semantic-release --omit=dev --no-audit --no-progress --prefer-offline',
{
stdio: 'inherit',
cwd: __dirname,
execSync(
'npm install semantic-release --omit=dev --no-audit --no-progress --prefer-offline',
{
stdio: 'inherit',
cwd: __dirname,
env: {
...process.env,
PWD: __dirname,
},
);
} catch (err) {
console.log(err);
}
},
);

0 comments on commit 65a65cf

Please sign in to comment.