MCPcopy Index your code
hub / github.com/darkreader/darkreader / command

Function command

tasks/dependencies.js:35–45  ·  view source on GitHub ↗

* * @param {string} script * @returns {Promise }

(script)

Source from the content-addressed store, hash-verified

33 * @returns {Promise<void>}
34 */
35async function command(script) {
36 return (new Promise((resolve, reject) => {
37 exec(script, {cwd}, (error) => {
38 if (error) {
39 reject(error);
40 return;
41 }
42 resolve();
43 });
44 }));
45}
46
47async function buildAll() {
48 await command('npm run build -- --release --api --chrome-mv2 --chrome-mv3 --firefox-mv2 --thunderbird');

Callers 2

buildAllFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected