@flow-os/client 0.0.51-dev.1772057569 → 0.0.51-dev.1772058708

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flow-os/client",
3
- "version": "0.0.51-dev.1772057569",
3
+ "version": "0.0.51-dev.1772058708",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -7,11 +7,14 @@ export interface UserOptions {
7
7
  port?: number;
8
8
  /** Pass `false` to disable HTTPS. Default is `true` (omit to enable). */
9
9
  https?: false;
10
+ /** Project root. Default: process.cwd() */
11
+ root?: string;
10
12
  }
11
13
 
12
14
  function OPTIONS(opts: UserOptions): Omit<UserConfig, 'plugins'> {
13
15
  const useHttps = opts.https !== false;
14
16
  return {
17
+ ...(opts.root != null && { root: opts.root }),
15
18
  server: {
16
19
  port: opts.port ?? 3000,
17
20
  ...(useHttps && { https: true }),