Skip to content

Commit

Permalink
update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
redwoodjsbot committed Nov 4, 2021
1 parent d4e0a1b commit d99184b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/run-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const path = require('path')

const execa = require('execa')
const fs = require('fs-extra')
const yargs = require('yargs')
const { hideBin } = require('yargs/helpers')
const yargs = require('yargs/yargs')

// This script sets up a blank RedwoodJS app into a directory.
// It uses the packages from the RedwoodJS framework (../packages).
Expand Down Expand Up @@ -197,7 +198,7 @@ const initGit = () => {
})
}

const args = yargs
const args = yargs(hideBin(process.argv))
.option('create-project', { default: true, type: 'boolean', alias: 'create' })
.option('build-framework', { default: true, type: 'boolean', alias: 'build' })
.option('copy-framework', { default: true, type: 'boolean', alias: 'copy' })
Expand All @@ -207,7 +208,7 @@ const args = yargs
.example('run-e2e')
.example('run-e2e /tmp/redwood-app --ts')
.help()
.strict().argv
.parse()

const REDWOODJS_FRAMEWORK_PATH = path.resolve(__dirname, '..')
let REDWOOD_PROJECT_DIRECTORY =
Expand Down

0 comments on commit d99184b

Please sign in to comment.