@oclif/core 3.0.0-beta.17 → 3.0.0-beta.18

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.
Files changed (54) hide show
  1. package/lib/cli-ux/action/base.js +7 -7
  2. package/lib/cli-ux/action/simple.js +1 -4
  3. package/lib/cli-ux/action/spinner.js +5 -2
  4. package/lib/cli-ux/config.js +4 -6
  5. package/lib/cli-ux/exit.js +3 -0
  6. package/lib/cli-ux/flush.js +5 -4
  7. package/lib/cli-ux/index.js +1 -1
  8. package/lib/cli-ux/stream.js +1 -0
  9. package/lib/cli-ux/styled/json.js +5 -3
  10. package/lib/cli-ux/styled/table.js +3 -0
  11. package/lib/cli-ux/styled/tree.js +1 -3
  12. package/lib/command.d.ts +6 -14
  13. package/lib/command.js +81 -68
  14. package/lib/config/config.d.ts +0 -1
  15. package/lib/config/config.js +43 -163
  16. package/lib/config/index.d.ts +0 -1
  17. package/lib/config/index.js +1 -3
  18. package/lib/config/plugin-loader.js +5 -4
  19. package/lib/config/plugin.d.ts +1 -0
  20. package/lib/config/plugin.js +31 -14
  21. package/lib/config/ts-node.js +9 -3
  22. package/lib/config/util.d.ts +0 -6
  23. package/lib/config/util.js +1 -13
  24. package/lib/errors/errors/cli.js +3 -1
  25. package/lib/errors/errors/exit.js +1 -1
  26. package/lib/errors/errors/module-load.js +1 -1
  27. package/lib/errors/handle.js +2 -2
  28. package/lib/errors/logger.js +3 -2
  29. package/lib/flags.d.ts +2 -2
  30. package/lib/help/command.js +3 -0
  31. package/lib/help/docopts.js +3 -0
  32. package/lib/help/formatter.js +12 -1
  33. package/lib/help/index.d.ts +5 -1
  34. package/lib/help/index.js +32 -8
  35. package/lib/help/root.js +5 -2
  36. package/lib/help/util.d.ts +1 -7
  37. package/lib/help/util.js +1 -21
  38. package/lib/index.d.ts +2 -2
  39. package/lib/index.js +2 -3
  40. package/lib/interfaces/parser.d.ts +8 -7
  41. package/lib/interfaces/plugin.d.ts +5 -0
  42. package/lib/module-loader.js +2 -2
  43. package/lib/parser/errors.js +6 -0
  44. package/lib/parser/parse.js +9 -2
  45. package/lib/performance.js +11 -3
  46. package/lib/util/aggregate-flags.d.ts +2 -0
  47. package/lib/util/aggregate-flags.js +15 -0
  48. package/lib/util/cache-command.d.ts +3 -0
  49. package/lib/util/cache-command.js +100 -0
  50. package/lib/util/cache-default-value.d.ts +2 -0
  51. package/lib/util/cache-default-value.js +28 -0
  52. package/lib/{util.d.ts → util/index.d.ts} +7 -2
  53. package/lib/{util.js → util/index.js} +13 -16
  54. package/package.json +9 -5
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": "3.0.0-beta.17",
4
+ "version": "3.0.0-beta.18",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {
@@ -36,7 +36,8 @@
36
36
  "@commitlint/config-conventional": "^12.1.4",
37
37
  "@oclif/plugin-help": "^5.2.8",
38
38
  "@oclif/plugin-plugins": "^3.3.0",
39
- "@oclif/test": "^2.4.7",
39
+ "@oclif/prettier-config": "^0.1.1",
40
+ "@oclif/test": "^3.0.0-beta.1",
40
41
  "@types/ansi-styles": "^3.2.1",
41
42
  "@types/benchmark": "^2.1.2",
42
43
  "@types/chai": "^4.3.4",
@@ -65,8 +66,10 @@
65
66
  "fancy-test": "^3.0.0-beta.2",
66
67
  "globby": "^11.1.0",
67
68
  "husky": "6",
69
+ "madge": "^6.1.0",
68
70
  "mocha": "^10.2.0",
69
71
  "nock": "^13.3.0",
72
+ "nyc": "^15.1.0",
70
73
  "shx": "^0.3.4",
71
74
  "sinon": "^11.1.2",
72
75
  "tsd": "^0.29.0",
@@ -105,13 +108,14 @@
105
108
  "commitlint": "commitlint",
106
109
  "compile": "tsc",
107
110
  "lint": "eslint . --ext .ts",
108
- "posttest": "yarn lint",
111
+ "posttest": "yarn lint && yarn test:circular-deps",
109
112
  "prepack": "yarn run build",
110
- "pretest": "yarn build --noEmit && tsc -p test --noEmit --skipLibCheck",
113
+ "pretest": "yarn build && tsc -p test --noEmit --skipLibCheck",
114
+ "test:circular-deps": "madge lib/ -c",
111
115
  "test:e2e": "mocha --forbid-only \"test/**/*.e2e.ts\" --parallel --timeout 1200000",
112
116
  "test:esm-cjs": "cross-env DEBUG=e2e:* ts-node test/integration/esm-cjs.ts",
113
117
  "test:perf": "ts-node test/perf/parser.perf.ts",
114
- "test": "mocha --forbid-only \"test/**/*.test.ts\""
118
+ "test": "nyc mocha --forbid-only \"test/**/*.test.ts\""
115
119
  },
116
120
  "types": "lib/index.d.ts"
117
121
  }