Skip to content

Commit

Permalink
fix(start): remove unused parameter from start script causing userlan…
Browse files Browse the repository at this point in the history
…d errors (#17)
  • Loading branch information
roperzh committed Nov 26, 2019
1 parent af22068 commit 1da7ea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/utils/start/src/index.action.ts
Expand Up @@ -14,7 +14,7 @@ const guideUrls = {
[Target.Web]: 'https://diez.org/getting-started/javascript.html',
};

export = async (_: {}, target: Target, targetRootIn?: string) => {
export = async (_: {}, target: Target) => {
if (![Target.Android, Target.Web, Target.Ios].includes(target)) {
Log.error(`Usage: diez start <${Target.Android}|${Target.Ios}|${Target.Web}>`);
process.exit(1);
Expand Down Expand Up @@ -47,7 +47,7 @@ export = async (_: {}, target: Target, targetRootIn?: string) => {

const diez = require.resolve('diez');
const root = global.process.cwd();
const targetRoot = targetRootIn || resolve(root, '..', 'example-codebases', target);
const targetRoot = resolve(root, '..', 'example-codebases', target);

Log.comment(`Building Diez project for target ${target}...`);
let hotProcess!: ChildProcess;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/start/src/index.ts
@@ -1,7 +1,7 @@
import {CliCommandProvider} from '@diez/cli-core';

const provider: CliCommandProvider = {
name: 'start <target> [targetRoot]',
name: 'start <target>',
description: 'Start a Diez example project in hot mode.',
loadAction: () => import('./index.action'),
};
Expand Down

0 comments on commit 1da7ea3

Please sign in to comment.