Skip to content

Commit

Permalink
fix transformer to create the requested path format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosSF committed Apr 17, 2024
1 parent 6755673 commit 7e00c9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion browser/tasks/Transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions browser/tasks/gulp-samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e00c9b

Please sign in to comment.