This repository has been archived by the owner on Sep 28, 2020. It is now read-only.
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.
Closed
Description
Lines 21 to 33 in ed54da5
My project is using Lerna
and fold structure is like below
- packages
- @gem-mine
- glaucus
- glaucus-plugin-align
- glaucus-plugin-hr
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....
Metadata
Assignees
Labels
No labels