@vocab/cli
Advanced tools
Comparing version 0.0.0-delete-unused-keys-20228144520 to 0.0.0-feature-ignore-flag-push-20241014224750
export {}; |
export * from "./declarations/src/index"; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm9jYWItY2xpLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ== |
@@ -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); | ||
@@ -18,3 +18,3 @@ | ||
branch | ||
} = envCi__default['default'](); | ||
} = envCi__default["default"](); | ||
const branchDefinition = { | ||
@@ -25,5 +25,12 @@ type: 'string', | ||
}; | ||
let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
const ignorePathDefinition = { | ||
type: 'string', | ||
array: true, | ||
describe: 'list of paths to ignore from the command', | ||
default: [] | ||
}; | ||
let config = null; | ||
yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('config', { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
yargsCli__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', { | ||
type: 'string', | ||
@@ -38,9 +45,10 @@ describe: 'Path to config file' | ||
command: 'push', | ||
builder: () => yargs__default['default'].options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
deleteUnusedKeys: { | ||
'delete-unused-keys': { | ||
type: 'boolean', | ||
describe: 'Whether or not to delete unused keys after pushing', | ||
default: false | ||
} | ||
}, | ||
ignore: ignorePathDefinition | ||
}), | ||
@@ -52,4 +60,9 @@ handler: async options => { | ||
command: 'pull', | ||
builder: () => yargs__default['default'].options({ | ||
branch: branchDefinition | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
'error-on-no-global-key-translation': { | ||
type: 'boolean', | ||
describe: 'Throw an error when there is no translation for a global key', | ||
default: false | ||
} | ||
}), | ||
@@ -61,3 +74,3 @@ handler: async options => { | ||
command: 'compile', | ||
builder: () => yargs__default['default'].options({ | ||
builder: yargs => yargs.options({ | ||
watch: { | ||
@@ -79,3 +92,2 @@ type: 'boolean', | ||
const valid = await core.validate(config); | ||
if (!valid) { | ||
@@ -82,0 +94,0 @@ throw new Error('Project invalid'); |
@@ -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); | ||
@@ -18,3 +18,3 @@ | ||
branch | ||
} = envCi__default['default'](); | ||
} = envCi__default["default"](); | ||
const branchDefinition = { | ||
@@ -25,5 +25,12 @@ type: 'string', | ||
}; | ||
let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
const ignorePathDefinition = { | ||
type: 'string', | ||
array: true, | ||
describe: 'list of paths to ignore from the command', | ||
default: [] | ||
}; | ||
let config = null; | ||
yargs__default['default'](process.argv.slice(2)).scriptName('vocab').option('config', { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
yargsCli__default["default"](process.argv.slice(2)).scriptName('vocab').option('config', { | ||
type: 'string', | ||
@@ -38,9 +45,10 @@ describe: 'Path to config file' | ||
command: 'push', | ||
builder: () => yargs__default['default'].options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
deleteUnusedKeys: { | ||
'delete-unused-keys': { | ||
type: 'boolean', | ||
describe: 'Whether or not to delete unused keys after pushing', | ||
default: false | ||
} | ||
}, | ||
ignore: ignorePathDefinition | ||
}), | ||
@@ -52,4 +60,9 @@ handler: async options => { | ||
command: 'pull', | ||
builder: () => yargs__default['default'].options({ | ||
branch: branchDefinition | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
'error-on-no-global-key-translation': { | ||
type: 'boolean', | ||
describe: 'Throw an error when there is no translation for a global key', | ||
default: false | ||
} | ||
}), | ||
@@ -61,3 +74,3 @@ handler: async options => { | ||
command: 'compile', | ||
builder: () => yargs__default['default'].options({ | ||
builder: yargs => yargs.options({ | ||
watch: { | ||
@@ -79,3 +92,2 @@ type: 'boolean', | ||
const valid = await core.validate(config); | ||
if (!valid) { | ||
@@ -82,0 +94,0 @@ throw new Error('Project invalid'); |
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'; | ||
@@ -15,5 +15,12 @@ | ||
}; | ||
let config = null; // eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
const ignorePathDefinition = { | ||
type: 'string', | ||
array: true, | ||
describe: 'list of paths to ignore from the command', | ||
default: [] | ||
}; | ||
let config = null; | ||
yargs(process.argv.slice(2)).scriptName('vocab').option('config', { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions | ||
yargsCli(process.argv.slice(2)).scriptName('vocab').option('config', { | ||
type: 'string', | ||
@@ -28,9 +35,10 @@ describe: 'Path to config file' | ||
command: 'push', | ||
builder: () => yargs.options({ | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
deleteUnusedKeys: { | ||
'delete-unused-keys': { | ||
type: 'boolean', | ||
describe: 'Whether or not to delete unused keys after pushing', | ||
default: false | ||
} | ||
}, | ||
ignore: ignorePathDefinition | ||
}), | ||
@@ -42,4 +50,9 @@ handler: async options => { | ||
command: 'pull', | ||
builder: () => yargs.options({ | ||
branch: branchDefinition | ||
builder: yargs => yargs.options({ | ||
branch: branchDefinition, | ||
'error-on-no-global-key-translation': { | ||
type: 'boolean', | ||
describe: 'Throw an error when there is no translation for a global key', | ||
default: false | ||
} | ||
}), | ||
@@ -51,3 +64,3 @@ handler: async options => { | ||
command: 'compile', | ||
builder: () => yargs.options({ | ||
builder: yargs => yargs.options({ | ||
watch: { | ||
@@ -69,3 +82,2 @@ type: 'boolean', | ||
const valid = await validate(config); | ||
if (!valid) { | ||
@@ -72,0 +84,0 @@ throw new Error('Project invalid'); |
{ | ||
"name": "@vocab/cli", | ||
"version": "0.0.0-delete-unused-keys-20228144520", | ||
"version": "0.0.0-feature-ignore-flag-push-20241014224750", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/seek-oss/vocab.git", | ||
"directory": "packages/cli" | ||
}, | ||
"main": "dist/vocab-cli.cjs.js", | ||
@@ -9,20 +14,22 @@ "module": "dist/vocab-cli.esm.js", | ||
}, | ||
"files": [ | ||
"dist", | ||
"bin.js" | ||
], | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"author": "SEEK", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@types/env-ci": "^3.1.0", | ||
"@vocab/core": "^1.1.0", | ||
"@vocab/phrase": "^0.0.0-delete-unused-keys-20228144520", | ||
"env-ci": "^5.0.2", | ||
"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" | ||
"yargs": "^17.7.2", | ||
"@vocab/core": "^1.6.2", | ||
"@vocab/phrase": "^0.0.0-feature-ignore-flag-push-20241014224750" | ||
}, | ||
"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" | ||
} | ||
} | ||
} |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
5
2
1
8847
9
260
+ Addedcliui@8.0.1(transitive)
+ Addedenv-ci@7.3.0(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
- Removed@types/env-ci@^3.1.0
- Removedform-data@^3.0.0
- Removednode-fetch@^2.6.1
- Removedprettier@^2.1.2
- Removed@types/env-ci@3.1.4(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedcliui@7.0.4(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedenv-ci@5.5.0(transitive)
- Removedform-data@3.0.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(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/core@^1.6.2
Updated@vocab/phrase@^0.0.0-feature-ignore-flag-push-20241014224750
Updatedenv-ci@^7.3.0
Updatedyargs@^17.7.2