@simplelocalize/cli 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/index.cjs +1 -16
  2. package/package.json +1 -1
package/index.cjs CHANGED
@@ -49,23 +49,8 @@ const buildDownloadBinaryUrl = (version) => {
49
49
  return `https://github.com/simplelocalize/simplelocalize-cli/releases/download/${version}/simplelocalize-cli-${platform}${arch}`
50
50
  }
51
51
 
52
-
53
- const getCliVersionFromArgs = () => {
54
- const args = process.argv.slice(2);
55
- const versionIndex = args.indexOf('--version');
56
- if (versionIndex !== -1 && args[versionIndex + 1]) {
57
- return args[versionIndex + 1];
58
- }
59
- return null;
60
- }
61
-
62
52
  async function installBinary() {
63
- const cliVersion = getCliVersionFromArgs();
64
- if (!cliVersion) {
65
- console.error('SimpleLocalize CLI version not specified. Please provide version using --version flag.');
66
- process.exit(1);
67
- }
68
-
53
+ const cliVersion = "2.8.0";
69
54
  const downloadUrl = buildDownloadBinaryUrl(cliVersion);
70
55
  if (!fs.existsSync(path.join(__dirname, 'bin'))) {
71
56
  fs.mkdirSync(path.join(__dirname, 'bin'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplelocalize/cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "SimpleLocalize CLI for NPM",
5
5
  "main": "index.cjs",
6
6
  "type": "module",