Skip to content

Commit d4916b5

Browse files
fix: cli paths (#29)
1 parent 986bfb0 commit d4916b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ if (!existsSync(dir)){
99
mkdirSync(dir)
1010
}
1111

12-
writeFileSync(outPath, '#!/usr/bin/env node\nrequire(\'../\').startCli()')
12+
writeFileSync(outPath, '#!/usr/bin/env node\nrequire(\'./camera-probe-cjs\').cli()')
1313
chmodSync(outPath, '755')

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export * from './config/config.interface'
77
export const probe = initSocketStream.flatMap(onvifProbe)
88
export const devices$ = () => probe.run(DEFAULT_CONFIG)
99

10-
export const startCli$ = () => devices$()
10+
export const cli = () => devices$()
1111
.subscribe(v => {
1212
console.log('\n')
1313
console.log('Scanning for networked cameras...')

0 commit comments

Comments
 (0)