()
| 7 | const { getSelectors, FacetCutAction } = require('./js/diamond.js') |
| 8 | |
| 9 | function getGitCommitSha(): string { |
| 10 | const commitSha = require('child_process') |
| 11 | .execSync('git rev-parse --short HEAD') |
| 12 | .toString() |
| 13 | .trim() |
| 14 | return commitSha |
| 15 | } |
| 16 | export async function deploy(libs: { [key in string]: string }) { |
| 17 | if (!libs || Object.keys(libs).length === 0) |
| 18 | throw new Error(`Libraries are missing`) |