File tree Expand file tree Collapse file tree
packages/project/lib/specifications/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class Application extends ComponentProject {
5252 getVirtualPath ( sourceFilePath ) {
5353 const sourcePath = this . getSourcePath ( ) ;
5454 if ( sourceFilePath . startsWith ( sourcePath ) ) {
55- const relSourceFilePath = fsPath . relative ( sourcePath , sourceFilePath ) ;
55+ const relSourceFilePath = fsPath . relative ( sourcePath , sourceFilePath ) . replaceAll ( "\\" , "/" ) ;
5656 return `/resources/${ this . _namespace } /${ relSourceFilePath } ` ;
5757 }
5858
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class Library extends ComponentProject {
6767 getVirtualPath ( sourceFilePath ) {
6868 const sourcePath = this . getSourcePath ( ) ;
6969 if ( sourceFilePath . startsWith ( sourcePath ) ) {
70- const relSourceFilePath = fsPath . relative ( sourcePath , sourceFilePath ) ;
70+ const relSourceFilePath = fsPath . relative ( sourcePath , sourceFilePath ) . replaceAll ( "\\" , "/" ) ;
7171 let virBasePath = "/resources/" ;
7272 if ( ! this . _isSourceNamespaced ) {
7373 virBasePath += `${ this . _namespace } /` ;
@@ -77,7 +77,7 @@ class Library extends ComponentProject {
7777
7878 const testPath = fsPath . join ( this . getRootPath ( ) , this . _testPath ) ;
7979 if ( sourceFilePath . startsWith ( testPath ) ) {
80- const relSourceFilePath = fsPath . relative ( testPath , sourceFilePath ) ;
80+ const relSourceFilePath = fsPath . relative ( testPath , sourceFilePath ) . replaceAll ( "\\" , "/" ) ;
8181 let virBasePath = "/test-resources/" ;
8282 if ( ! this . _isSourceNamespaced ) {
8383 virBasePath += `${ this . _namespace } /` ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class ThemeLibrary extends Project {
4545 getVirtualPath ( sourceFilePath ) {
4646 const sourcePath = this . getSourcePath ( ) ;
4747 if ( sourceFilePath . startsWith ( sourcePath ) ) {
48- const relSourceFilePath = fsPath . relative ( sourcePath , sourceFilePath ) ;
48+ const relSourceFilePath = fsPath . relative ( sourcePath , sourceFilePath ) . replaceAll ( "\\" , "/" ) ;
4949 return `/resources/${ relSourceFilePath } ` ;
5050 }
5151
You can’t perform that action at this time.
0 commit comments