MCPcopy Create free account
hub / github.com/api3dao/airnode / fetchProject

Function fetchProject

docker/scripts/npm.ts:24–35  ·  view source on GitHub ↗
(airnodeMounted = false)

Source from the content-addressed store, hash-verified

22}
23
24const fetchProject = (airnodeMounted = false) => {
25 if (airnodeMounted) {
26 logger.log('WARNING: Using local Airnode source code!');
27 git.config('safe.directory', '/airnode');
28 const excludedFiles = git.listFiles({ cwd: '/airnode' }).split('\n');
29 const excludeOptions = excludedFiles.map((excludedFile) => `--exclude ${excludedFile}`).join(' ');
30 runCommand(`rsync -a ${excludeOptions} --exclude .git /airnode/ /build`);
31 } else {
32 git.clone('/build');
33 }
34 git.config('safe.directory', '/build');
35};
36
37const installDependencies = () => runCommand('yarn bootstrap');
38

Callers 2

prePublishSetupFunction · 0.85
openPullRequestFunction · 0.85

Calls 1

runCommandFunction · 0.90

Tested by

no test coverage detected