@knocklabs/cli 0.1.12 → 0.1.13
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/README.md
CHANGED
|
@@ -103,7 +103,6 @@ class TranslationPush extends _basecommand.default {
|
|
|
103
103
|
// 3. Finally push up each translation file, abort on the first error.
|
|
104
104
|
_ux.spinner.start(`‣ Pushing`);
|
|
105
105
|
for (const translation of translations){
|
|
106
|
-
if (translation.namespace === _translation.SYSTEM_NAMESPACE) continue;
|
|
107
106
|
// eslint-disable-next-line no-await-in-loop
|
|
108
107
|
const resp = await this.apiV1.upsertTranslation(this.props, {
|
|
109
108
|
locale_code: translation.localeCode,
|
|
@@ -71,6 +71,10 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
71
71
|
const parsedRef = (0, _helpers.parseTranslationRef)(translationRef);
|
|
72
72
|
if (!parsedRef) continue;
|
|
73
73
|
const { localeCode, namespace } = parsedRef;
|
|
74
|
+
// Skip the system translation file when reading from the disk by default,
|
|
75
|
+
// as it is not user editable and should be excluded from the validate or
|
|
76
|
+
// push commands. Consider making this an option in the future.
|
|
77
|
+
if (namespace === _helpers.SYSTEM_NAMESPACE) continue;
|
|
74
78
|
// eslint-disable-next-line no-await-in-loop
|
|
75
79
|
const [content, readJsonErrors] = await (0, _json.readJson)(abspath);
|
|
76
80
|
if (readJsonErrors.length > 0) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knocklabs/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Knock CLI",
|
|
5
5
|
"author": "@knocklabs",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"liquidjs": "^10.10.2",
|
|
29
29
|
"locale-codes": "^1.3.1",
|
|
30
30
|
"lodash": "^4.17.21",
|
|
31
|
-
"yup": "^1.
|
|
31
|
+
"yup": "^1.4.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@oclif/test": "^3",
|