File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -590,12 +590,15 @@ function writeJavascriptIndexFiles() {
590
590
591
591
console . log ( 'Writing javascript indices...' ) ;
592
592
593
+ const dotSlash = '.' + path . sep ;
594
+
593
595
const excludes = [
594
596
/ \. s w p $ / ,
595
597
/ \. D S _ S t o r e $ / ,
596
598
/ i n d e x \. j s $ / ,
597
- './embed.js' ,
598
- './extension.js' ,
599
+ dotSlash + 'embed.js' ,
600
+ dotSlash + 'extension.js' ,
601
+ dotSlash + path . join ( 'examples' , '.eslintrc.js' ) ,
599
602
] ;
600
603
601
604
// Regexp's
@@ -610,7 +613,7 @@ function writeJavascriptIndexFiles() {
610
613
611
614
// get proper relative path for file
612
615
dirFiles = dirFiles . map ( filename => {
613
- return './' + path . join ( dirPath , filename ) ;
616
+ return dotSlash + path . join ( dirPath , filename ) ;
614
617
} ) ;
615
618
616
619
// filter excluded files
You can’t perform that action at this time.
0 commit comments