()
| 117 | } |
| 118 | |
| 119 | async function checkoutHead() { |
| 120 | // Restore current files |
| 121 | await execute('git restore --source HEAD -- package.json package-lock.json src/ tasks/'); |
| 122 | // Clean up files which existed earlier but were deleted |
| 123 | await execute('git clean -f -- package.json package-lock.json src/ tasks/'); |
| 124 | await execute('npm install --ignore-scripts'); |
| 125 | } |
| 126 | |
| 127 | function validateArguments(args) { |
| 128 | const validationErrors = []; |