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

Function createTasks

tasks/deno.js:17–27  ·  view source on GitHub ↗
(scripts)

Source from the content-addressed store, hash-verified

15}
16
17function createTasks(scripts) {
18 const tasks = {};
19 for (const name in scripts) {
20 const command = scripts[name];
21 tasks[name] = command
22 .replace('--max-old-space-size=3072', '')
23 .replace('node ', 'deno run -A ')
24 .replaceAll('npm run ', 'deno task ');
25 }
26 return tasks;
27}
28
29async function writeDenoJSON() {
30 const packageJSON = resolvePath('package.json');

Callers 1

writeDenoJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected