Open Tronix117 opened 1 year ago
It's not pretty, but I don't see how this could be different across package managers? This is navigating within a single package.
Hello, no it's not, you go up the directories from the highlightjs package location, to get back to the root folder. When we use some other package manager like pnpm or yarn with the plug'n'play mode or non default npm mode, you'll see the structure is quite different and this code does not work out of the box.
You can try by:
npm i -g pnpm
)pnpm i
Ah yes, PnP. PR is welcome :)
In the following file, it assumes the structure is always known and always the same. It's not always the case, for exemple using pnpm, you have a slightly different node_modules structure
https://github.com/webpro/reveal-md/blob/a92eb579eeadf574721ce0a9cd74e850546a50cc/lib/constants.js#L4