Skip to content

Commit

Permalink
Fix publishing and prevent weird Observable issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 22, 2019
1 parent b8814b6 commit 304030e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"rxjs": "^6.2.0",
"semver": "^5.2.0",
"split": "^1.0.0",
"symbol-observable": "^1.2.0",
"terminal-link": "^1.1.0",
"update-notifier": "^2.1.0"
},
Expand Down
2 changes: 2 additions & 0 deletions source/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node
'use strict';
// eslint-disable-next-line import/no-unassigned-import
require('symbol-observable'); // Important: This needs to be first to prevent weird Observable incompatibilities
const logSymbols = require('log-symbols');
const meow = require('meow');
const updateNotifier = require('update-notifier');
Expand Down
4 changes: 2 additions & 2 deletions source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ module.exports = async (input = 'patch', options) => {
task: () => exec('yarn', ['install', '--frozen-lockfile', '--production=false']).pipe(
catchError(error => {
if (error.stderr.startsWith('error Your lockfile needs to be updated')) {
throwError(new Error('yarn.lock file is outdated. Run yarn, commit the updated lockfile and try again.'));
return throwError(new Error('yarn.lock file is outdated. Run yarn, commit the updated lockfile and try again.'));
}

throwError(error);
return throwError(error);
})
)
},
Expand Down

0 comments on commit 304030e

Please sign in to comment.