alias-hq icon indicating copy to clipboard operation
alias-hq copied to clipboard

Aliases to a node module are mapped as relative to base path

Open NickBolles opened this issue 2 years ago • 1 comments

tsconfig.json

	"baseUrl": "./src/js/"
	...
      "handlebars": ["handlebars/runtime"],

output of hq.get('webpack')

  handlebars: '/Users/nick.bolles/Code/repo/src/js/handlebars/runtime',

this should stay as

  handlebars: 'handlebars/runtime',

it looks like setting the value to "handlebars": ["../../node_modules/handlebars/runtime"], in the tsconfig works, but that's not ideal.

NickBolles avatar Jun 01 '22 18:06 NickBolles

Hi NIck,

In essence, you're saying that Alias is not using the correct Node path resolution mechanism to resolve packages.

Sorry about this, I will look into it!

davestewart avatar Jun 07 '22 19:06 davestewart