Skip to content

Commit 5a6fdcf

Browse files
JamesJanssonmgechev
authored andcommitted
Fix for Windows users with spaces in file names (ReactiveX#38)
The file path currently is not escaped and uses absolute paths. If, for example, your user name in Windows is "First Last", your path will look like "C:\User\First Last\..." for all of the above files, breaking the install. My changes fix the issues.
1 parent 2dd72fe commit 5a6fdcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rxjs-5-to-6-migrate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ if (!argv.p) {
99
}
1010

1111
const command =
12-
join(__dirname, 'node_modules', '.bin', 'tslint') +
12+
'"' + join(__dirname, 'node_modules', '.bin', 'tslint') + '"' +
1313
' -c ' +
14-
join(__dirname, 'rxjs-5-to-6-migrate.json') +
14+
'"' + join(__dirname, 'rxjs-5-to-6-migrate.json') + '"' +
1515
' -p ' +
16-
argv.p +
16+
'"' + argv.p + '"' +
1717
' --fix';
1818

1919
const migrate = () => {

0 commit comments

Comments
 (0)