@heroku-cli/plugin-mtls 1.0.1 → 2.0.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.
Files changed (43) hide show
  1. package/README.md +90 -51
  2. package/dist/base.d.ts +8 -8
  3. package/dist/base.js +4 -7
  4. package/dist/commands/data/mtls/certificates/create.d.ts +3 -3
  5. package/dist/commands/data/mtls/certificates/create.js +17 -19
  6. package/dist/commands/data/mtls/certificates/delete.d.ts +4 -4
  7. package/dist/commands/data/mtls/certificates/delete.js +16 -19
  8. package/dist/commands/data/mtls/certificates/download.d.ts +6 -6
  9. package/dist/commands/data/mtls/certificates/download.js +59 -63
  10. package/dist/commands/data/mtls/certificates/get.d.ts +4 -4
  11. package/dist/commands/data/mtls/certificates/get.js +15 -17
  12. package/dist/commands/data/mtls/certificates/index.d.ts +3 -3
  13. package/dist/commands/data/mtls/certificates/index.js +23 -26
  14. package/dist/commands/data/mtls/create.d.ts +3 -3
  15. package/dist/commands/data/mtls/create.js +21 -23
  16. package/dist/commands/data/mtls/destroy.d.ts +3 -3
  17. package/dist/commands/data/mtls/destroy.js +15 -18
  18. package/dist/commands/data/mtls/index.d.ts +3 -3
  19. package/dist/commands/data/mtls/index.js +32 -41
  20. package/dist/commands/data/mtls/ip-rules/create.d.ts +5 -5
  21. package/dist/commands/data/mtls/ip-rules/create.js +20 -22
  22. package/dist/commands/data/mtls/ip-rules/delete.d.ts +5 -5
  23. package/dist/commands/data/mtls/ip-rules/delete.js +19 -22
  24. package/dist/commands/data/mtls/ip-rules/get.d.ts +4 -4
  25. package/dist/commands/data/mtls/ip-rules/get.js +13 -16
  26. package/dist/commands/data/mtls/ip-rules/index.d.ts +3 -3
  27. package/dist/commands/data/mtls/ip-rules/index.js +13 -16
  28. package/dist/index.d.ts +1 -2
  29. package/dist/index.js +1 -3
  30. package/dist/lib/addon-fetcher.d.ts +7 -0
  31. package/dist/lib/addon-fetcher.js +23 -0
  32. package/dist/utils/file-helper.d.ts +1 -1
  33. package/dist/utils/file-helper.js +4 -11
  34. package/dist/utils/is-error-http.js +1 -4
  35. package/dist/utils/is-error-message.js +1 -4
  36. package/dist/utils/table.d.ts +1 -1
  37. package/dist/utils/table.js +11 -16
  38. package/{dist/oclif.manifest.json → oclif.manifest.json} +134 -49
  39. package/package.json +36 -36
  40. package/dist/README.md +0 -347
  41. package/dist/lib/fetcher.d.ts +0 -1
  42. package/dist/lib/fetcher.js +0 -70
  43. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -14,24 +14,31 @@
14
14
  "$ heroku data:mtls:create postgresql-sushi-12345 -a example-app"
15
15
  ],
16
16
  "flags": {
17
+ "prompt": {
18
+ "description": "interactively prompt for command arguments and flags",
19
+ "helpGroup": "GLOBAL",
20
+ "name": "prompt",
21
+ "allowNo": false,
22
+ "type": "boolean"
23
+ },
17
24
  "app": {
18
25
  "char": "a",
19
26
  "description": "app to run command against",
20
27
  "name": "app",
21
28
  "required": true,
22
- "hasDynamicHelp": false,
29
+ "hasDynamicHelp": true,
23
30
  "multiple": false,
24
31
  "type": "option"
25
32
  }
26
33
  },
27
- "hasDynamicHelp": false,
34
+ "hasDynamicHelp": true,
28
35
  "hiddenAliases": [],
29
36
  "id": "data:mtls:create",
30
37
  "pluginAlias": "@heroku-cli/plugin-mtls",
31
38
  "pluginName": "@heroku-cli/plugin-mtls",
32
39
  "pluginType": "core",
33
40
  "strict": true,
34
- "isESM": false,
41
+ "isESM": true,
35
42
  "relativePath": [
36
43
  "dist",
37
44
  "commands",
@@ -51,29 +58,36 @@
51
58
  "required": true
52
59
  }
53
60
  },
54
- "description": "destroy MTLS configuration on your addon",
61
+ "description": "disable mTLS for your add-on",
55
62
  "examples": [
56
63
  "$ heroku data:mtls:destroy postgresql-sushi-12345 -a example-app"
57
64
  ],
58
65
  "flags": {
66
+ "prompt": {
67
+ "description": "interactively prompt for command arguments and flags",
68
+ "helpGroup": "GLOBAL",
69
+ "name": "prompt",
70
+ "allowNo": false,
71
+ "type": "boolean"
72
+ },
59
73
  "app": {
60
74
  "char": "a",
61
75
  "description": "app to run command against",
62
76
  "name": "app",
63
77
  "required": true,
64
- "hasDynamicHelp": false,
78
+ "hasDynamicHelp": true,
65
79
  "multiple": false,
66
80
  "type": "option"
67
81
  }
68
82
  },
69
- "hasDynamicHelp": false,
83
+ "hasDynamicHelp": true,
70
84
  "hiddenAliases": [],
71
85
  "id": "data:mtls:destroy",
72
86
  "pluginAlias": "@heroku-cli/plugin-mtls",
73
87
  "pluginName": "@heroku-cli/plugin-mtls",
74
88
  "pluginType": "core",
75
89
  "strict": true,
76
- "isESM": false,
90
+ "isESM": true,
77
91
  "relativePath": [
78
92
  "dist",
79
93
  "commands",
@@ -91,29 +105,36 @@
91
105
  "required": true
92
106
  }
93
107
  },
94
- "description": "get the status of MTLS for your addon",
108
+ "description": "get the status of mTLS for your add-on",
95
109
  "examples": [
96
110
  "$ heroku data:mtls postgresql-sushi-12345 -a example-app"
97
111
  ],
98
112
  "flags": {
113
+ "prompt": {
114
+ "description": "interactively prompt for command arguments and flags",
115
+ "helpGroup": "GLOBAL",
116
+ "name": "prompt",
117
+ "allowNo": false,
118
+ "type": "boolean"
119
+ },
99
120
  "app": {
100
121
  "char": "a",
101
122
  "description": "app to run command against",
102
123
  "name": "app",
103
124
  "required": true,
104
- "hasDynamicHelp": false,
125
+ "hasDynamicHelp": true,
105
126
  "multiple": false,
106
127
  "type": "option"
107
128
  }
108
129
  },
109
- "hasDynamicHelp": false,
130
+ "hasDynamicHelp": true,
110
131
  "hiddenAliases": [],
111
132
  "id": "data:mtls",
112
133
  "pluginAlias": "@heroku-cli/plugin-mtls",
113
134
  "pluginName": "@heroku-cli/plugin-mtls",
114
135
  "pluginType": "core",
115
136
  "strict": true,
116
- "isESM": false,
137
+ "isESM": true,
117
138
  "relativePath": [
118
139
  "dist",
119
140
  "commands",
@@ -131,29 +152,36 @@
131
152
  "required": true
132
153
  }
133
154
  },
134
- "description": "create a new certificate for your MTLS enabled addon",
155
+ "description": "create a new certificate for your mTLS enabled add-on",
135
156
  "examples": [
136
157
  "$ heroku data:mtls:certificates:create postgresql-sushi-12345 -a example-app"
137
158
  ],
138
159
  "flags": {
160
+ "prompt": {
161
+ "description": "interactively prompt for command arguments and flags",
162
+ "helpGroup": "GLOBAL",
163
+ "name": "prompt",
164
+ "allowNo": false,
165
+ "type": "boolean"
166
+ },
139
167
  "app": {
140
168
  "char": "a",
141
169
  "description": "app to run command against",
142
170
  "name": "app",
143
171
  "required": true,
144
- "hasDynamicHelp": false,
172
+ "hasDynamicHelp": true,
145
173
  "multiple": false,
146
174
  "type": "option"
147
175
  }
148
176
  },
149
- "hasDynamicHelp": false,
177
+ "hasDynamicHelp": true,
150
178
  "hiddenAliases": [],
151
179
  "id": "data:mtls:certificates:create",
152
180
  "pluginAlias": "@heroku-cli/plugin-mtls",
153
181
  "pluginName": "@heroku-cli/plugin-mtls",
154
182
  "pluginType": "core",
155
183
  "strict": true,
156
- "isESM": false,
184
+ "isESM": true,
157
185
  "relativePath": [
158
186
  "dist",
159
187
  "commands",
@@ -172,17 +200,24 @@
172
200
  "required": true
173
201
  }
174
202
  },
175
- "description": "delete a specific certificate for your MTLS enabled addon",
203
+ "description": "delete a specific certificate for your mTLS enabled add-on",
176
204
  "examples": [
177
205
  "$ heroku data:mtls:certificates:delete postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\" -a example-app"
178
206
  ],
179
207
  "flags": {
208
+ "prompt": {
209
+ "description": "interactively prompt for command arguments and flags",
210
+ "helpGroup": "GLOBAL",
211
+ "name": "prompt",
212
+ "allowNo": false,
213
+ "type": "boolean"
214
+ },
180
215
  "app": {
181
216
  "char": "a",
182
217
  "description": "app to run command against",
183
218
  "name": "app",
184
219
  "required": true,
185
- "hasDynamicHelp": false,
220
+ "hasDynamicHelp": true,
186
221
  "multiple": false,
187
222
  "type": "option"
188
223
  },
@@ -195,14 +230,14 @@
195
230
  "type": "option"
196
231
  }
197
232
  },
198
- "hasDynamicHelp": false,
233
+ "hasDynamicHelp": true,
199
234
  "hiddenAliases": [],
200
235
  "id": "data:mtls:certificates:delete",
201
236
  "pluginAlias": "@heroku-cli/plugin-mtls",
202
237
  "pluginName": "@heroku-cli/plugin-mtls",
203
238
  "pluginType": "core",
204
239
  "strict": true,
205
- "isESM": false,
240
+ "isESM": true,
206
241
  "relativePath": [
207
242
  "dist",
208
243
  "commands",
@@ -221,19 +256,26 @@
221
256
  "required": true
222
257
  }
223
258
  },
224
- "description": "download your certificate bundle for your mTLS addon",
259
+ "description": "download your certificate bundle for your mTLS add-on",
225
260
  "examples": [
226
261
  "$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f\" -a example-app",
227
262
  "$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f\" --dir \"./folder\" -a example-app",
228
263
  "$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f --prefix \"prefix_\" -a example-app"
229
264
  ],
230
265
  "flags": {
266
+ "prompt": {
267
+ "description": "interactively prompt for command arguments and flags",
268
+ "helpGroup": "GLOBAL",
269
+ "name": "prompt",
270
+ "allowNo": false,
271
+ "type": "boolean"
272
+ },
231
273
  "app": {
232
274
  "char": "a",
233
275
  "description": "app to run command against",
234
276
  "name": "app",
235
277
  "required": true,
236
- "hasDynamicHelp": false,
278
+ "hasDynamicHelp": true,
237
279
  "multiple": false,
238
280
  "type": "option"
239
281
  },
@@ -263,14 +305,14 @@
263
305
  "type": "option"
264
306
  }
265
307
  },
266
- "hasDynamicHelp": false,
308
+ "hasDynamicHelp": true,
267
309
  "hiddenAliases": [],
268
310
  "id": "data:mtls:certificates:download",
269
311
  "pluginAlias": "@heroku-cli/plugin-mtls",
270
312
  "pluginName": "@heroku-cli/plugin-mtls",
271
313
  "pluginType": "core",
272
314
  "strict": true,
273
- "isESM": false,
315
+ "isESM": true,
274
316
  "relativePath": [
275
317
  "dist",
276
318
  "commands",
@@ -289,17 +331,24 @@
289
331
  "required": true
290
332
  }
291
333
  },
292
- "description": "get a specific certificate for your MTLS enabled addon",
334
+ "description": "get a specific certificate for your mTLS enabled add-on",
293
335
  "examples": [
294
336
  "$ heroku data:mtls:certificates:get postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\" -a example-app"
295
337
  ],
296
338
  "flags": {
339
+ "prompt": {
340
+ "description": "interactively prompt for command arguments and flags",
341
+ "helpGroup": "GLOBAL",
342
+ "name": "prompt",
343
+ "allowNo": false,
344
+ "type": "boolean"
345
+ },
297
346
  "app": {
298
347
  "char": "a",
299
348
  "description": "app to run command against",
300
349
  "name": "app",
301
350
  "required": true,
302
- "hasDynamicHelp": false,
351
+ "hasDynamicHelp": true,
303
352
  "multiple": false,
304
353
  "type": "option"
305
354
  },
@@ -312,14 +361,14 @@
312
361
  "type": "option"
313
362
  }
314
363
  },
315
- "hasDynamicHelp": false,
364
+ "hasDynamicHelp": true,
316
365
  "hiddenAliases": [],
317
366
  "id": "data:mtls:certificates:get",
318
367
  "pluginAlias": "@heroku-cli/plugin-mtls",
319
368
  "pluginName": "@heroku-cli/plugin-mtls",
320
369
  "pluginType": "core",
321
370
  "strict": true,
322
- "isESM": false,
371
+ "isESM": true,
323
372
  "relativePath": [
324
373
  "dist",
325
374
  "commands",
@@ -338,29 +387,36 @@
338
387
  "required": true
339
388
  }
340
389
  },
341
- "description": "get the certificates for your MTLS enabled addon",
390
+ "description": "get the certificates for your mTLS enabled add-on",
342
391
  "examples": [
343
392
  "$ heroku data:mtls:certificates postgresql-sushi-12345 -a example-app"
344
393
  ],
345
394
  "flags": {
395
+ "prompt": {
396
+ "description": "interactively prompt for command arguments and flags",
397
+ "helpGroup": "GLOBAL",
398
+ "name": "prompt",
399
+ "allowNo": false,
400
+ "type": "boolean"
401
+ },
346
402
  "app": {
347
403
  "char": "a",
348
404
  "description": "app to run command against",
349
405
  "name": "app",
350
406
  "required": true,
351
- "hasDynamicHelp": false,
407
+ "hasDynamicHelp": true,
352
408
  "multiple": false,
353
409
  "type": "option"
354
410
  }
355
411
  },
356
- "hasDynamicHelp": false,
412
+ "hasDynamicHelp": true,
357
413
  "hiddenAliases": [],
358
414
  "id": "data:mtls:certificates",
359
415
  "pluginAlias": "@heroku-cli/plugin-mtls",
360
416
  "pluginName": "@heroku-cli/plugin-mtls",
361
417
  "pluginType": "core",
362
418
  "strict": true,
363
- "isESM": false,
419
+ "isESM": true,
364
420
  "relativePath": [
365
421
  "dist",
366
422
  "commands",
@@ -379,21 +435,29 @@
379
435
  "required": true
380
436
  }
381
437
  },
382
- "description": "create an IP Rule for your MTLS enabled addon",
438
+ "description": "create a new IP Rule for your mTLS enabled add-on",
383
439
  "examples": [
384
440
  "$ heroku data:mtls:ip-rules:create postgresql-sushi-12345 --cidr \"1.2.3.4/32\" --description \"home IP address\" -a example-app"
385
441
  ],
386
442
  "flags": {
443
+ "prompt": {
444
+ "description": "interactively prompt for command arguments and flags",
445
+ "helpGroup": "GLOBAL",
446
+ "name": "prompt",
447
+ "allowNo": false,
448
+ "type": "boolean"
449
+ },
387
450
  "app": {
388
451
  "char": "a",
389
452
  "description": "app to run command against",
390
453
  "name": "app",
391
454
  "required": true,
392
- "hasDynamicHelp": false,
455
+ "hasDynamicHelp": true,
393
456
  "multiple": false,
394
457
  "type": "option"
395
458
  },
396
459
  "cidr": {
460
+ "description": "CIDR block to allow",
397
461
  "name": "cidr",
398
462
  "required": true,
399
463
  "hasDynamicHelp": false,
@@ -401,21 +465,21 @@
401
465
  "type": "option"
402
466
  },
403
467
  "description": {
468
+ "description": "description of the IP rule",
404
469
  "name": "description",
405
- "required": false,
406
470
  "hasDynamicHelp": false,
407
471
  "multiple": false,
408
472
  "type": "option"
409
473
  }
410
474
  },
411
- "hasDynamicHelp": false,
475
+ "hasDynamicHelp": true,
412
476
  "hiddenAliases": [],
413
477
  "id": "data:mtls:ip-rules:create",
414
478
  "pluginAlias": "@heroku-cli/plugin-mtls",
415
479
  "pluginName": "@heroku-cli/plugin-mtls",
416
480
  "pluginType": "core",
417
481
  "strict": true,
418
- "isESM": false,
482
+ "isESM": true,
419
483
  "relativePath": [
420
484
  "dist",
421
485
  "commands",
@@ -434,17 +498,24 @@
434
498
  "required": true
435
499
  }
436
500
  },
437
- "description": "delete a specific IP Rule for your MTLS enabled addon",
501
+ "description": "delete a specific IP Rule for your mTLS enabled add-on",
438
502
  "examples": [
439
503
  "$ heroku data:mtls:ip-rules:delete postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\" -a example-app"
440
504
  ],
441
505
  "flags": {
506
+ "prompt": {
507
+ "description": "interactively prompt for command arguments and flags",
508
+ "helpGroup": "GLOBAL",
509
+ "name": "prompt",
510
+ "allowNo": false,
511
+ "type": "boolean"
512
+ },
442
513
  "app": {
443
514
  "char": "a",
444
515
  "description": "app to run command against",
445
516
  "name": "app",
446
517
  "required": true,
447
- "hasDynamicHelp": false,
518
+ "hasDynamicHelp": true,
448
519
  "multiple": false,
449
520
  "type": "option"
450
521
  },
@@ -463,14 +534,14 @@
463
534
  "type": "option"
464
535
  }
465
536
  },
466
- "hasDynamicHelp": false,
537
+ "hasDynamicHelp": true,
467
538
  "hiddenAliases": [],
468
539
  "id": "data:mtls:ip-rules:delete",
469
540
  "pluginAlias": "@heroku-cli/plugin-mtls",
470
541
  "pluginName": "@heroku-cli/plugin-mtls",
471
542
  "pluginType": "core",
472
543
  "strict": true,
473
- "isESM": false,
544
+ "isESM": true,
474
545
  "relativePath": [
475
546
  "dist",
476
547
  "commands",
@@ -489,17 +560,24 @@
489
560
  "required": true
490
561
  }
491
562
  },
492
- "description": "get a specific IP Rule for your MTLS enabled addon",
563
+ "description": "get the a specific IP Rule for your mTLS enabled add-on",
493
564
  "examples": [
494
565
  "$ heroku data:mtls:ip-rules:get postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\" -a example-app"
495
566
  ],
496
567
  "flags": {
568
+ "prompt": {
569
+ "description": "interactively prompt for command arguments and flags",
570
+ "helpGroup": "GLOBAL",
571
+ "name": "prompt",
572
+ "allowNo": false,
573
+ "type": "boolean"
574
+ },
497
575
  "app": {
498
576
  "char": "a",
499
577
  "description": "app to run command against",
500
578
  "name": "app",
501
579
  "required": true,
502
- "hasDynamicHelp": false,
580
+ "hasDynamicHelp": true,
503
581
  "multiple": false,
504
582
  "type": "option"
505
583
  },
@@ -512,14 +590,14 @@
512
590
  "type": "option"
513
591
  }
514
592
  },
515
- "hasDynamicHelp": false,
593
+ "hasDynamicHelp": true,
516
594
  "hiddenAliases": [],
517
595
  "id": "data:mtls:ip-rules:get",
518
596
  "pluginAlias": "@heroku-cli/plugin-mtls",
519
597
  "pluginName": "@heroku-cli/plugin-mtls",
520
598
  "pluginType": "core",
521
599
  "strict": true,
522
- "isESM": false,
600
+ "isESM": true,
523
601
  "relativePath": [
524
602
  "dist",
525
603
  "commands",
@@ -538,29 +616,36 @@
538
616
  "required": true
539
617
  }
540
618
  },
541
- "description": "get the IP Rules for your MTLS enabled addon",
619
+ "description": "get the IP Rules for your mTLS enabled add-on",
542
620
  "examples": [
543
621
  "$ heroku data:mtls:ip-rules postgresql-sushi-12345 -a example-app"
544
622
  ],
545
623
  "flags": {
624
+ "prompt": {
625
+ "description": "interactively prompt for command arguments and flags",
626
+ "helpGroup": "GLOBAL",
627
+ "name": "prompt",
628
+ "allowNo": false,
629
+ "type": "boolean"
630
+ },
546
631
  "app": {
547
632
  "char": "a",
548
633
  "description": "app to run command against",
549
634
  "name": "app",
550
635
  "required": true,
551
- "hasDynamicHelp": false,
636
+ "hasDynamicHelp": true,
552
637
  "multiple": false,
553
638
  "type": "option"
554
639
  }
555
640
  },
556
- "hasDynamicHelp": false,
641
+ "hasDynamicHelp": true,
557
642
  "hiddenAliases": [],
558
643
  "id": "data:mtls:ip-rules",
559
644
  "pluginAlias": "@heroku-cli/plugin-mtls",
560
645
  "pluginName": "@heroku-cli/plugin-mtls",
561
646
  "pluginType": "core",
562
647
  "strict": true,
563
- "isESM": false,
648
+ "isESM": true,
564
649
  "relativePath": [
565
650
  "dist",
566
651
  "commands",
@@ -571,5 +656,5 @@
571
656
  ]
572
657
  }
573
658
  },
574
- "version": "1.0.1"
659
+ "version": "2.0.0"
575
660
  }
package/package.json CHANGED
@@ -1,47 +1,44 @@
1
1
  {
2
2
  "name": "@heroku-cli/plugin-mtls",
3
3
  "description": "heroku mtls cli",
4
- "version": "1.0.1",
4
+ "version": "2.0.0",
5
5
  "author": "Heroku",
6
+ "type": "module",
6
7
  "bugs": "https://github.com/heroku/heroku-cli-plugin-mtls/issues",
7
8
  "dependencies": {
8
- "@heroku-cli/color": "^2",
9
- "@heroku-cli/command": "^11.5.0",
9
+ "@heroku-cli/command": "12.3.3",
10
10
  "@heroku-cli/schema": "^1.0.25",
11
- "@oclif/core": "^2.16.0",
12
- "@oclif/plugin-help": "^5",
13
- "@types/inquirer": "^6.0.3",
14
- "@types/supports-color": "^5.3.0",
15
- "inquirer": "^6.5.0",
11
+ "@heroku/heroku-cli-util": "10.8.0",
12
+ "@inquirer/prompts": "^7.10.1",
13
+ "@oclif/core": "^4.3.0",
16
14
  "tslib": "~2.8.1"
17
15
  },
18
16
  "devDependencies": {
19
- "@heroku-cli/schema": "^1.0.25",
20
- "@oclif/test": "^3.2.15",
17
+ "@heroku-cli/test-utils": "^0.3.0",
21
18
  "@types/chai": "^4",
22
19
  "@types/mocha": "^10.0.6",
23
20
  "@types/node": "^20.10.4",
24
21
  "@types/sinon": "^17.0.2",
25
- "@typescript-eslint/eslint-plugin": "^6.14.0",
26
- "@typescript-eslint/parser": "6.x",
27
- "chai": "^4",
28
- "eslint": "8.x",
29
- "eslint-config-oclif": "^5.0.0",
30
- "eslint-config-oclif-typescript": "^3.0.26",
31
- "mocha": "11.x",
32
- "nock": "^13.5.1",
33
- "np": "^10.2.0",
34
- "nyc": "^17.1.0",
35
- "oclif": "^4.14.36",
36
- "sinon": "^19",
37
- "ts-node": "10.x",
38
- "typescript": "^5"
22
+ "ansis": "^3.17.0",
23
+ "c8": "^10.1.3",
24
+ "chai": "^5.1.2",
25
+ "conventional-changelog": "^7.1.1",
26
+ "conventional-changelog-conventionalcommits": "^9.1.0",
27
+ "eslint": "^9",
28
+ "mocha": "^11",
29
+ "nock": "^14.0.1",
30
+ "oclif": "^4.22.81",
31
+ "shx": "^0.4.0",
32
+ "sinon": "^20",
33
+ "tsx": "^4.21.0",
34
+ "typescript": "^5.9.3"
39
35
  },
40
36
  "engines": {
41
37
  "node": ">= 20.x"
42
38
  },
43
39
  "files": [
44
- "/dist"
40
+ "oclif.manifest.json",
41
+ "dist"
45
42
  ],
46
43
  "homepage": "https://github.com/heroku/heroku-cli-plugin-mtls",
47
44
  "keywords": [
@@ -51,20 +48,23 @@
51
48
  "license": "MIT",
52
49
  "oclif": {
53
50
  "bin": "heroku",
54
- "commands": "./dist/commands",
55
- "devPlugins": [
56
- "@oclif/plugin-help"
57
- ]
51
+ "commands": "./dist/commands"
58
52
  },
59
53
  "repository": "heroku/heroku-cli-plugin-mtls",
60
54
  "scripts": {
61
- "lint": "eslint . --ext .ts --config .eslintrc",
62
- "lint:fix": "yarn run lint -- --fix",
63
- "posttest": "yarn run lint",
64
- "prepack": "yarn run build",
65
- "build": "rm -rf dist && tsc -b && oclif manifest && oclif readme && mv oclif.manifest.json ./dist/oclif.manifest.json && cp README.md ./dist/README.md",
66
- "test": "nyc --extension .ts mocha --config test/mocharc.json --forbid-only \"test/**/*.test.ts\"",
67
- "test:local": "nyc --extension .ts mocha --config test/mocharc.json \"test/**/*.test.ts\"",
55
+ "build": "shx rm -rf dist && tsc && oclif manifest && oclif readme",
56
+ "changelog": "conventional-changelog -p conventionalcommits -s -i CHANGELOG.md",
57
+ "lint": "eslint .",
58
+ "lint:fix": "eslint . --fix",
59
+ "postpublish": "shx rm -f oclif.manifest.json",
60
+ "posttest": "npm run lint",
61
+ "prepare": "npm run build",
62
+ "test": "c8 mocha --forbid-only \"test/**/*.test.ts\"",
68
63
  "version": "oclif readme && git add README.md"
64
+ },
65
+ "//overrides": "serialize-javascript: mocha transitive dep, pinned for CVE-2024-11831; flatted: pinned for advisory",
66
+ "overrides": {
67
+ "serialize-javascript": "^7.0.5",
68
+ "flatted": "^3.4.2"
69
69
  }
70
70
  }