I've faced a problem while trying to call child_process.exec
from node_modules
My tool runs the cloned repo commands and my project structure looks like:
pre-check/
.tmp/
repo/
node_modules/
.bin/
builder
src/
index.ts
node_modules/
index.ts
I tried to run
child_process.exec(
'/home/m0sk1t/projects/pre-check/.tmp/repo/node_modules/.bin/builder package',
{
cwd: '/home/m0sk1t/projects/pre-check/.tmp/repo/'
},
...callback...
);
So I expected to see the errors regarding to pre-check/.tmp/repo
folder but i got the following errors(~20) for my tool's folder:
error TYPESCRIPT /home/m0sk1t/projects/pre-check/node_modules/@types/node/events.d.ts : (21,39) Cannot find name 'unique'.
Any thoughts why this happens?
PS:
I tried to run /home/m0sk1t/projects/pre-check/.tmp/repo/node_modules/.bin/builder package
in terminal from /home/m0sk1t/projects/pre-check/.tmp/repo/
folder and got the same result