dojo / cli

:rocket: Dojo - command line tooling.
http://dojo.io
Other
26 stars 34 forks source link

New `config` option conflicts with other commands #293

Closed mwistrand closed 5 years ago

mwistrand commented 5 years ago

Bug

The config option recently added for the upcoming 6.0.0 release unfortunately conflicts with any existing config options that may be supported by individual commands (notably, @dojo/cli-test-intern).

Package Version: 6.0.0-rc.1

Code

$ npm i -g @dojo/cli@6.0.0-rc.1 @dojo/cli-create-app@6.0.0-rc.1
$ dojo create app --name whatever-name-you-feel-like && cd $_
$ dojo test

Expected behavior:

The test runner should execute the tests

Actual behavior:

The command throws the following error:

Error: Unknown child config ".dojorc"
  at <src/lib/common/util.ts:801:20>
  at Array.forEach  <anonymous>
  at mixinConfig_1  <src/lib/common/util.ts:798:18>
  at <src/lib/common/util.ts:835:8>
  at <node_modules/@theintern/common/index.js:16:7182>