dodopayments-cli 2.1.0 → 3.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.
Binary file
@@ -0,0 +1,11 @@
1
+ /** @type {import("prettier").Config} */
2
+ export default {
3
+ // Enforce 2-space indentation
4
+ tabWidth: 2,
5
+
6
+ // Use single quotes
7
+ singleQuote: true,
8
+
9
+ // Always add semicolons
10
+ semi: true,
11
+ };
package/CONTRIBUTING.md CHANGED
@@ -61,17 +61,40 @@ This project and everyone participating in it is governed by our [Code of Conduc
61
61
 
62
62
  ```
63
63
  dodopayments-cli/
64
- ├── index.ts # Main CLI entrypoint
65
- ├── utils/ # Utility functions
66
- ├── dodo-webhooks/ # Webhook testing functionality
64
+ ├── src/ # All CLI source code
65
+ │ ├── index.ts # Main CLI entrypoint (command router)
66
+ │ │
67
+ │ ├── commands/ # Domain-based command modules
68
+ │ │ ├── addons/ # Add-on related commands
69
+ │ │ ├── ai/ # AI agent related commands
70
+ │ │ ├── checkout/ # Checkout commands
71
+ │ │ ├── customers/ # Customer management commands
72
+ │ │ ├── discounts/ # Discount/coupon commands
73
+ │ │ ├── licences/ # License management commands
74
+ │ │ ├── login/ # Authentication/login commands
75
+ │ │ ├── logout/ # Authentication/logout commands
76
+ │ │ ├── payments/ # Payment-related commands
77
+ │ │ ├── products/ # Product management commands
78
+ │ │ ├── refund/ # Refund commands
79
+ │ │ └── webhook/ # Webhook-related commands
80
+ │ │
81
+ │ ├── ui/ # CLI presentation layer (output/help/logo)
82
+ │ │ ├── help.ts # Help rendering
83
+ │ │ ├── index.ts # Barrel export for UI utilities
84
+ │ │ └── logo.ts # CLI logo/banner
85
+ │ │
86
+ │ └── utils/ # Shared utilities (config, client, helpers)
87
+ │
88
+ ├── build-binaries.ts # Script to generate distributable binaries
67
89
  ├── .github/
68
- │ ├── ISSUE_TEMPLATE/ # Issue templates
90
+ │ ├── ISSUE_TEMPLATE/
69
91
  │ ├── PULL_REQUEST_TEMPLATE.md
70
- │ └── workflows/ # CI/CD workflows
71
- ├── CONTRIBUTING.md # This file
92
+ │ └── workflows/
93
+ │
94
+ ├── CONTRIBUTING.md
72
95
  ├── CODE_OF_CONDUCT.md
73
96
  ├── LICENSE
74
- └── README.md
97
+ ├── README.md
75
98
  ```
76
99
 
77
100
  ## How to Contribute