From 7e00c9ba15cc4c22643fe5fabcc68d4f8b181cdf Mon Sep 17 00:00:00 2001 From: Stamen Stoychev Date: Wed, 17 Apr 2024 15:14:43 +0300 Subject: [PATCH] fix transformer to create the requested path format --- browser/tasks/Transformer.ts | 2 +- browser/tasks/gulp-samples.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/browser/tasks/Transformer.ts b/browser/tasks/Transformer.ts index c64a0f82a2..8f31b47a2b 100644 --- a/browser/tasks/Transformer.ts +++ b/browser/tasks/Transformer.ts @@ -444,7 +444,7 @@ class Transformer { } public static getRelative(sampleFullPath: string): string { - return pathModule.relative('', sampleFullPath); + return pathModule.relative('', sampleFullPath).replaceAll('\\', '/') } public static getFileName(relativePath: string): string { diff --git a/browser/tasks/gulp-samples.js b/browser/tasks/gulp-samples.js index d202067232..879b976f05 100644 --- a/browser/tasks/gulp-samples.js +++ b/browser/tasks/gulp-samples.js @@ -148,8 +148,6 @@ function getSamples(cb) { // .pipe(gSort( { asc: false } )) .pipe(es.map(function(samplePackage, sampleCallback) { let sampleFolderName = Transformer.getRelative(samplePackage.dirname); - console.log('dir'); console.log(samplePackage.dirname); - console.log('transformer'); console.log(sampleFolderName); if (skipSamples.indexOf(sampleFolderName) >= 0) { // skip until material UI components are replaced in samples