Skip to content

[6.x] Fix quotes in kbn-i18n build scripts (#26120)#26123

Merged
spalger merged 1 commit intoelastic:6.xfrom
spalger:backport/6.x/pr-26120
Nov 23, 2018
Merged

[6.x] Fix quotes in kbn-i18n build scripts (#26120)#26123
spalger merged 1 commit intoelastic:6.xfrom
spalger:backport/6.x/pr-26120

Conversation

@spalger
Copy link
Copy Markdown
Contributor

@spalger spalger commented Nov 23, 2018

Backports the following commits to 6.x:

**Bug**
`packages/kbn-i18n/package.json`:
```
...
scripts: {
  "kbn:bootstrap": "run-p 'build:babel:** --quiet' build:tsc",
  "kbn:watch": "run-p 'build:** --watch'",
},
...
```
These commands throw errors on Windows because of wrong command line arguments parsing (`'build:babel:**`, `--quiet'` and `build:tsc`):
```
@kbn/i18n: $ run-p 'build:babel:** --quiet' build:tsc
× @kbn/i18n: ERROR: Invalid Option: --quiet'
```
So `yarn kbn bootstrap` fails on Windows

**Fix**
Use cross-platform escaped double quotes instead of single quotes:
```
...
scripts: {
  "kbn:bootstrap": "run-p \"build:babel:** --quiet\" build:tsc",
  "kbn:watch": "run-p \"build:** --watch\"",
},
...
```
@spalger spalger added the backport This PR is a backport of another PR label Nov 23, 2018
@spalger spalger merged commit a6367e3 into elastic:6.x Nov 23, 2018
@spalger spalger deleted the backport/6.x/pr-26120 branch November 23, 2018 14:31
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants