• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rokucommunity / roku-deploy / 26912207197

03 Jun 2026 08:50PM UTC coverage: 89.655% (-10.3%) from 100.0%
26912207197

Pull #124

github

web-flow
Merge a26572902 into 146a489c5
Pull Request #124: v4

461 of 528 branches covered (87.31%)

Branch coverage included in aggregate %.

296 of 308 new or added lines in 10 files covered. (96.1%)

59 existing lines in 3 files now uncovered.

735 of 806 relevant lines covered (91.19%)

31.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.37
/src/commands/SideloadCommand.ts
1
import { rokuDeploy, util } from '../index';
1✔
2
import type { CloseChannelOptions } from '../RokuDeploy';
3
import * as path from 'path';
1✔
4

5
export class SideloadCommand {
1✔
6
    async run(args) {
7
        let options = {
4✔
8
            ...util.getOptionsFromJson(args),
9
            ...args
10
        };
11

12
        // Process args so that they can be compatible with the RokuDeploy
13
        args.cwd ??= process.cwd();
4!
14
        if (args.zip) {
4✔
15
            args.zip = path.resolve(args.cwd, args.zip);
2✔
16
            options.outDir = path.dirname(args.zip);
2✔
17
            options.outFile = path.basename(args.zip);
2✔
18
        }
19
        if (args.rootDir) {
4✔
20
            options.rootDir = path.resolve(args.cwd, args.rootDir);
1✔
21
        }
22

23
        if (args.outZip) {
4!
NEW
24
            options.outZip = path.resolve(args.cwd, args.outZip);
×
25
        }
26

27
        if (args.ecpPort) {
4!
NEW
28
            options.remotePort = args.ecpPort;
×
29
        }
30

31
        if (args.noclose !== true) {
4✔
32
            await rokuDeploy.closeChannel(options as CloseChannelOptions);
2✔
33
        }
34

35

36
        if (args.zip) {
4✔
37
            options.retainDeploymentArchive = true;
2✔
38
            await rokuDeploy.sideload(options);
2✔
39
        } else if (args.rootDir) {
2✔
40
            await rokuDeploy.zip(options);
1✔
41
            options.retainDeploymentArchive = false;
1✔
42
            await rokuDeploy.sideload(options);
1✔
43
        } else {
44
            throw new Error('Either zip or rootDir must be provided for sideload command');
1✔
45
        }
46
    }
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc