Skip to content

Commit

Permalink
MDL-72326 grunt: Fix component library grunt on Windows
Browse files Browse the repository at this point in the history
Before this change grunt tried to use the Linux version of files in
node_modules/.bin rather than the Windows version which is generated
by npm.

To avoid this issue we need to run the components directly.
  • Loading branch information
NeillM committed Oct 4, 2021
1 parent 1a9bee6 commit 377c618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .grunt/tasks/componentlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = grunt => {
* @returns {Object} Reference to the spawned task
*/
const docsBuild = () => spawnNodeCall([
'node_modules/.bin/hugo',
'node_modules/hugo-bin/cli.js',
'--config', getCLPath('config.yml'),
'--cleanDestinationDir',
]);
Expand All @@ -91,7 +91,7 @@ module.exports = grunt => {
* @returns {Object} Reference to the spawned task
*/
const cssBuild = () => spawnNodeCall([
'node_modules/.bin/node-sass',
'node_modules/node-sass/bin/node-sass',
'--output-style', 'expanded',
'--source-map', true,
'--source-map-contents', true,
Expand Down

0 comments on commit 377c618

Please sign in to comment.