@joystick.js/cli-canary 0.0.0-canary.15 → 0.0.0-canary.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/dev/index.js
CHANGED
|
@@ -327,7 +327,7 @@ const warnInvalidJoystickEnvironment = () => {
|
|
|
327
327
|
);
|
|
328
328
|
process.exit(0);
|
|
329
329
|
}
|
|
330
|
-
if (process.env.NODE_ENV !== "test" &&
|
|
330
|
+
if (process.env.NODE_ENV !== "test" && !hasJoystickFolder) {
|
|
331
331
|
CLILog(
|
|
332
332
|
"joystick start must be run in a directory with a .joystick folder.",
|
|
333
333
|
{
|
package/package.json
CHANGED
|
@@ -658,7 +658,7 @@ import dev from "../../lib/dev/index.js";
|
|
|
658
658
|
|
|
659
659
|
export default async (args = {}, options = {}) => {
|
|
660
660
|
await dev({
|
|
661
|
-
environment:
|
|
661
|
+
environment: args?.environment || 'development',
|
|
662
662
|
process,
|
|
663
663
|
});
|
|
664
664
|
// process.loader = new Loader({ defaultMessage: "Starting app..." });
|
package/src/lib/dev/index.js
CHANGED
|
@@ -395,7 +395,7 @@ const warnInvalidJoystickEnvironment = () => {
|
|
|
395
395
|
process.exit(0);
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
if (process.env.NODE_ENV !== 'test' &&
|
|
398
|
+
if (process.env.NODE_ENV !== 'test' && !hasJoystickFolder) {
|
|
399
399
|
CLILog(
|
|
400
400
|
"joystick start must be run in a directory with a .joystick folder.",
|
|
401
401
|
{
|