@oclif/core 2.0.2-beta.7 → 2.0.2-beta.9

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.
@@ -727,7 +727,8 @@ async function toCached(c, plugin) {
727
727
  flags,
728
728
  args,
729
729
  };
730
- const ignoreCommandProperties = ['plugin', '_flags', '_enableJsonFlag', '_baseFlags'];
730
+ // do not include these properties in manifest
731
+ const ignoreCommandProperties = ['plugin', '_flags', '_enableJsonFlag', '_globalFlags', '_baseFlags'];
731
732
  const stdKeys = Object.keys(stdProperties);
732
733
  const keysToAdd = Object.keys(c).filter(property => ![...stdKeys, ...ignoreCommandProperties].includes(property));
733
734
  const additionalProperties = {};
@@ -73,7 +73,7 @@ export type Relationship = {
73
73
  export type Deprecation = {
74
74
  to?: string;
75
75
  message?: string;
76
- version?: string;
76
+ version?: string | number;
77
77
  };
78
78
  export type FlagProps = {
79
79
  name: string;
package/lib/main.js CHANGED
@@ -72,7 +72,7 @@ async function run(argv, options) {
72
72
  // command id.
73
73
  if (config.pjson.oclif.default === '.' && id === '.' && argv[0] === '.')
74
74
  argvSlice = ['.', ...argvSlice];
75
- await config.runCommand(id, argvSlice, cmd);
75
+ return config.runCommand(id, argvSlice, cmd);
76
76
  }
77
77
  exports.run = run;
78
78
  function getTsConfigPath(dir, type) {
package/lib/util.js CHANGED
@@ -94,11 +94,11 @@ const fileExists = async (input) => {
94
94
  };
95
95
  exports.fileExists = fileExists;
96
96
  function isTruthy(input) {
97
- return ['true', 'TRUE', '1', 'yes', 'YES', 'y', 'Y'].includes(input);
97
+ return ['true', '1', 'yes', 'y'].includes(input.toLowerCase());
98
98
  }
99
99
  exports.isTruthy = isTruthy;
100
100
  function isNotFalsy(input) {
101
- return !['false', 'FALSE', '0', 'no', 'NO', 'n', 'N'].includes(input);
101
+ return !['false', '0', 'no', 'n'].includes(input.toLowerCase());
102
102
  }
103
103
  exports.isNotFalsy = isNotFalsy;
104
104
  function requireJson(...pathParts) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "2.0.2-beta.7",
4
+ "version": "2.0.2-beta.9",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {
@@ -38,7 +38,7 @@
38
38
  "@commitlint/config-conventional": "^12.1.4",
39
39
  "@oclif/plugin-help": "^5.1.22",
40
40
  "@oclif/plugin-plugins": "^2.1.12",
41
- "@oclif/test": "^2.2.19",
41
+ "@oclif/test": "^2.2.20",
42
42
  "@types/ansi-styles": "^3.2.1",
43
43
  "@types/chai": "^4.3.4",
44
44
  "@types/chai-as-promised": "^7.1.5",
@@ -68,7 +68,7 @@
68
68
  "globby": "^11.1.0",
69
69
  "husky": "6",
70
70
  "mocha": "^8.4.0",
71
- "nock": "^13.2.4",
71
+ "nock": "^13.3.0",
72
72
  "proxyquire": "^2.1.3",
73
73
  "shelljs": "^0.8.5",
74
74
  "shx": "^0.3.4",