* @param {string} target the platform to build for
(target)
| 99 | * @param {string} target the platform to build for |
| 100 | */ |
| 101 | async function copySqlite(target) { |
| 102 | const child = fork(__filename, { stdio: "inherit", cwd: process.cwd() }); |
| 103 | child.send({ |
| 104 | payload: { |
| 105 | operation: "sqlite", |
| 106 | target, |
| 107 | }, |
| 108 | }); |
| 109 | |
| 110 | return new Promise((resolve, reject) => { |
| 111 | child.on("message", (msg) => { |
| 112 | if (msg.error) { |
| 113 | reject(); |
| 114 | } else { |
| 115 | resolve(); |
| 116 | } |
| 117 | }); |
| 118 | }); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * @param {string} target the platform to build for |
no test coverage detected