webdoc-labs / webdoc

Documentation generator for the web
https://www.webdoclabs.com
Other
79 stars 9 forks source link

Can't use relative plugin paths #153

Closed STRd6 closed 2 years ago

STRd6 commented 2 years ago

I'm migrating from JSDoc and ran into an issue with using a plugin with a relative path:

{
  "plugins": [
    "./build/jsdoc-coffee.js"
  ],
...
}
node:internal/modules/cjs/loader:933
  const err = new Error(message);
              ^

Error: Cannot find module './build/jsdoc-coffee.js'
Require stack:
- C:\Users\duder\Documents\GitHub\system\node_modules\@webdoc\cli\lib\index.js
- C:\Users\duder\Documents\GitHub\system\node_modules\@webdoc\cli\cli.js

It would be nice to be able to use local plugins.

ShukantPal commented 2 years ago

I’m glad to see someone using webdoc! I’ll look into this over the weekend.