Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cli): remove most calls to commandDir #9750

Closed
wants to merge 3 commits into from
Closed
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
19 changes: 15 additions & 4 deletions packages/cli/src/commands/deploy.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
import terminalLink from 'terminal-link'

import * as baremetalCommand from './deploy/baremetal'
import * as flightcontrolCommand from './deploy/flightcontrol'
import * as netlifyCommand from './deploy/netlify'
import * as renderCommand from './deploy/render'
import * as vercelCommand from './deploy/vercel'

export const command = 'deploy <target>'
export const description = 'Deploy your Redwood project'
import terminalLink from 'terminal-link'

export const builder = (yargs) =>
export function builder(yargs) {
yargs
.commandDir('./deploy', { recurse: false })
.demandCommand()
.command(baremetalCommand)
.command(flightcontrolCommand)
.command(netlifyCommand)
.command(renderCommand)
.command(vercelCommand)
.epilogue(
`Also see the ${terminalLink(
'Redwood CLI Reference',
'https://redwoodjs.com/docs/cli-commands#deploy'
)}\n`
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jest.mock('@redwoodjs/project-config', () => {
}
})

import * as baremetal from '../baremetal'
import * as baremetal from '../baremetalHandler'

describe('verifyConfig', () => {
it('throws an error if no environment specified', () => {
Expand Down
Loading
Loading