@oclif/plugin-test-cjs-1 0.1.2 → 0.2.0

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/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @oclif/plugin-test-cjs-1
18
18
  $ cjs1 COMMAND
19
19
  running command...
20
20
  $ cjs1 (--version)
21
- @oclif/plugin-test-cjs-1/0.1.2 linux-x64 node-v18.17.0
21
+ @oclif/plugin-test-cjs-1/0.2.0 linux-x64 node-v18.17.0
22
22
  $ cjs1 --help [COMMAND]
23
23
  USAGE
24
24
  $ cjs1 COMMAND
@@ -46,7 +46,7 @@ USAGE
46
46
  $ cjs1 cjs1
47
47
  ```
48
48
 
49
- _See code: [dist/commands/cjs1.ts](https://github.com/oclif/plugin-test-cjs-1/blob/v0.1.2/dist/commands/cjs1.ts)_
49
+ _See code: [dist/commands/cjs1.ts](https://github.com/oclif/plugin-test-cjs-1/blob/v0.2.0/dist/commands/cjs1.ts)_
50
50
 
51
51
  ## `cjs1 help [COMMANDS]`
52
52
 
@@ -74,11 +74,14 @@ List installed plugins.
74
74
 
75
75
  ```
76
76
  USAGE
77
- $ cjs1 plugins [--core]
77
+ $ cjs1 plugins [--json] [--core]
78
78
 
79
79
  FLAGS
80
80
  --core Show core plugins.
81
81
 
82
+ GLOBAL FLAGS
83
+ --json Format output as json.
84
+
82
85
  DESCRIPTION
83
86
  List installed plugins.
84
87
 
@@ -86,7 +89,7 @@ EXAMPLES
86
89
  $ cjs1 plugins
87
90
  ```
88
91
 
89
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/index.ts)_
92
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.2.0/src/commands/plugins/index.ts)_
90
93
 
91
94
  ## `cjs1 plugins:install PLUGIN...`
92
95
 
@@ -151,7 +154,7 @@ EXAMPLES
151
154
  $ cjs1 plugins:inspect myplugin
152
155
  ```
153
156
 
154
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/inspect.ts)_
157
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.2.0/src/commands/plugins/inspect.ts)_
155
158
 
156
159
  ## `cjs1 plugins:install PLUGIN...`
157
160
 
@@ -191,7 +194,7 @@ EXAMPLES
191
194
  $ cjs1 plugins:install someuser/someplugin
192
195
  ```
193
196
 
194
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/install.ts)_
197
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.2.0/src/commands/plugins/install.ts)_
195
198
 
196
199
  ## `cjs1 plugins:link PLUGIN`
197
200
 
@@ -220,7 +223,7 @@ EXAMPLES
220
223
  $ cjs1 plugins:link myplugin
221
224
  ```
222
225
 
223
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/link.ts)_
226
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.2.0/src/commands/plugins/link.ts)_
224
227
 
225
228
  ## `cjs1 plugins:uninstall PLUGIN...`
226
229
 
@@ -268,7 +271,7 @@ ALIASES
268
271
  $ cjs1 plugins remove
269
272
  ```
270
273
 
271
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/uninstall.ts)_
274
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.2.0/src/commands/plugins/uninstall.ts)_
272
275
 
273
276
  ## `cjs1 plugins:uninstall PLUGIN...`
274
277
 
@@ -309,5 +312,5 @@ DESCRIPTION
309
312
  Update installed plugins.
310
313
  ```
311
314
 
312
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v2.4.7/src/commands/plugins/update.ts)_
315
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.2.0/src/commands/plugins/update.ts)_
313
316
  <!-- commandsstop -->
@@ -0,0 +1,3 @@
1
+ import { Hook } from '@oclif/core';
2
+ declare const hook: Hook<'init'>;
3
+ export default hook;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const hook = async function () {
4
+ console.log('Greetings! from plugin-test-cjs-1 init hook');
5
+ };
6
+ exports.default = hook;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.2",
2
+ "version": "0.2.0",
3
3
  "commands": {
4
4
  "cjs1": {
5
5
  "id": "cjs1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-cjs-1",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Test CJS plugin",
5
5
  "author": "Salesforce",
6
6
  "bin": {
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@oclif/core": "^2",
21
21
  "@oclif/plugin-help": "^5",
22
- "@oclif/plugin-plugins": "^2.4.7"
22
+ "@oclif/plugin-plugins": "^3.2.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@oclif/test": "^2.4.2",
@@ -50,6 +50,9 @@
50
50
  "hello": {
51
51
  "description": "Say hello to the world and others"
52
52
  }
53
+ },
54
+ "hooks": {
55
+ "init": "./dist/hooks/init/init"
53
56
  }
54
57
  },
55
58
  "scripts": {