We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0a2dc commit f41b675Copy full SHA for f41b675
packages/web/bin/powersync.js
@@ -4,11 +4,12 @@ const { Command } = require('commander');
4
const program = new Command();
5
const path = require('path');
6
const fsPromise = require('fs/promises');
7
-
+const { version } = require('../package.json');
8
+
9
program
10
.name('powersync-web')
11
.description('CLI for PowerSync Web SDK utilities')
- .version('0.0.1');
12
+ .version(version);
13
14
15
.command('copy-assets')
@@ -37,5 +38,6 @@ async function copyDirectory(source, destination) {
37
38
console.log(`Assets copied from ${source} to ${destination}`);
39
} catch (err) {
40
console.error(`Error copying assets: ${err.message}`);
41
+ process.exit(1);
42
}
43
0 commit comments