I will run webpack in @gem-mine/glaucus, so the process.cwd would be ${workspaceFolder}/packages/@gem-mine/glaucus.When I'm using file from 'glaucus-plugin-align' folder, eg glaucus-plugin-align/src/index.js, the resourcePath would be ${workspaceFolder}/packages/@gem-mine/glaucus-plugin-align/src/index/js.
The above code would think they are relative and then set resoucePath to plugin-align/src/index/js.
I'm using @typescript-eslint that it will restore fullPath to ${workspaceFolder}/packages/@gem-mine/glaucus/plugin-align/src/index/js and consider the file is missing....
https://github.com/webpack-contrib/eslint-loader/blob/ed54da536155743dd4dd52d1cfd53e933aadae44/src/Linter.js#L21-L33
My project is using
Lerna
and fold structure is like belowI will run webpack in
@gem-mine/glaucus
, so theprocess.cwd
would be${workspaceFolder}/packages/@gem-mine/glaucus
.When I'm using file from 'glaucus-plugin-align' folder, egglaucus-plugin-align/src/index.js
, theresourcePath
would be${workspaceFolder}/packages/@gem-mine/glaucus-plugin-align/src/index/js
.The above code would think they are relative and then set
resoucePath
toplugin-align/src/index/js
.I'm using
@typescript-eslint
that it will restore fullPath to${workspaceFolder}/packages/@gem-mine/glaucus/plugin-align/src/index/js
and consider the file is missing....