Skip to content

Commit

Permalink
Fix Babel on Windows
Browse files Browse the repository at this point in the history
Fixes #7251
  • Loading branch information
bep committed May 18, 2020
1 parent 518d149 commit 723ec55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/resource_transformers/babel/babel.go
Expand Up @@ -98,8 +98,8 @@ func (t *babelTransformation) Key() internal.ResourceTransformationKey {
// npm install -g @babel/preset-env
// Instead of installing globally, you can also install everything as a dev-dependency (--save-dev instead of -g)
func (t *babelTransformation) Transform(ctx *resources.ResourceTransformationCtx) error {
const localBabelPath = "node_modules/@babel/cli/bin/"
const binaryName = "babel.js"
const localBabelPath = "node_modules/.bin/"
const binaryName = "babel"

// Try first in the project's node_modules.
csiBinPath := filepath.Join(t.rs.WorkingDir, localBabelPath, binaryName)
Expand Down

0 comments on commit 723ec55

Please sign in to comment.