Skip to content

Commit

Permalink
fix(webpack): getTalendIconsPath (#5082)
Browse files Browse the repository at this point in the history
* Fix getTalendIconsPath

* Changeset
  • Loading branch information
lmaillet authored Dec 20, 2023
1 parent 922e3eb commit cf9a5e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-fans-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/scripts-config-react-webpack': patch
---

Fix getTalendIconsPath
4 changes: 2 additions & 2 deletions tools/scripts-config-react-webpack/config/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ function getTalendIconsPath() {

if (main.indexOf('.pnpm') > -1) {
const startPath = main.substring(0, main.indexOf('icons'));
const regex = /@talend\+icons@([^\s/]+)/;
const regex = /@talend\+icons@([^\s/\\]+)/;
const match = main.match(regex);
const version = match[1];
return `${startPath}icons@${version}/node_modules/@talend/icons`;
return path.join(`${startPath}icons@${version}`, 'node_modules', '@talend', 'icons');
}
const root = main.split('icons')[0];
return `${root}icons`;
Expand Down

0 comments on commit cf9a5e0

Please sign in to comment.