Skip to content

Commit

Permalink
fix lint and test
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Nov 8, 2023
1 parent 0bd4e93 commit 773bd1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import logSymbols from 'log-symbols';
import prerequisiteTasks from './prerequisite-tasks.js';
import gitTasks from './git-tasks.js';
import publish, {getPackagePublishArguments} from './npm/publish.js';
import enable2fa, { getEnable2faArgs } from './npm/enable-2fa.js';
import enable2fa, {getEnable2faArgs} from './npm/enable-2fa.js';
import releaseTaskHelper from './release-task-helper.js';
import * as util from './util.js';
import * as git from './git-util.js';
Expand Down
5 changes: 4 additions & 1 deletion source/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ const ui = async (options, {pkg, rootDir}) => {
}

if (options.availability.isUnknown) {
if (!isScoped(pkg.name)) throw new Error('Unknown availability, but package is not scoped. This shouldn\'t happen');
if (!isScoped(pkg.name)) {
throw new Error('Unknown availability, but package is not scoped. This shouldn\'t happen');
}

const answers = await inquirer.prompt({
confirm: {
type: 'confirm',
Expand Down
1 change: 1 addition & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ test('flags: --help', cliPasses, cli, '--help', [
'--test-script Name of npm run script to run tests before publishing (default: test)',
'--no-2fa Don\'t enable 2FA on new packages (not recommended)',
'--message Version bump commit message, \'%s\' will be replaced with version (default: \'%s\' with npm and \'v%s\' with yarn)',
'--publish-scoped When publishing a scoped package, you need to provide this option to force publish it publically',
'',
'Examples',
'$ np',
Expand Down

0 comments on commit 773bd1d

Please sign in to comment.