File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import type { ExecutorContext , ProjectGraphProjectNode } from '@nrwl/devkit' ;
2- import { readJsonFile } from '@nrwl/devkit' ;
2+ import { readJsonFile , normalizePath } from '@nrwl/devkit' ;
33import {
44 copySync ,
55 readdirSync ,
@@ -285,7 +285,11 @@ function recursiveUpdateImport(
285285 const fileContent = readFileSync ( filePath , 'utf-8' ) ;
286286 const updatedContent = fileContent . replace ( importRegex , ( matched ) => {
287287 const result = matched . replace ( / [ ' " ] / g, '' ) ;
288- return `"${ relative ( dirPath , inlinedDepsDestOutputRecord [ result ] ) } "` ;
288+ const importPath = `"${ relative (
289+ dirPath ,
290+ inlinedDepsDestOutputRecord [ result ]
291+ ) } "`;
292+ return normalizePath ( importPath ) ;
289293 } ) ;
290294 writeFileSync ( filePath , updatedContent ) ;
291295 } else if ( file . isDirectory ( ) ) {
You can’t perform that action at this time.
0 commit comments