Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion bin/apostrophe
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node

require('shelljs/global');
require('colors');
const { program } = require('commander');
const util = require('../lib/util');
const confUtils = require('../lib/conf-utils');
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { stripIndent } = require('common-tags');

module.exports = function (program, version) {
program
.command('add <module type> <module-name>')
.command('add <module-type> <module-name>')
.description(stripIndent`
Add an Apostrophe module with boilerplate configuration to get you started.
- Add "module" for <module type> to add a generic module.
Expand Down
3 changes: 2 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const cliVersion = require('../package.json').version;
const confUtils = require('./conf-utils');
const packageJson = require('package-json');
const semver = require('semver');
const ora = require('ora');
require('colors');
const { spawn } = require('child_process');

module.exports = util;
Expand Down Expand Up @@ -155,6 +155,7 @@ util.spawnWithSpinner = async function (command, options = {
throw new Error('No command provided to spawnWithSpinner');
}

const ora = await (await import('ora')).default;
const spinner = ora({
text: options.spinnerMessage,
interval: 100,
Expand Down