phio 0.2.2 → 0.2.4

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": "phio",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "A CLI tool to manage your PocketHost instances",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,13 +10,15 @@ export const DeployCommand = () => {
10
10
  .option(
11
11
  '-i, --include <include...>',
12
12
  'Files to include in the sync',
13
- (val, prev) => [...prev, val],
13
+ (val, prev) => [...prev, ...val.split(',')],
14
14
  DEFAULT_INCLUDES
15
15
  )
16
16
  .option(
17
17
  '-e, --exclude <exclude...>',
18
18
  'Files to exclude from the sync',
19
- (val, prev) => [...prev, val],
19
+ (val, prev) => {
20
+ return [...prev, ...val.split(',')]
21
+ },
20
22
  DEFAULT_EXCLUDES
21
23
  )
22
24
  .action((instanceId, options) => {
@@ -107,6 +107,8 @@ export async function deployMyCode(
107
107
  'log-level': verbose ? 'verbose' : 'standard',
108
108
  }
109
109
 
110
+ console.log({ args })
111
+
110
112
  await deploy(args)
111
113
  console.log('🚀 Deploy done!')
112
114
  }
@@ -119,13 +121,15 @@ export const DevCommand = () => {
119
121
  .option(
120
122
  '-i, --include <include...>',
121
123
  'Files to include in the sync',
122
- (val, prev) => [...prev, val],
124
+ (val, prev) => [...prev, ...val.split(',')],
123
125
  DEFAULT_INCLUDES
124
126
  )
125
127
  .option(
126
128
  '-e, --exclude <exclude...>',
127
129
  'Files to exclude from the sync',
128
- (val, prev) => [...prev, val],
130
+ (val, prev) => {
131
+ return [...prev, ...val.split(',')]
132
+ },
129
133
  DEFAULT_EXCLUDES
130
134
  )
131
135
  .action(watchAndDeploy)
@@ -2,7 +2,7 @@ import { fetchEventSource } from '@sentool/fetch-event-source'
2
2
  import { Command } from 'commander'
3
3
  import { config } from '../lib/config'
4
4
  import { savedInstanceId } from '../lib/defaultInstanceId'
5
- import { ensureLoggedIn } from './ensureLoggedIn'
5
+ import { ensureLoggedIn } from '../lib/ensureLoggedIn'
6
6
 
7
7
  export enum StreamNames {
8
8
  StdOut = 'stdout',