Skip to content

Commit

Permalink
Update package.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Jul 8, 2023
1 parent 19d5b66 commit f337803
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const exec = async (command, encoding) => {
if (encoding) {
return child_process.execSync(command, { cwd: __dirname, encoding: encoding });
}
console.log(command);

Check failure on line 74 in package.js

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Unexpected console statement

Check failure on line 74 in package.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Unexpected console statement
child_process.execSync(command, { cwd: __dirname, stdio: [ 0,1,2 ] });
return '';
/*
Expand Down Expand Up @@ -186,8 +187,11 @@ const pullrequest = async (organization, repository, body) => {
};

const install = async () => {
console.log(' -- ');

Check failure on line 190 in package.js

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Unexpected console statement

Check failure on line 190 in package.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Unexpected console statement
const node_modules = path.join(__dirname, 'node_modules');
console.log(' -- ' + node_modules);

Check failure on line 192 in package.js

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Unexpected console statement

Check failure on line 192 in package.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Unexpected console statement
if (!await exists(node_modules)) {
console.log(' --- ');

Check failure on line 194 in package.js

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Unexpected console statement

Check failure on line 194 in package.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Unexpected console statement
await exec('npm install');
}
};
Expand All @@ -204,7 +208,8 @@ const clean = async () => {
};

const purge = async () => {
clean();
await clean();
await rm('third_party', 'bin');
await rm('third_party', 'env');
await rm('third_party', 'source');
};
Expand Down Expand Up @@ -508,8 +513,11 @@ const pull = async () => {
if (before.trim() !== after.trim()) {
const output = exec('git diff --name-only ' + before.trim() + ' ' + after.trim());
const files = new Set(output.split('\n'));
console.log(files);

Check failure on line 516 in package.js

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Unexpected console statement

Check failure on line 516 in package.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Unexpected console statement
if (files.has('package.json')) {
clean();
console.log(' - clean');

Check failure on line 518 in package.js

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Unexpected console statement

Check failure on line 518 in package.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Unexpected console statement
await clean();
console.log(' - install');

Check failure on line 520 in package.js

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Unexpected console statement

Check failure on line 520 in package.js

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest)

Unexpected console statement
await install();
}
}
Expand Down

0 comments on commit f337803

Please sign in to comment.