@devvit/cli 0.11.11 → 0.11.12-next-2025-03-25-a291a41e8.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.
@@ -1 +1 @@
1
- {"version":3,"file":"playtest.d.ts","sourceRoot":"","sources":["../../src/commands/playtest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kEAAkE,CAAC;AAY/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAwBtE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAQpE,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,cAAc;;IAClD,OAAgB,WAAW,SACgK;IAE3L,OAAgB,QAAQ,WAItB;IAEF,WAAoB,KAAK,IAAI,SAAS,CAoBrC;IAED,OAAgB,IAAI;;MAMlB;IAqFa,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA8VpC;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAM7E"}
1
+ {"version":3,"file":"playtest.d.ts","sourceRoot":"","sources":["../../src/commands/playtest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kEAAkE,CAAC;AAY/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAwBtE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAQpE,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,cAAc;;IAClD,OAAgB,WAAW,SACgK;IAE3L,OAAgB,QAAQ,WAItB;IAEF,WAAoB,KAAK,IAAI,SAAS,CAoBrC;IAED,OAAgB,IAAI;;MAMlB;IAqFa,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA6VpC;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAM7E"}
@@ -142,7 +142,8 @@ class Playtest extends ProjectCommand {
142
142
  ux.action.stop(`Success! Please visit your test subreddit and refresh to see your latest changes:\n✨ ${playtestUrl}\n`);
143
143
  }
144
144
  catch (err) {
145
- ux.action.stop(chalk.red(`Something went wrong... ${StringUtil.caughtToString(err, 'message')}`));
145
+ ux.action.stop('Error'); // Stop any spinner if it's running
146
+ this.log(chalk.red(`Something went wrong... ${StringUtil.caughtToString(err, 'message')}`));
146
147
  }
147
148
  __classPrivateFieldSet(this, _Playtest_isOnWatchExecuting, false, "f");
148
149
  if (__classPrivateFieldGet(this, _Playtest_lastQueuedBundles, "f")) {
@@ -0,0 +1,19 @@
1
+ import { ProjectCommand } from '../../util/commands/ProjectCommand.js';
2
+ export default class AddProduct extends ProjectCommand {
3
+ #private;
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ sku: import("@oclif/core/lib/interfaces/parser.js").Arg<string | undefined, Record<string, unknown>>;
8
+ };
9
+ static flags: {
10
+ name: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
11
+ description: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
12
+ price: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
13
+ type: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
14
+ icon: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
15
+ };
16
+ get productsFilePath(): string;
17
+ run(): Promise<void>;
18
+ }
19
+ //# sourceMappingURL=add.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/commands/products/add.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAmCvE,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,cAAc;;IACpD,OAAgB,WAAW,SAAmC;IAE9D,OAAgB,QAAQ,WAItB;IAEF,OAAgB,IAAI;;MAElB;IAEF,OAAgB,KAAK;;;;;;MAgCnB;IAEF,IAAI,gBAAgB,IAAI,MAAM,CAE7B;IAEK,GAAG;CAkJV"}
@@ -0,0 +1,211 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var _AddProduct_instances, _a, _AddProduct_prompt, _AddProduct_getProductsConfig, _AddProduct_getAvailableAssets;
7
+ import { readdir, writeFile } from 'node:fs/promises';
8
+ import { AccountingType } from '@devvit/shared-types/payments/Product.js';
9
+ import { Args, Flags, ux } from '@oclif/core';
10
+ import chalk from 'chalk';
11
+ import inquirer from 'inquirer';
12
+ import * as path from 'path';
13
+ import { ProjectCommand } from '../../util/commands/ProjectCommand.js';
14
+ import { readProducts } from '../../util/payments/paymentsConfig.js';
15
+ // TODO: Import these from the products.schema.json file
16
+ const ALLOWED_PRICES = [5, 25, 50, 100, 150, 250, 500, 1000, 2500];
17
+ const ACCOUNTING_TYPE_TO_LABEL = {
18
+ INSTANT: `Instant: ${chalk.dim('Is used immediately and disappears.')}`,
19
+ DURABLE: `Durable: ${chalk.dim('Is permanently applied to the account and can be used any number of times.')}`,
20
+ CONSUMABLE: `Consumable: ${chalk.dim('Can be used at a later date but is removed once it is used.')}`,
21
+ VALID_FOR_1D: `Valid for 1 day: ${chalk.dim('Can be used for 1 day after purchase.')}`,
22
+ VALID_FOR_7D: `Valid for 7 days: ${chalk.dim('Can be used for 7 days after purchase.')}`,
23
+ VALID_FOR_30D: `Valid for 30 days: ${chalk.dim('Can be used for 30 days after purchase.')}`,
24
+ VALID_FOR_1Y: `Valid for 1 year: ${chalk.dim('Can be used for 1 year after purchase.')}`,
25
+ };
26
+ const LABEL_TO_ACCOUNTING_TYPE = Object.fromEntries(Object.entries(ACCOUNTING_TYPE_TO_LABEL).map(([key, value]) => [
27
+ value,
28
+ key,
29
+ ]));
30
+ class AddProduct extends ProjectCommand {
31
+ constructor() {
32
+ super(...arguments);
33
+ _AddProduct_instances.add(this);
34
+ }
35
+ get productsFilePath() {
36
+ return path.join(this.projectRoot, 'src', 'products.json');
37
+ }
38
+ async run() {
39
+ const { args, flags } = await this.parse(_a);
40
+ const { sku } = args;
41
+ const { name: displayName, description, price, type, icon } = flags;
42
+ const accountingType = type;
43
+ const productsJSON = await __classPrivateFieldGet(this, _AddProduct_instances, "m", _AddProduct_getProductsConfig).call(this);
44
+ const existingSKUs = productsJSON.products.map((product) => product.sku);
45
+ if (sku && existingSKUs.includes(sku)) {
46
+ this.error(`A product with SKU "${sku}" already exists. Please provide a unique SKU.`);
47
+ }
48
+ const availableAssets = await __classPrivateFieldGet(this, _AddProduct_instances, "m", _AddProduct_getAvailableAssets).call(this);
49
+ if (icon && !availableAssets.includes(icon)) {
50
+ this.error(`File "${icon}" was not found in the assets directory.`);
51
+ }
52
+ // The exactOptionalPropertyTypes TS setting does not allow for partial types with undefined values
53
+ // so we need to manually create a partial object with only the defined values.
54
+ const prefilledProduct = {};
55
+ if (sku)
56
+ prefilledProduct.sku = sku;
57
+ if (displayName)
58
+ prefilledProduct.displayName = displayName;
59
+ if (description)
60
+ prefilledProduct.description = description;
61
+ if (price)
62
+ prefilledProduct.price = price;
63
+ if (accountingType)
64
+ prefilledProduct.accountingType = accountingType;
65
+ if (icon)
66
+ prefilledProduct.images = { icon };
67
+ const product = await __classPrivateFieldGet(this, _AddProduct_instances, "m", _AddProduct_prompt).call(this, prefilledProduct, { availableAssets, existingSKUs });
68
+ productsJSON.products = [...productsJSON.products, product];
69
+ try {
70
+ ux.action.start('Saving product');
71
+ await writeFile(this.productsFilePath, JSON.stringify(productsJSON, null, 2), 'utf-8');
72
+ ux.action.stop(`Product "${product.sku}" added successfully!`);
73
+ this.log(`Go to ${chalk.underline('https://developers.reddit.com/docs/payments/payments_add#complete-the-payment-flow')} to integrate the product into your app.`);
74
+ }
75
+ catch (error) {
76
+ this.error(`Failed to write products.json:\n${error}`);
77
+ }
78
+ }
79
+ }
80
+ _a = AddProduct, _AddProduct_instances = new WeakSet(), _AddProduct_prompt = async function _AddProduct_prompt(prefilledProduct, { existingSKUs, availableAssets }) {
81
+ return await inquirer.prompt([
82
+ {
83
+ message: 'Product SKU (50 characters max, alphanumeric and dashes only):',
84
+ type: 'input',
85
+ name: 'sku',
86
+ validate: (input) => {
87
+ if (existingSKUs.includes(input)) {
88
+ return `A product with SKU "${input}" already exists. Please provide a unique SKU.`;
89
+ }
90
+ if (input.length === 0) {
91
+ return 'A SKU is required';
92
+ }
93
+ if (!/^[A-z0-9-_]+$/.test(input)) {
94
+ return 'SKU must be alphanumeric';
95
+ }
96
+ if (input.length > 50) {
97
+ return 'SKU must be 50 characters or less';
98
+ }
99
+ return true;
100
+ },
101
+ },
102
+ {
103
+ message: 'Product name (50 characters max):',
104
+ type: 'input',
105
+ name: 'displayName',
106
+ filter: (input) => input.trim(),
107
+ validate: (input) => {
108
+ if (input.length === 0) {
109
+ return 'Please provide a name.';
110
+ }
111
+ if (input.length > 50) {
112
+ return 'Name must be 50 characters or less.';
113
+ }
114
+ return true;
115
+ },
116
+ },
117
+ {
118
+ message: 'Long description (250 characters max):',
119
+ type: 'input',
120
+ name: 'description',
121
+ filter: (input) => input.trim(),
122
+ validate: (input) => {
123
+ if (input.length > 250) {
124
+ return 'Description must be 250 characters or less.';
125
+ }
126
+ return true;
127
+ },
128
+ },
129
+ {
130
+ message: 'Price in Reddit Gold:',
131
+ type: 'list',
132
+ name: 'price',
133
+ choices: ALLOWED_PRICES,
134
+ },
135
+ {
136
+ message: 'Product type:',
137
+ type: 'list',
138
+ name: 'accountingType',
139
+ filter: (input) => LABEL_TO_ACCOUNTING_TYPE[input],
140
+ choices: Object.values(ACCOUNTING_TYPE_TO_LABEL),
141
+ },
142
+ {
143
+ message: 'Product icon:',
144
+ type: 'list',
145
+ name: 'images',
146
+ filter: (input) => (input === 'None' ? undefined : { icon: input }),
147
+ choices: ['None', new inquirer.Separator(), ...availableAssets],
148
+ },
149
+ ], prefilledProduct);
150
+ }, _AddProduct_getProductsConfig = async function _AddProduct_getProductsConfig() {
151
+ const productsJSON = {
152
+ $schema: 'https://developers.reddit.com/schema/products.json',
153
+ products: [],
154
+ };
155
+ ux.action.start('Reading products.json');
156
+ const products = await readProducts(this.projectRoot);
157
+ if (products) {
158
+ ux.action.stop(`products.json read successfully. Found ${products.length} products.`);
159
+ productsJSON.products = products;
160
+ }
161
+ else {
162
+ ux.action.stop('No products.json found. A new one will be created.');
163
+ }
164
+ return productsJSON;
165
+ }, _AddProduct_getAvailableAssets = async function _AddProduct_getAvailableAssets() {
166
+ return (await readdir(path.join(this.projectRoot, 'assets'), { recursive: true })).filter((file) => file.endsWith('.png'));
167
+ };
168
+ AddProduct.description = 'Add a new product to your app';
169
+ AddProduct.examples = [
170
+ '$ devvit products add',
171
+ '$ devvit products add my-product-sku',
172
+ '$ devvit products add my-product-sku --name="My Product" --description="A product description" --price=100 --type=INSTANT --icon=icon.png',
173
+ ];
174
+ AddProduct.args = {
175
+ sku: Args.string({ description: 'Product SKU' }),
176
+ };
177
+ AddProduct.flags = {
178
+ name: Flags.string({ description: 'Product display name' }),
179
+ description: Flags.string({ description: 'Product description' }),
180
+ price: Flags.integer({
181
+ options: ALLOWED_PRICES.map((price) => price.toString()),
182
+ description: 'Product price in Reddit Gold',
183
+ }),
184
+ type: Flags.string({
185
+ options: [
186
+ 'INSTANT',
187
+ 'DURABLE',
188
+ 'CONSUMABLE',
189
+ 'VALID_FOR_1D',
190
+ 'VALID_FOR_7D',
191
+ 'VALID_FOR_30D',
192
+ 'VALID_FOR_1Y',
193
+ ],
194
+ description: 'Product type',
195
+ }),
196
+ icon: Flags.file({
197
+ description: 'Product icon asset PNG filename.',
198
+ defaultHelp: 'Must be a relative path within the assets directory.',
199
+ dependsOn: ['config'],
200
+ parse: async (input) => {
201
+ if (!input)
202
+ return '';
203
+ if (!input.endsWith('.png')) {
204
+ throw new Error('Icon must be a PNG file');
205
+ }
206
+ // Remove leading slashes and dots
207
+ return input.replace(/^\.?\/?/, '');
208
+ },
209
+ }),
210
+ };
211
+ export default AddProduct;
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "app-settings-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
- "@devvit/tsconfig": "0.11.11-dev",
11
+ "@devvit/tsconfig": "0.11.12-dev",
12
12
  "typescript": "4.9.3"
13
13
  }
14
14
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "experience-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "experience-pro-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "test:unit": "vitest --run"
10
10
  },
11
11
  "dependencies": {
12
- "@devvit/public-api": "0.11.11-dev"
12
+ "@devvit/public-api": "0.11.12-dev"
13
13
  },
14
14
  "devDependencies": {
15
15
  "typescript": "5.3.2",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "empty-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "forms-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "image-uploads-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "intro-to-devvit",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "menu-action-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "payment-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/payments": "0.11.11-dev",
9
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/payments": "0.11.12-dev",
9
+ "@devvit/public-api": "0.11.12-dev"
10
10
  },
11
11
  "devDependencies": {
12
12
  "typescript": "5.3.2"
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "payments-web-view-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/payments": "0.11.11-dev",
9
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/payments": "0.11.12-dev",
9
+ "@devvit/public-api": "0.11.12-dev"
10
10
  },
11
11
  "devDependencies": {
12
12
  "typescript": "5.3.2"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "pen-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "redis-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "triggers-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "web-view-template",
4
- "version": "0.11.11-dev",
4
+ "version": "0.11.12-dev",
5
5
  "license": "BSD-3-Clause",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@devvit/public-api": "0.11.11-dev"
8
+ "@devvit/public-api": "0.11.12-dev"
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "5.3.2"
@@ -1 +1 @@
1
- {"version":3,"file":"AppVersionUploader.d.ts","sourceRoot":"","sources":["../../src/util/AppVersionUploader.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,MAAM,EAEX,KAAK,iBAAiB,EACvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAMrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,qBAAa,kBAAkB;;gBAMjB,GAAG,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE;IAK5D,aAAa,CACjB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,aAAa,CAAC;QACzB,UAAU,EAAE,iBAAiB,CAAC;KAC/B,EACD,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,cAAc,CAAC;CAkF3B"}
1
+ {"version":3,"file":"AppVersionUploader.d.ts","sourceRoot":"","sources":["../../src/util/AppVersionUploader.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,MAAM,EAEX,KAAK,iBAAiB,EACvB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAMrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,qBAAa,kBAAkB;;gBAMjB,GAAG,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE;IAK5D,aAAa,CACjB,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,aAAa,CAAC;QACzB,UAAU,EAAE,iBAAiB,CAAC;KAC/B,EACD,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,cAAc,CAAC;CAoF3B"}
@@ -39,9 +39,11 @@ export class AppVersionUploader {
39
39
  products = await readProducts(__classPrivateFieldGet(this, _AppVersionUploader_cmd, "f").projectRoot);
40
40
  }
41
41
  catch (err) {
42
- throw new Error(`An unknown error occurred when reading and validating products.json.
43
- Please refer to https://developers.reddit.com/docs/capabilities/payments and ensure that your app is in a compatible state.
44
- ${StringUtil.caughtToString(err, 'message')}`);
42
+ throw new Error(`An error occurred when reading and validating products.json:
43
+
44
+ ${StringUtil.caughtToString(err, 'message')}
45
+
46
+ Please refer to https://developers.reddit.com/docs/capabilities/payments for more details.`);
45
47
  }
46
48
  await Promise.all(
47
49
  // Dump these in the assets fields of the bundles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/cli",
3
- "version": "0.11.11",
3
+ "version": "0.11.12-next-2025-03-25-a291a41e8.0",
4
4
  "description": "Reddit's Dev Platform CLI Tool",
5
5
  "license": "BSD-3-Clause",
6
6
  "author": "@reddit/dev-platform",
@@ -42,11 +42,11 @@
42
42
  },
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@devvit/build-pack": "0.11.11",
46
- "@devvit/play": "0.0.43",
47
- "@devvit/protos": "0.11.11",
48
- "@devvit/public-api": "0.11.11",
49
- "@devvit/shared-types": "0.11.11",
45
+ "@devvit/build-pack": "0.11.12-next-2025-03-25-a291a41e8.0",
46
+ "@devvit/play": "0.0.45",
47
+ "@devvit/protos": "0.11.12-next-2025-03-25-a291a41e8.0",
48
+ "@devvit/public-api": "0.11.12-next-2025-03-25-a291a41e8.0",
49
+ "@devvit/shared-types": "0.11.12-next-2025-03-25-a291a41e8.0",
50
50
  "@improbable-eng/grpc-web": "0.15.0",
51
51
  "@improbable-eng/grpc-web-node-http-transport": "0.15.0",
52
52
  "@oclif/core": "2.9.4",
@@ -78,8 +78,8 @@
78
78
  "ws": "8.18.0"
79
79
  },
80
80
  "devDependencies": {
81
- "@devvit/repo-tools": "0.11.11",
82
- "@devvit/tsconfig": "0.11.11",
81
+ "@devvit/repo-tools": "0.11.12-next-2025-03-25-a291a41e8.0",
82
+ "@devvit/tsconfig": "0.11.12-next-2025-03-25-a291a41e8.0",
83
83
  "@types/file-type": "10.9.1",
84
84
  "@types/inquirer": "9.0.3",
85
85
  "@types/js-yaml": "4.0.5",
@@ -120,5 +120,5 @@
120
120
  ]
121
121
  }
122
122
  },
123
- "gitHead": "81914f37df8507c66479d20447289f8aea7a859f"
123
+ "gitHead": "1f59c865addfb16c7cbd96626ee7062010c3fc45"
124
124
  }