You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For context, I'm using ts-node and tsconfig-paths in a script like the following
const { register } = require('ts-node');
const tsConfigPaths = require('tsconfig-paths');
const cwd = '/path/to/tsconfig/';
// this works
register({ cwd });
// this does not work, need to specify baseUrl and paths
tsConfigPaths.register( { cwd } );
The text was updated successfully, but these errors were encountered:
I want to specify just
cwd
and have the tool infer the baseUrl read the paths from the tsconfig in my specified cwd.However, register does not permit that
It'd be nice if I could just specify
cwd
For context, I'm using ts-node and tsconfig-paths in a script like the following
The text was updated successfully, but these errors were encountered: