@joystick.js/cli-canary 0.0.0-canary.133 → 0.0.0-canary.135

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.
@@ -228,7 +228,18 @@ var functions_default = {
228
228
  description: "Run joystick test in watch mode."
229
229
  }
230
230
  },
231
- options: {},
231
+ options: {
232
+ watch: {
233
+ flags: {
234
+ "--watch": {
235
+ set: !!rawArgs.includes("--watch"),
236
+ value: !!rawArgs.includes("--watch"),
237
+ parent: "test"
238
+ }
239
+ },
240
+ description: "Environment to set for process.env.NODE_ENV."
241
+ }
242
+ },
232
243
  function: test
233
244
  },
234
245
  update: {
@@ -1,14 +1,10 @@
1
1
  import dev from "../../lib/dev/index.js";
2
2
  var test_default = async (args = {}, options = {}) => {
3
- console.log({
4
- args,
5
- options
6
- });
7
3
  await dev({
8
4
  environment: "test",
9
5
  process,
10
6
  port: 1977,
11
- watch: args?.watch
7
+ watch: options?.watch
12
8
  });
13
9
  };
14
10
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.133",
3
+ "version": "0.0.0-canary.135",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -231,7 +231,18 @@ export default {
231
231
  description: 'Run joystick test in watch mode.',
232
232
  },
233
233
  },
234
- options: {},
234
+ options: {
235
+ watch: {
236
+ flags: {
237
+ '--watch': {
238
+ set: !!rawArgs.includes('--watch'),
239
+ value: !!rawArgs.includes('--watch'),
240
+ parent: 'test'
241
+ },
242
+ },
243
+ description: 'Environment to set for process.env.NODE_ENV.',
244
+ },
245
+ },
235
246
  function: test,
236
247
  },
237
248
  update: {
@@ -1,15 +1,10 @@
1
1
  import dev from "../../lib/dev/index.js";
2
2
 
3
3
  export default async (args = {}, options = {}) => {
4
- console.log({
5
- args,
6
- options,
7
- });
8
-
9
4
  await dev({
10
5
  environment: 'test',
11
6
  process,
12
7
  port: 1977,
13
- watch: args?.watch,
8
+ watch: options?.watch,
14
9
  });
15
10
  };