Skip to content

Commit

Permalink
Fix: Build failure on Windows (#37189)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Dec 13, 2021
1 parent a4714cf commit 929d32e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/packages/build-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const getBabelConfig = require( './get-babel-config' );
*
* @type {string}
*/
const PACKAGES_DIR = path.resolve( __dirname, '../../packages' );
const PACKAGES_DIR = path
.resolve( __dirname, '../../packages' )
.replace( /\\/g, '/' );

/**
* Mapping of JavaScript environments to corresponding build output.
Expand Down
4 changes: 3 additions & 1 deletion bin/packages/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const files = process.argv.slice( 2 );
*
* @type {string}
*/
const PACKAGES_DIR = path.resolve( __dirname, '../../packages' );
const PACKAGES_DIR = path
.resolve( __dirname, '../../packages' )
.replace( /\\/g, '/' );

const stylesheetEntryPoints = glob.sync(
path.resolve( PACKAGES_DIR, '*/src/*.scss' )
Expand Down

0 comments on commit 929d32e

Please sign in to comment.