Open randunel opened 10 years ago
Problem: when running rw c or rw c "script", the __dirname is /path/to/project/node_modules/compound/lib/server. Expected: __dirname === /path/to/project
rw c
rw c "script"
__dirname
/path/to/project/node_modules/compound/lib/server
__dirname === /path/to/project
Current workaround: var dirname = './', since ./ points to the correct local dir.
var dirname = './'
./
Problem: when running
rw c
orrw c "script"
, the__dirname
is/path/to/project/node_modules/compound/lib/server
. Expected:__dirname === /path/to/project
Current workaround:
var dirname = './'
, since./
points to the correct local dir.