Blake E
09/03/2021, 9:05 PM.bin/tsc
in cdkHelpers.ts vs. letting the system resolve this using $PATH? or other node module resolution strategies?
I believe my latest mono-repo issue (rushjs, which symlinks node_modules
) deals with this “custom” module command resolution for tsc
Blake E
09/03/2021, 9:06 PMtypescript
dependency’s .bin/tsc
I presume? to keep framework in sync and building properly etc?Frank
tsc
executable in the node_modules by doing a require.Blake E
09/07/2021, 3:18 PMFrank
required
, it is using the node_module’s default resolution?Blake E
09/07/2021, 7:46 PMtsc
is not in the location that is expected,
/**
* Finds the path to the tsc package executable by converting the file path of:
* /Users/spongebob/serverless-stack/node_modules/typescript/dist/index.js
* to:
* /Users/spongebob/serverless-stack/node_modules/.bin/tsc
*/
Blake E
09/07/2021, 7:48 PMpnpm
and rushjs.io use symlinks to create a single folder of installed packages (to avoid phantom dependencies) and symlinks into node_modules
.
I’m not full read into the default module resolution spec that node implements (yet), but my tsc
is not located in folder beside typescript
.
I can get the error and be more specific about my issues (I’ve already worked around it so will need to backtrack)Blake E
09/07/2021, 7:50 PMrequire.resolve
should’ve accounted for this, but yeah - I don’t think ya’ll need to worry about this for now.Blake E
09/07/2021, 7:50 PMFrank