rn-iso 0.2.0 → 0.2.1
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/bin/cli.js +4 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
2
3
|
import { Command } from 'commander';
|
|
3
4
|
import deviceCommand from '../src/commands/device.js';
|
|
4
5
|
import iosCommand from '../src/commands/ios.js';
|
|
@@ -10,11 +11,13 @@ import releaseCommand from '../src/commands/release.js';
|
|
|
10
11
|
import reserveCommand from '../src/commands/reserve.js';
|
|
11
12
|
import unreserveCommand from '../src/commands/unreserve.js';
|
|
12
13
|
|
|
14
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf-8'));
|
|
15
|
+
|
|
13
16
|
const program = new Command();
|
|
14
17
|
program
|
|
15
18
|
.name('rn-iso')
|
|
16
19
|
.description('Isolated React Native dev environments per project/worktree')
|
|
17
|
-
.version(
|
|
20
|
+
.version(pkg.version);
|
|
18
21
|
|
|
19
22
|
deviceCommand(program);
|
|
20
23
|
iosCommand(program);
|