@vocab/cli 2.1.7-update-chokidar-20251222044233 → 2.1.7-update-chokidar-20251222060423

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/dist/index.cjs CHANGED
@@ -93,7 +93,7 @@ let config = null;
93
93
  handler: async () => {
94
94
  if (!await (0, __vocab_core.validate)(config)) throw new Error("Project invalid");
95
95
  }
96
- }).help().wrap(72).argv;
96
+ }).help().wrap(72).parseAsync();
97
97
 
98
98
  //#endregion
99
99
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["config: UserConfig | null","yargs"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport { pull, push } from '@vocab/phrase';\nimport { type UserConfig, resolveConfig, compile, validate } from '@vocab/core';\nimport yargsCli from 'yargs';\n\nimport envCi from 'env-ci';\n\nconst { branch } = envCi();\n\nconst branchDefinition = {\n type: 'string',\n describe: 'The Phrase branch to target',\n default: branch || 'local-development',\n} as const;\n\nconst ignorePathDefinition = {\n type: 'string',\n array: true,\n describe: 'Array of glob paths to ignore when searching for keys to push',\n default: [] as string[],\n} as const;\n\nlet config: UserConfig | null = null;\n\n// eslint-disable-next-line @typescript-eslint/no-unused-expressions\nyargsCli(process.argv.slice(2))\n .scriptName('vocab')\n .option('config', {\n type: 'string',\n describe: 'Path to config file',\n })\n .middleware(async ({ config: configPath }) => {\n config = await resolveConfig(configPath);\n console.log('Loaded config from', configPath || process.cwd());\n })\n .command({\n command: 'push',\n builder: (yargs) =>\n yargs.options({\n branch: branchDefinition,\n 'delete-unused-keys': {\n type: 'boolean',\n describe: 'Whether or not to delete unused keys after pushing',\n default: false,\n },\n ignore: ignorePathDefinition,\n }),\n handler: async (options) => {\n await push(options, config!);\n },\n })\n .command({\n command: 'pull',\n builder: (yargs) =>\n yargs.options({\n branch: branchDefinition,\n 'error-on-no-global-key-translation': {\n type: 'boolean',\n describe:\n 'Throw an error when there is no translation for a global key',\n default: false,\n },\n }),\n handler: async (options) => {\n await pull(options, config!);\n },\n })\n .command({\n command: 'compile',\n builder: (yargs) =>\n yargs.options({\n watch: { type: 'boolean', default: false },\n }),\n handler: async ({ watch }) => {\n await compile({ watch }, config!);\n },\n })\n .command({\n command: 'validate',\n handler: async () => {\n const valid = await validate(config!);\n\n if (!valid) {\n throw new Error('Project invalid');\n }\n },\n })\n .help()\n .wrap(72).argv;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,EAAE,gCAAkB;AAE1B,MAAM,mBAAmB;CACvB,MAAM;CACN,UAAU;CACV,SAAS,UAAU;CACpB;AAED,MAAM,uBAAuB;CAC3B,MAAM;CACN,OAAO;CACP,UAAU;CACV,SAAS,EAAE;CACZ;AAED,IAAIA,SAA4B;mBAGvB,QAAQ,KAAK,MAAM,EAAE,CAAC,CAC5B,WAAW,QAAQ,CACnB,OAAO,UAAU;CAChB,MAAM;CACN,UAAU;CACX,CAAC,CACD,WAAW,OAAO,EAAE,QAAQ,iBAAiB;AAC5C,UAAS,sCAAoB,WAAW;AACxC,SAAQ,IAAI,sBAAsB,cAAc,QAAQ,KAAK,CAAC;EAC9D,CACD,QAAQ;CACP,SAAS;CACT,UAAU,YACRC,QAAM,QAAQ;EACZ,QAAQ;EACR,sBAAsB;GACpB,MAAM;GACN,UAAU;GACV,SAAS;GACV;EACD,QAAQ;EACT,CAAC;CACJ,SAAS,OAAO,YAAY;AAC1B,iCAAW,SAAS,OAAQ;;CAE/B,CAAC,CACD,QAAQ;CACP,SAAS;CACT,UAAU,YACRA,QAAM,QAAQ;EACZ,QAAQ;EACR,sCAAsC;GACpC,MAAM;GACN,UACE;GACF,SAAS;GACV;EACF,CAAC;CACJ,SAAS,OAAO,YAAY;AAC1B,iCAAW,SAAS,OAAQ;;CAE/B,CAAC,CACD,QAAQ;CACP,SAAS;CACT,UAAU,YACRA,QAAM,QAAQ,EACZ,OAAO;EAAE,MAAM;EAAW,SAAS;EAAO,EAC3C,CAAC;CACJ,SAAS,OAAO,EAAE,YAAY;AAC5B,kCAAc,EAAE,OAAO,EAAE,OAAQ;;CAEpC,CAAC,CACD,QAAQ;CACP,SAAS;CACT,SAAS,YAAY;AAGnB,MAAI,CAFU,iCAAe,OAAQ,CAGnC,OAAM,IAAI,MAAM,kBAAkB;;CAGvC,CAAC,CACD,MAAM,CACN,KAAK,GAAG,CAAC"}
1
+ {"version":3,"file":"index.cjs","names":["config: UserConfig | null","yargs"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable no-console */\nimport { pull, push } from '@vocab/phrase';\nimport { type UserConfig, resolveConfig, compile, validate } from '@vocab/core';\nimport yargsCli from 'yargs';\n\nimport envCi from 'env-ci';\n\nconst { branch } = envCi();\n\nconst branchDefinition = {\n type: 'string',\n describe: 'The Phrase branch to target',\n default: branch || 'local-development',\n} as const;\n\nconst ignorePathDefinition = {\n type: 'string',\n array: true,\n describe: 'Array of glob paths to ignore when searching for keys to push',\n default: [] as string[],\n} as const;\n\nlet config: UserConfig | null = null;\n\nyargsCli(process.argv.slice(2))\n .scriptName('vocab')\n .option('config', {\n type: 'string',\n describe: 'Path to config file',\n })\n .middleware(async ({ config: configPath }) => {\n config = await resolveConfig(configPath);\n console.log('Loaded config from', configPath || process.cwd());\n })\n .command({\n command: 'push',\n builder: (yargs) =>\n yargs.options({\n branch: branchDefinition,\n 'delete-unused-keys': {\n type: 'boolean',\n describe: 'Whether or not to delete unused keys after pushing',\n default: false,\n },\n ignore: ignorePathDefinition,\n }),\n handler: async (options) => {\n await push(options, config!);\n },\n })\n .command({\n command: 'pull',\n builder: (yargs) =>\n yargs.options({\n branch: branchDefinition,\n 'error-on-no-global-key-translation': {\n type: 'boolean',\n describe:\n 'Throw an error when there is no translation for a global key',\n default: false,\n },\n }),\n handler: async (options) => {\n await pull(options, config!);\n },\n })\n .command({\n command: 'compile',\n builder: (yargs) =>\n yargs.options({\n watch: { type: 'boolean', default: false },\n }),\n handler: async ({ watch }) => {\n await compile({ watch }, config!);\n },\n })\n .command({\n command: 'validate',\n handler: async () => {\n const valid = await validate(config!);\n\n if (!valid) {\n throw new Error('Project invalid');\n }\n },\n })\n .help()\n .wrap(72)\n .parseAsync();\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,EAAE,gCAAkB;AAE1B,MAAM,mBAAmB;CACvB,MAAM;CACN,UAAU;CACV,SAAS,UAAU;CACpB;AAED,MAAM,uBAAuB;CAC3B,MAAM;CACN,OAAO;CACP,UAAU;CACV,SAAS,EAAE;CACZ;AAED,IAAIA,SAA4B;mBAEvB,QAAQ,KAAK,MAAM,EAAE,CAAC,CAC5B,WAAW,QAAQ,CACnB,OAAO,UAAU;CAChB,MAAM;CACN,UAAU;CACX,CAAC,CACD,WAAW,OAAO,EAAE,QAAQ,iBAAiB;AAC5C,UAAS,sCAAoB,WAAW;AACxC,SAAQ,IAAI,sBAAsB,cAAc,QAAQ,KAAK,CAAC;EAC9D,CACD,QAAQ;CACP,SAAS;CACT,UAAU,YACRC,QAAM,QAAQ;EACZ,QAAQ;EACR,sBAAsB;GACpB,MAAM;GACN,UAAU;GACV,SAAS;GACV;EACD,QAAQ;EACT,CAAC;CACJ,SAAS,OAAO,YAAY;AAC1B,iCAAW,SAAS,OAAQ;;CAE/B,CAAC,CACD,QAAQ;CACP,SAAS;CACT,UAAU,YACRA,QAAM,QAAQ;EACZ,QAAQ;EACR,sCAAsC;GACpC,MAAM;GACN,UACE;GACF,SAAS;GACV;EACF,CAAC;CACJ,SAAS,OAAO,YAAY;AAC1B,iCAAW,SAAS,OAAQ;;CAE/B,CAAC,CACD,QAAQ;CACP,SAAS;CACT,UAAU,YACRA,QAAM,QAAQ,EACZ,OAAO;EAAE,MAAM;EAAW,SAAS;EAAO,EAC3C,CAAC;CACJ,SAAS,OAAO,EAAE,YAAY;AAC5B,kCAAc,EAAE,OAAO,EAAE,OAAQ;;CAEpC,CAAC,CACD,QAAQ;CACP,SAAS;CACT,SAAS,YAAY;AAGnB,MAAI,CAFU,iCAAe,OAAQ,CAGnC,OAAM,IAAI,MAAM,kBAAkB;;CAGvC,CAAC,CACD,MAAM,CACN,KAAK,GAAG,CACR,YAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocab/cli",
3
- "version": "2.1.7-update-chokidar-20251222044233",
3
+ "version": "2.1.7-update-chokidar-20251222060423",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seek-oss/vocab.git",
@@ -24,8 +24,8 @@
24
24
  "dependencies": {
25
25
  "env-ci": "^7.3.0",
26
26
  "yargs": "^17.7.2",
27
- "@vocab/core": "^1.7.3-update-chokidar-20251222044233",
28
- "@vocab/phrase": "^2.1.7-update-chokidar-20251222044233"
27
+ "@vocab/core": "^1.7.3-update-chokidar-20251222060423",
28
+ "@vocab/phrase": "^2.1.7-update-chokidar-20251222060423"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/env-ci": "^3.1.0",