@knocklabs/cli 0.1.11 → 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
@@ -16,7 +16,7 @@ $ npm install -g @knocklabs/cli
16
16
  $ knock COMMAND
17
17
  running command...
18
18
  $ knock (--version)
19
- @knocklabs/cli/0.1.11 linux-x64 node-v18.20.2
19
+ @knocklabs/cli/0.1.13 linux-x64 node-v18.20.2
20
20
  $ knock --help [COMMAND]
21
21
  USAGE
22
22
  $ knock COMMAND
@@ -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) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "commands": {},
3
- "version": "0.1.11"
3
+ "version": "0.1.13"
4
4
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@knocklabs/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Knock CLI",
5
5
  "author": "@knocklabs",
6
6
  "bin": {
7
- "knock": "./bin/run"
7
+ "knock": "./bin/run.js"
8
8
  },
9
9
  "homepage": "https://github.com/knocklabs/knock-cli",
10
10
  "license": "MIT",
@@ -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.3.3"
31
+ "yup": "^1.4.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@oclif/test": "^3",