@deriv-com/translations 1.0.1 → 1.0.2

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.
@@ -4,6 +4,7 @@
4
4
  const path = require("path");
5
5
  const crc32 = require("crc-32").str;
6
6
  const fs = require("fs");
7
+ const program = require("commander");
7
8
  const glob = require("glob");
8
9
  const DOMParser = require("@xmldom/xmldom").DOMParser;
9
10
 
@@ -74,6 +75,12 @@ const getTranslatableFiles = () => {
74
75
  return file_paths;
75
76
  };
76
77
 
78
+ program
79
+ .version("0.1.0")
80
+ .description("Build translation source.")
81
+ .option("-v, --verbose", "Displays the list of paths to be compiled")
82
+ .parse(process.argv);
83
+
77
84
  /** *********************************************
78
85
  * Common
79
86
  */
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  }
17
17
  },
18
18
  "private": false,
19
- "version": "1.0.1",
19
+ "version": "1.0.2",
20
20
  "scripts": {
21
21
  "dev": "vite",
22
22
  "build": "tsc && vite build && cp ./src/scripts/extract-translations.cjs ./dist/extract-translations.cjs",
@@ -42,13 +42,9 @@
42
42
  "@typescript-eslint/eslint-plugin": "^6.14.0",
43
43
  "@typescript-eslint/parser": "^6.14.0",
44
44
  "@vitejs/plugin-react": "^4.2.1",
45
- "@xmldom/xmldom": "^0.8.10",
46
- "commander": "^12.0.0",
47
- "crc-32": "^1.2.2",
48
45
  "eslint": "^8.55.0",
49
46
  "eslint-plugin-react-hooks": "^4.6.0",
50
47
  "eslint-plugin-react-refresh": "^0.4.5",
51
- "glob": "^10.3.12",
52
48
  "i18next": "^23.7.18",
53
49
  "jsdom": "^24.0.0",
54
50
  "react": "^18.2.0",
@@ -62,5 +58,11 @@
62
58
  },
63
59
  "optionalDependencies": {
64
60
  "@rollup/rollup-linux-x64-gnu": "^4.17.1"
61
+ },
62
+ "dependencies": {
63
+ "@xmldom/xmldom": "^0.8.10",
64
+ "commander": "^12.0.0",
65
+ "crc-32": "^1.2.2",
66
+ "glob": "^10.3.12"
65
67
  }
66
68
  }