@vocab/cli
Advanced tools
Comparing version 1.4.4 to 2.0.0
@@ -5,3 +5,3 @@ 'use strict'; | ||
var core = require('@vocab/core'); | ||
var yargs = require('yargs'); | ||
var yargsCli = require('yargs'); | ||
var envCi = require('env-ci'); | ||
@@ -11,3 +11,3 @@ | ||
var yargs__default = /*#__PURE__*/_interopDefault(yargs); | ||
var yargsCli__default = /*#__PURE__*/_interopDefault(yargsCli); | ||
var envCi__default = /*#__PURE__*/_interopDefault(envCi); | ||
@@ -27,3 +27,3 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
yargs__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', { | ||
yargsCli__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', { | ||
type: 'string', | ||
@@ -38,3 +38,3 @@ describe: 'Path to config file' | ||
command: 'push', | ||
builder: () => yargs__default["default"].options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
@@ -52,3 +52,3 @@ 'delete-unused-keys': { | ||
command: 'pull', | ||
builder: () => yargs__default["default"].options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
@@ -66,3 +66,3 @@ 'error-on-no-global-key-translation': { | ||
command: 'compile', | ||
builder: () => yargs__default["default"].options({ | ||
builder: yargs => yargs.options({ | ||
watch: { | ||
@@ -69,0 +69,0 @@ type: 'boolean', |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var core = require('@vocab/core'); | ||
var yargs = require('yargs'); | ||
var yargsCli = require('yargs'); | ||
var envCi = require('env-ci'); | ||
@@ -11,3 +11,3 @@ | ||
var yargs__default = /*#__PURE__*/_interopDefault(yargs); | ||
var yargsCli__default = /*#__PURE__*/_interopDefault(yargsCli); | ||
var envCi__default = /*#__PURE__*/_interopDefault(envCi); | ||
@@ -27,3 +27,3 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
yargs__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', { | ||
yargsCli__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', { | ||
type: 'string', | ||
@@ -38,3 +38,3 @@ describe: 'Path to config file' | ||
command: 'push', | ||
builder: () => yargs__default["default"].options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
@@ -52,3 +52,3 @@ 'delete-unused-keys': { | ||
command: 'pull', | ||
builder: () => yargs__default["default"].options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
@@ -66,3 +66,3 @@ 'error-on-no-global-key-translation': { | ||
command: 'compile', | ||
builder: () => yargs__default["default"].options({ | ||
builder: yargs => yargs.options({ | ||
watch: { | ||
@@ -69,0 +69,0 @@ type: 'boolean', |
import { push, pull } from '@vocab/phrase'; | ||
import { resolveConfig, compile, validate } from '@vocab/core'; | ||
import yargs from 'yargs'; | ||
import yargsCli from 'yargs'; | ||
import envCi from 'env-ci'; | ||
@@ -18,3 +18,3 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
yargs(process.argv.slice(2)).scriptName('vocab').option('config', { | ||
yargsCli(process.argv.slice(2)).scriptName('vocab').option('config', { | ||
type: 'string', | ||
@@ -29,3 +29,3 @@ describe: 'Path to config file' | ||
command: 'push', | ||
builder: () => yargs.options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
@@ -43,3 +43,3 @@ 'delete-unused-keys': { | ||
command: 'pull', | ||
builder: () => yargs.options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
@@ -57,3 +57,3 @@ 'error-on-no-global-key-translation': { | ||
command: 'compile', | ||
builder: () => yargs.options({ | ||
builder: yargs => yargs.options({ | ||
watch: { | ||
@@ -60,0 +60,0 @@ type: 'boolean', |
{ | ||
"name": "@vocab/cli", | ||
"version": "1.4.4", | ||
"version": "2.0.0", | ||
"repository": { | ||
@@ -18,20 +18,19 @@ "type": "git", | ||
], | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"author": "SEEK", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@types/env-ci": "^3.1.0", | ||
"@vocab/core": "^1.6.2", | ||
"@vocab/phrase": "^1.3.3", | ||
"env-ci": "^7.3.0", | ||
"fast-glob": "^3.2.4", | ||
"form-data": "^3.0.0", | ||
"node-fetch": "^2.6.1", | ||
"prettier": "^2.1.2", | ||
"yargs": "^16.1.0" | ||
"form-data": "^4.0.0", | ||
"yargs": "^17.7.2", | ||
"@vocab/core": "^1.6.2", | ||
"@vocab/phrase": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node-fetch": "^2.5.7", | ||
"@types/prettier": "^2.1.5", | ||
"@types/yargs": "^15.0.9" | ||
"@types/env-ci": "^3.1.0", | ||
"@types/yargs": "^17.0.32" | ||
} | ||
} |
@@ -42,4 +42,4 @@ # Vocab | ||
module.exports = { | ||
languages: [{ name: 'en' }, { name: 'fr' }] | ||
devLanguage: 'en', | ||
languages: [{ name: 'en' }, { name: 'fr' }], | ||
devLanguage: 'en' | ||
}; | ||
@@ -46,0 +46,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
2
31766
+ Added@vocab/phrase@2.0.2(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
- Removed@types/env-ci@^3.1.0
- Removednode-fetch@^2.6.1
- Removedprettier@^2.1.2
- Removed@types/env-ci@3.1.4(transitive)
- Removed@vocab/phrase@1.3.3(transitive)
- Removedcliui@7.0.4(transitive)
- Removedform-data@3.0.2(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedyargs@16.2.0(transitive)
- Removedyargs-parser@20.2.9(transitive)
Updated@vocab/phrase@^2.0.0
Updatedform-data@^4.0.0
Updatedyargs@^17.7.2