@solana-mobile/dapp-store-cli 0.16.0 → 0.16.1

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 (113) hide show
  1. package/bin/dapp-store.js +3 -1
  2. package/lib/CliSetup.js +304 -505
  3. package/lib/CliUtils.js +6 -376
  4. package/lib/__tests__/CliSetupTest.js +484 -74
  5. package/lib/cli/__tests__/parseErrors.test.js +25 -0
  6. package/lib/cli/__tests__/signer.test.js +436 -0
  7. package/lib/cli/constants.js +23 -0
  8. package/lib/cli/messages.js +21 -0
  9. package/lib/cli/parseErrors.js +41 -0
  10. package/lib/{commands/publish/PublishCliSupport.js → cli/selfUpdate.js} +72 -38
  11. package/lib/{commands/publish/PublishCliRemove.js → cli/signer.js} +35 -56
  12. package/lib/index.js +96 -5
  13. package/lib/package.json +5 -24
  14. package/lib/portal/__tests__/releaseMetadata.test.js +647 -0
  15. package/lib/portal/__tests__/translators.test.js +76 -0
  16. package/lib/portal/__tests__/workflowClient.test.js +457 -0
  17. package/lib/portal/attestationClient.js +143 -0
  18. package/lib/portal/files.js +64 -0
  19. package/lib/portal/http.js +364 -0
  20. package/lib/portal/records.js +64 -0
  21. package/lib/portal/releaseMetadata.js +748 -0
  22. package/lib/portal/translators.js +460 -0
  23. package/lib/portal/types.js +1 -0
  24. package/lib/portal/workflowClient.js +704 -0
  25. package/lib/publication/PublicationProgressReporter.js +1051 -0
  26. package/lib/publication/__tests__/PublicationProgressReporter.test.js +174 -0
  27. package/lib/{commands/ValidateCommand.js → publication/__tests__/fundingPreflight.test.js} +90 -66
  28. package/lib/publication/__tests__/publicationSummary.test.js +26 -0
  29. package/lib/publication/cliValidation.js +482 -0
  30. package/lib/publication/fundingPreflight.js +246 -0
  31. package/lib/publication/publicationSummary.js +99 -0
  32. package/lib/{commands/utils.js → publication/runPublicationWorkflow.js} +16 -46
  33. package/package.json +5 -24
  34. package/src/CliSetup.ts +370 -505
  35. package/src/CliUtils.ts +9 -233
  36. package/src/__tests__/CliSetupTest.ts +272 -120
  37. package/src/cli/__tests__/parseErrors.test.ts +34 -0
  38. package/src/cli/__tests__/signer.test.ts +359 -0
  39. package/src/cli/constants.ts +3 -0
  40. package/src/cli/messages.ts +27 -0
  41. package/src/cli/parseErrors.ts +62 -0
  42. package/src/cli/selfUpdate.ts +59 -0
  43. package/src/cli/signer.ts +38 -0
  44. package/src/index.ts +31 -4
  45. package/src/portal/__tests__/releaseMetadata.test.ts +508 -0
  46. package/src/portal/__tests__/translators.test.ts +82 -0
  47. package/src/portal/__tests__/workflowClient.test.ts +278 -0
  48. package/src/portal/attestationClient.ts +19 -0
  49. package/src/portal/files.ts +73 -0
  50. package/src/portal/http.ts +170 -0
  51. package/src/portal/records.ts +38 -0
  52. package/src/portal/releaseMetadata.ts +489 -0
  53. package/src/portal/translators.ts +750 -0
  54. package/src/portal/types.ts +27 -0
  55. package/src/portal/workflowClient.ts +575 -0
  56. package/src/publication/PublicationProgressReporter.ts +1026 -0
  57. package/src/publication/__tests__/PublicationProgressReporter.test.ts +210 -0
  58. package/src/publication/__tests__/fundingPreflight.test.ts +78 -0
  59. package/src/publication/__tests__/publicationSummary.test.ts +30 -0
  60. package/src/publication/cliValidation.ts +264 -0
  61. package/src/publication/fundingPreflight.ts +123 -0
  62. package/src/publication/publicationSummary.ts +26 -0
  63. package/src/publication/runPublicationWorkflow.ts +46 -0
  64. package/lib/commands/create/CreateCliApp.js +0 -223
  65. package/lib/commands/create/CreateCliRelease.js +0 -290
  66. package/lib/commands/create/index.js +0 -40
  67. package/lib/commands/index.js +0 -3
  68. package/lib/commands/publish/PublishCliSubmit.js +0 -208
  69. package/lib/commands/publish/PublishCliUpdate.js +0 -211
  70. package/lib/commands/publish/index.js +0 -22
  71. package/lib/commands/scaffolding/ScaffoldInit.js +0 -15
  72. package/lib/commands/scaffolding/index.js +0 -1
  73. package/lib/config/EnvVariables.js +0 -59
  74. package/lib/config/PublishDetails.js +0 -915
  75. package/lib/config/S3StorageManager.js +0 -93
  76. package/lib/config/index.js +0 -2
  77. package/lib/generated/config_obj.json +0 -1
  78. package/lib/generated/config_schema.json +0 -1
  79. package/lib/prebuild_schema/publishing_source.yaml +0 -64
  80. package/lib/prebuild_schema/schemagen.js +0 -25
  81. package/lib/upload/CachedStorageDriver.js +0 -458
  82. package/lib/upload/TurboStorageDriver.js +0 -718
  83. package/lib/upload/__tests__/CachedStorageDriver.test.js +0 -437
  84. package/lib/upload/__tests__/TurboStorageDriver.test.js +0 -17
  85. package/lib/upload/__tests__/contentGateway.test.js +0 -17
  86. package/lib/upload/contentGateway.js +0 -23
  87. package/lib/upload/index.js +0 -2
  88. package/src/commands/ValidateCommand.ts +0 -82
  89. package/src/commands/create/CreateCliApp.ts +0 -93
  90. package/src/commands/create/CreateCliRelease.ts +0 -149
  91. package/src/commands/create/index.ts +0 -47
  92. package/src/commands/index.ts +0 -3
  93. package/src/commands/publish/PublishCliRemove.ts +0 -66
  94. package/src/commands/publish/PublishCliSubmit.ts +0 -93
  95. package/src/commands/publish/PublishCliSupport.ts +0 -66
  96. package/src/commands/publish/PublishCliUpdate.ts +0 -101
  97. package/src/commands/publish/index.ts +0 -29
  98. package/src/commands/scaffolding/ScaffoldInit.ts +0 -20
  99. package/src/commands/scaffolding/index.ts +0 -1
  100. package/src/commands/utils.ts +0 -33
  101. package/src/config/EnvVariables.ts +0 -39
  102. package/src/config/PublishDetails.ts +0 -456
  103. package/src/config/S3StorageManager.ts +0 -47
  104. package/src/config/index.ts +0 -2
  105. package/src/prebuild_schema/publishing_source.yaml +0 -64
  106. package/src/prebuild_schema/schemagen.js +0 -31
  107. package/src/upload/CachedStorageDriver.ts +0 -179
  108. package/src/upload/TurboStorageDriver.ts +0 -283
  109. package/src/upload/__tests__/CachedStorageDriver.test.ts +0 -246
  110. package/src/upload/__tests__/TurboStorageDriver.test.ts +0 -15
  111. package/src/upload/__tests__/contentGateway.test.ts +0 -31
  112. package/src/upload/contentGateway.ts +0 -37
  113. package/src/upload/index.ts +0 -2
@@ -0,0 +1,246 @@
1
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2
+ try {
3
+ var info = gen[key](arg);
4
+ var value = info.value;
5
+ } catch (error) {
6
+ reject(error);
7
+ return;
8
+ }
9
+ if (info.done) {
10
+ resolve(value);
11
+ } else {
12
+ Promise.resolve(value).then(_next, _throw);
13
+ }
14
+ }
15
+ function _async_to_generator(fn) {
16
+ return function() {
17
+ var self = this, args = arguments;
18
+ return new Promise(function(resolve, reject) {
19
+ var gen = fn.apply(self, args);
20
+ function _next(value) {
21
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
22
+ }
23
+ function _throw(err) {
24
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
25
+ }
26
+ _next(undefined);
27
+ });
28
+ };
29
+ }
30
+ function _instanceof(left, right) {
31
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
32
+ return !!right[Symbol.hasInstance](left);
33
+ } else {
34
+ return left instanceof right;
35
+ }
36
+ }
37
+ function _ts_generator(thisArg, body) {
38
+ var f, y, t, _ = {
39
+ label: 0,
40
+ sent: function() {
41
+ if (t[0] & 1) throw t[1];
42
+ return t[1];
43
+ },
44
+ trys: [],
45
+ ops: []
46
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
47
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
48
+ return this;
49
+ }), g;
50
+ function verb(n) {
51
+ return function(v) {
52
+ return step([
53
+ n,
54
+ v
55
+ ]);
56
+ };
57
+ }
58
+ function step(op) {
59
+ if (f) throw new TypeError("Generator is already executing.");
60
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
61
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
62
+ if (y = 0, t) op = [
63
+ op[0] & 2,
64
+ t.value
65
+ ];
66
+ switch(op[0]){
67
+ case 0:
68
+ case 1:
69
+ t = op;
70
+ break;
71
+ case 4:
72
+ _.label++;
73
+ return {
74
+ value: op[1],
75
+ done: false
76
+ };
77
+ case 5:
78
+ _.label++;
79
+ y = op[1];
80
+ op = [
81
+ 0
82
+ ];
83
+ continue;
84
+ case 7:
85
+ op = _.ops.pop();
86
+ _.trys.pop();
87
+ continue;
88
+ default:
89
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
90
+ _ = 0;
91
+ continue;
92
+ }
93
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
94
+ _.label = op[1];
95
+ break;
96
+ }
97
+ if (op[0] === 6 && _.label < t[1]) {
98
+ _.label = t[1];
99
+ t = op;
100
+ break;
101
+ }
102
+ if (t && _.label < t[2]) {
103
+ _.label = t[2];
104
+ _.ops.push(op);
105
+ break;
106
+ }
107
+ if (t[2]) _.ops.pop();
108
+ _.trys.pop();
109
+ continue;
110
+ }
111
+ op = body.call(thisArg, _);
112
+ } catch (e) {
113
+ op = [
114
+ 6,
115
+ e
116
+ ];
117
+ y = 0;
118
+ } finally{
119
+ f = t = 0;
120
+ }
121
+ if (op[0] & 5) throw op[1];
122
+ return {
123
+ value: op[0] ? op[1] : void 0,
124
+ done: true
125
+ };
126
+ }
127
+ }
128
+ import { Connection, LAMPORTS_PER_SOL, PublicKey } from "@solana/web3.js";
129
+ var BALANCE_CHECK_COMMITMENT = "confirmed";
130
+ var DEFAULT_MAINNET_RPC_URL = "https://api.mainnet-beta.solana.com";
131
+ // Release NFT minting currently needs roughly ~0.015 SOL in rent plus fees.
132
+ // Keep a small buffer so the CLI fails before uploading the APK.
133
+ export var MIN_PUBLICATION_SIGNER_BALANCE_LAMPORTS = 16000000;
134
+ function createBalanceClient(rpcUrl) {
135
+ var connection = new Connection(rpcUrl, BALANCE_CHECK_COMMITMENT);
136
+ return {
137
+ getBalance: function getBalance(publicKey) {
138
+ return _async_to_generator(function() {
139
+ return _ts_generator(this, function(_state) {
140
+ switch(_state.label){
141
+ case 0:
142
+ return [
143
+ 4,
144
+ connection.getBalance(publicKey, BALANCE_CHECK_COMMITMENT)
145
+ ];
146
+ case 1:
147
+ return [
148
+ 2,
149
+ _state.sent()
150
+ ];
151
+ }
152
+ });
153
+ })();
154
+ }
155
+ };
156
+ }
157
+ function trimOptional(value) {
158
+ var trimmed = value === null || value === void 0 ? void 0 : value.trim();
159
+ return trimmed ? trimmed : undefined;
160
+ }
161
+ export function resolveFundingPreflightRpcUrl(input) {
162
+ var explicitRpcUrl = trimOptional(input.rpcUrl);
163
+ if (explicitRpcUrl) {
164
+ return explicitRpcUrl;
165
+ }
166
+ if (input.localDev) {
167
+ return undefined;
168
+ }
169
+ return DEFAULT_MAINNET_RPC_URL;
170
+ }
171
+ function formatSolAmount(lamports) {
172
+ return (lamports / LAMPORTS_PER_SOL).toFixed(6);
173
+ }
174
+ function buildInsufficientBalanceMessage(input) {
175
+ return "Signer ".concat(input.publicKey, " has ").concat(formatSolAmount(input.balanceLamports), " SOL, but publishing needs at least ").concat(formatSolAmount(input.requiredLamports), " SOL available before it starts.");
176
+ }
177
+ function buildRpcWarningMessage(rpcUrl, error) {
178
+ var detail = _instanceof(error, Error) ? error.message : String(error);
179
+ return [
180
+ "Unable to confirm the signer balance via ".concat(rpcUrl, "."),
181
+ "Continuing without a SOL preflight check: ".concat(detail, ".")
182
+ ].join(" ");
183
+ }
184
+ export function ensurePublicationSignerBalance(_0) {
185
+ return _async_to_generator(function(input) {
186
+ var clientFactory, rpcUrl, publicKey, detail, balanceLamports, error;
187
+ var _arguments = arguments;
188
+ return _ts_generator(this, function(_state) {
189
+ switch(_state.label){
190
+ case 0:
191
+ clientFactory = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : createBalanceClient;
192
+ rpcUrl = resolveFundingPreflightRpcUrl(input);
193
+ if (!rpcUrl) {
194
+ return [
195
+ 2,
196
+ undefined
197
+ ];
198
+ }
199
+ try {
200
+ publicKey = new PublicKey(input.publicKey);
201
+ } catch (error) {
202
+ detail = _instanceof(error, Error) ? error.message : String(error);
203
+ throw new Error("Invalid signer public key for balance preflight: ".concat(input.publicKey, ". ").concat(detail));
204
+ }
205
+ _state.label = 1;
206
+ case 1:
207
+ _state.trys.push([
208
+ 1,
209
+ 3,
210
+ ,
211
+ 4
212
+ ]);
213
+ return [
214
+ 4,
215
+ clientFactory(rpcUrl).getBalance(publicKey)
216
+ ];
217
+ case 2:
218
+ balanceLamports = _state.sent();
219
+ if (balanceLamports < MIN_PUBLICATION_SIGNER_BALANCE_LAMPORTS) {
220
+ throw new Error(buildInsufficientBalanceMessage({
221
+ balanceLamports: balanceLamports,
222
+ publicKey: input.publicKey,
223
+ requiredLamports: MIN_PUBLICATION_SIGNER_BALANCE_LAMPORTS
224
+ }));
225
+ }
226
+ return [
227
+ 2,
228
+ undefined
229
+ ];
230
+ case 3:
231
+ error = _state.sent();
232
+ if (_instanceof(error, Error) && error.message.includes("publishing needs at least")) {
233
+ throw error;
234
+ }
235
+ return [
236
+ 2,
237
+ buildRpcWarningMessage(rpcUrl, error)
238
+ ];
239
+ case 4:
240
+ return [
241
+ 2
242
+ ];
243
+ }
244
+ });
245
+ }).apply(this, arguments);
246
+ }
@@ -0,0 +1,99 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_with_holes(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
9
+ function _iterable_to_array_limit(arr, i) {
10
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
11
+ if (_i == null) return;
12
+ var _arr = [];
13
+ var _n = true;
14
+ var _d = false;
15
+ var _s, _e;
16
+ try {
17
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
18
+ _arr.push(_s.value);
19
+ if (i && _arr.length === i) break;
20
+ }
21
+ } catch (err) {
22
+ _d = true;
23
+ _e = err;
24
+ } finally{
25
+ try {
26
+ if (!_n && _i["return"] != null) _i["return"]();
27
+ } finally{
28
+ if (_d) throw _e;
29
+ }
30
+ }
31
+ return _arr;
32
+ }
33
+ function _non_iterable_rest() {
34
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
35
+ }
36
+ function _sliced_to_array(arr, i) {
37
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
38
+ }
39
+ function _type_of(obj) {
40
+ "@swc/helpers - typeof";
41
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
42
+ }
43
+ function _unsupported_iterable_to_array(o, minLen) {
44
+ if (!o) return;
45
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
46
+ var n = Object.prototype.toString.call(o).slice(8, -1);
47
+ if (n === "Object" && o.constructor) n = o.constructor.name;
48
+ if (n === "Map" || n === "Set") return Array.from(n);
49
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
50
+ }
51
+ function isRecord(value) {
52
+ return (typeof value === "undefined" ? "undefined" : _type_of(value)) === 'object' && value !== null;
53
+ }
54
+ export function extractPublicationSummaryLines(result) {
55
+ var lines = [
56
+ 'This app is now in review.'
57
+ ];
58
+ if (!isRecord(result)) {
59
+ return lines;
60
+ }
61
+ var keys = [
62
+ [
63
+ 'releaseMintAddress',
64
+ 'Release mint address'
65
+ ],
66
+ [
67
+ 'collectionMintAddress',
68
+ 'Collection mint address'
69
+ ],
70
+ [
71
+ 'hubspotTicketId',
72
+ 'Ticket ID'
73
+ ]
74
+ ];
75
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
76
+ try {
77
+ for(var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
78
+ var _step_value = _sliced_to_array(_step.value, 2), key = _step_value[0], label = _step_value[1];
79
+ var value = result[key];
80
+ if (typeof value === 'string' && value.length > 0) {
81
+ lines.push("".concat(label, ": ").concat(value));
82
+ }
83
+ }
84
+ } catch (err) {
85
+ _didIteratorError = true;
86
+ _iteratorError = err;
87
+ } finally{
88
+ try {
89
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
90
+ _iterator.return();
91
+ }
92
+ } finally{
93
+ if (_didIteratorError) {
94
+ throw _iteratorError;
95
+ }
96
+ }
97
+ }
98
+ return lines;
99
+ }
@@ -27,13 +27,6 @@ function _async_to_generator(fn) {
27
27
  });
28
28
  };
29
29
  }
30
- function _instanceof(left, right) {
31
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
32
- return !!right[Symbol.hasInstance](left);
33
- } else {
34
- return left instanceof right;
35
- }
36
- }
37
30
  function _ts_generator(thisArg, body) {
38
31
  var f, y, t, _ = {
39
32
  label: 0,
@@ -125,61 +118,38 @@ function _ts_generator(thisArg, body) {
125
118
  };
126
119
  }
127
120
  }
128
- import { FailedToConfirmTransactionError } from "@metaplex-foundation/js";
129
- import { TransactionExpiredBlockheightExceededError } from "@solana/web3.js";
130
- export function sendAndConfirmTransaction(metaplex, builder) {
121
+ import { createPublicationWorkflow } from '@solana-mobile/dapp-store-publishing-tools';
122
+ export function runPublicationWorkflow(request) {
131
123
  return _async_to_generator(function() {
132
- var i, e;
124
+ var workflow;
133
125
  return _ts_generator(this, function(_state) {
134
126
  switch(_state.label){
135
127
  case 0:
136
- i = 0;
137
- _state.label = 1;
138
- case 1:
139
- if (!(i < 10)) return [
128
+ workflow = createPublicationWorkflow(request.client, request.options);
129
+ if (!(request.mode === 'new-version')) return [
140
130
  3,
141
- 6
131
+ 2
142
132
  ];
143
- _state.label = 2;
144
- case 2:
145
- _state.trys.push([
146
- 2,
147
- 4,
148
- ,
149
- 5
150
- ]);
151
133
  return [
152
134
  4,
153
- builder.sendAndConfirm(metaplex)
135
+ workflow.startPublication(request.input)
154
136
  ];
155
- case 3:
137
+ case 1:
156
138
  return [
157
139
  2,
158
140
  _state.sent()
159
141
  ];
160
- case 4:
161
- e = _state.sent();
162
- if (isTransientError(e)) {
163
- return [
164
- 3,
165
- 5
166
- ];
167
- }
168
- throw e;
169
- case 5:
170
- i++;
142
+ case 2:
171
143
  return [
172
- 3,
173
- 1
144
+ 4,
145
+ workflow.resumePublication(request.input)
146
+ ];
147
+ case 3:
148
+ return [
149
+ 2,
150
+ _state.sent()
174
151
  ];
175
- case 6:
176
- throw new Error("Unable to send transaction. Please try later.");
177
152
  }
178
153
  });
179
154
  })();
180
155
  }
181
- function isTransientError(e) {
182
- var _e_cause;
183
- var _e_cause_message;
184
- return _instanceof(e, FailedToConfirmTransactionError) && (_instanceof(e.cause, TransactionExpiredBlockheightExceededError) || /blockhash not found/i.test((_e_cause_message = (_e_cause = e.cause) === null || _e_cause === void 0 ? void 0 : _e_cause.message) !== null && _e_cause_message !== void 0 ? _e_cause_message : ""));
185
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana-mobile/dapp-store-cli",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -28,48 +28,29 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@jest/globals": "^29.5.0",
31
- "@jest/types": "^29.5.0",
32
- "@metaplex-foundation/js": "0.20.0",
31
+ "@metaplex-foundation/mpl-token-metadata": "2.13.0",
33
32
  "@swc/jest": "^0.2.26",
34
- "@types/commander": "^2.12.2",
35
- "@types/debug": "^4.1.7",
36
33
  "@types/jest": "^29.5.1",
37
- "@types/js-yaml": "^4.0.5",
38
- "@types/terminal-link": "^1.2.0",
39
34
  "@types/update-notifier": "^6.0.1",
40
35
  "jest": "^29.5.0",
41
- "jest-transform-stub": "^2.0.0",
42
- "shx": "^0.3.4",
43
- "ts-jest": "^29.1.0",
44
- "ts-node": "^10.9.1"
36
+ "shx": "^0.3.4"
45
37
  },
46
38
  "dependencies": {
47
- "@ardrive/turbo-sdk": "^1.41.0",
48
- "@aws-sdk/client-s3": "^3.321.1",
49
- "@metaplex-foundation/js-plugin-aws": "^0.20.0",
50
- "@solana-mobile/dapp-store-publishing-tools": "0.16.0",
39
+ "@solana-mobile/dapp-store-publishing-tools": "0.16.1",
51
40
  "@solana/web3.js": "1.92.1",
52
41
  "@types/semver": "^7.3.13",
53
- "ajv": "^8.11.0",
54
42
  "boxen": "^7.0.1",
55
- "bs58": "^5.0.0",
56
- "chokidar": "^3.5.3",
57
43
  "commander": "^9.4.1",
58
- "debug": "^4.3.4",
59
44
  "dotenv": "^16.0.3",
60
- "esm": "^3.2.25",
61
- "generate-schema": "^2.6.0",
62
45
  "get-video-dimensions": "^1.0.0",
63
46
  "image-size": "^1.0.2",
64
- "js-yaml": "^4.1.0",
65
47
  "semver": "^7.3.8",
66
- "terminal-link": "^3.0.0",
67
48
  "tweetnacl": "1.0.3",
68
49
  "update-notifier": "^6.0.2"
69
50
  },
70
51
  "scripts": {
71
52
  "clean": "shx mkdir -p lib && shx rm -rf lib",
72
- "prebuild": "pnpm run clean && node src/prebuild_schema/schemagen.js",
53
+ "prebuild": "pnpm run clean",
73
54
  "build": "swc src -d lib --copy-files",
74
55
  "watch": "swc src --out-dir lib -w",
75
56
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"