playcademy 0.14.30-alpha.2 → 0.14.31
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/dist/cli.js +6 -6
- package/dist/index.js +40 -30
- package/dist/utils.js +6 -6
- package/dist/version.js +6 -6
- package/package.json +7 -7
package/dist/cli.js
CHANGED
|
@@ -2773,19 +2773,19 @@ var package_default2 = {
|
|
|
2773
2773
|
require: "./dist/db.js"
|
|
2774
2774
|
},
|
|
2775
2775
|
"./utils": {
|
|
2776
|
-
|
|
2777
|
-
|
|
2776
|
+
types: "./dist/utils.d.ts",
|
|
2777
|
+
import: "./dist/utils.js"
|
|
2778
2778
|
},
|
|
2779
2779
|
"./constants": {
|
|
2780
|
-
|
|
2781
|
-
|
|
2780
|
+
types: "./dist/constants.d.ts",
|
|
2781
|
+
import: "./dist/constants.js"
|
|
2782
2782
|
},
|
|
2783
2783
|
"./types": {
|
|
2784
2784
|
types: "./dist/index.d.ts"
|
|
2785
2785
|
},
|
|
2786
2786
|
"./version": {
|
|
2787
|
-
|
|
2788
|
-
|
|
2787
|
+
types: "./dist/version.d.ts",
|
|
2788
|
+
import: "./dist/version.js"
|
|
2789
2789
|
}
|
|
2790
2790
|
},
|
|
2791
2791
|
main: "./dist/index.js",
|
package/dist/index.js
CHANGED
|
@@ -1421,16 +1421,9 @@ function getErrorMessage(error) {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
function logAndExit(error, options = {}) {
|
|
1423
1423
|
const { code = 1, prefix } = options;
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
}
|
|
1428
|
-
formatError(error);
|
|
1429
|
-
} else {
|
|
1430
|
-
const message = getErrorMessage(error);
|
|
1431
|
-
const fullMessage = prefix ? `${prefix}: ${message}` : message;
|
|
1432
|
-
logger.error(fullMessage);
|
|
1433
|
-
}
|
|
1424
|
+
const message = getErrorMessage(error);
|
|
1425
|
+
const fullMessage = prefix ? `${prefix}: ${message}` : message;
|
|
1426
|
+
logger.error(fullMessage);
|
|
1434
1427
|
logger.newLine();
|
|
1435
1428
|
process.exit(code);
|
|
1436
1429
|
}
|
|
@@ -3565,19 +3558,19 @@ var package_default2 = {
|
|
|
3565
3558
|
require: "./dist/db.js"
|
|
3566
3559
|
},
|
|
3567
3560
|
"./utils": {
|
|
3568
|
-
|
|
3569
|
-
|
|
3561
|
+
types: "./dist/utils.d.ts",
|
|
3562
|
+
import: "./dist/utils.js"
|
|
3570
3563
|
},
|
|
3571
3564
|
"./constants": {
|
|
3572
|
-
|
|
3573
|
-
|
|
3565
|
+
types: "./dist/constants.d.ts",
|
|
3566
|
+
import: "./dist/constants.js"
|
|
3574
3567
|
},
|
|
3575
3568
|
"./types": {
|
|
3576
3569
|
types: "./dist/index.d.ts"
|
|
3577
3570
|
},
|
|
3578
3571
|
"./version": {
|
|
3579
|
-
|
|
3580
|
-
|
|
3572
|
+
types: "./dist/version.d.ts",
|
|
3573
|
+
import: "./dist/version.js"
|
|
3581
3574
|
}
|
|
3582
3575
|
},
|
|
3583
3576
|
main: "./dist/index.js",
|
|
@@ -10424,17 +10417,7 @@ async function runDbSeedRemote(seedFile, options) {
|
|
|
10424
10417
|
logger.newLine();
|
|
10425
10418
|
process.exit(1);
|
|
10426
10419
|
}
|
|
10427
|
-
const
|
|
10428
|
-
const game = games2.find((g) => g.id === deployedGame.gameId);
|
|
10429
|
-
if (!game) {
|
|
10430
|
-
logger.newLine();
|
|
10431
|
-
logger.admonition("warning", "Game Not Found", [
|
|
10432
|
-
`Could not find game with ID \`${deployedGame.gameId}\``,
|
|
10433
|
-
`Try redeploying your project: \`playcademy deploy\``
|
|
10434
|
-
]);
|
|
10435
|
-
logger.newLine();
|
|
10436
|
-
process.exit(1);
|
|
10437
|
-
}
|
|
10420
|
+
const game = await client.games.fetch(deployedGame.gameId);
|
|
10438
10421
|
const willReset = options.reset !== false;
|
|
10439
10422
|
logger.newLine();
|
|
10440
10423
|
if (willReset) {
|
|
@@ -12655,7 +12638,16 @@ var deleteCommand2 = new Command22("delete").description("Delete a project secre
|
|
|
12655
12638
|
logger.newLine();
|
|
12656
12639
|
process.exit(1);
|
|
12657
12640
|
}
|
|
12658
|
-
const
|
|
12641
|
+
const games2 = await client.games.list({ force: true });
|
|
12642
|
+
const game = games2.find((g) => g.id === deployedGame.gameId);
|
|
12643
|
+
if (!game) {
|
|
12644
|
+
logger.admonition("warning", "Game Not Found", [
|
|
12645
|
+
`Could not find game with ID \`${deployedGame.gameId}\``,
|
|
12646
|
+
`Try redeploying your project: \`playcademy deploy\``
|
|
12647
|
+
]);
|
|
12648
|
+
logger.newLine();
|
|
12649
|
+
process.exit(1);
|
|
12650
|
+
}
|
|
12659
12651
|
if (!options.force) {
|
|
12660
12652
|
const confirmed = await confirm14({
|
|
12661
12653
|
message: `Delete secret "${key}" from "${game.slug}" in ${environment}?`,
|
|
@@ -12719,7 +12711,16 @@ var listCommand2 = new Command23("list").description("List project secret keys")
|
|
|
12719
12711
|
logger.newLine();
|
|
12720
12712
|
process.exit(1);
|
|
12721
12713
|
}
|
|
12722
|
-
const
|
|
12714
|
+
const games2 = await client.games.list({ force: true });
|
|
12715
|
+
const game = games2.find((g) => g.id === deployedGame.gameId);
|
|
12716
|
+
if (!game) {
|
|
12717
|
+
logger.admonition("warning", "Game Not Found", [
|
|
12718
|
+
`Could not find game with ID \`${deployedGame.gameId}\``,
|
|
12719
|
+
`Try redeploying your project: \`playcademy deploy\``
|
|
12720
|
+
]);
|
|
12721
|
+
logger.newLine();
|
|
12722
|
+
process.exit(1);
|
|
12723
|
+
}
|
|
12723
12724
|
const keys = await runStep(
|
|
12724
12725
|
`Fetching secrets from ${environment}`,
|
|
12725
12726
|
() => client.dev.games.secrets.list(game.slug),
|
|
@@ -12759,7 +12760,16 @@ var setCommand = new Command24("set").description("Set or update a project secre
|
|
|
12759
12760
|
logger.newLine();
|
|
12760
12761
|
process.exit(1);
|
|
12761
12762
|
}
|
|
12762
|
-
const
|
|
12763
|
+
const games2 = await client.games.list({ force: true });
|
|
12764
|
+
const game = games2.find((g) => g.id === deployedGame.gameId);
|
|
12765
|
+
if (!game) {
|
|
12766
|
+
logger.admonition("warning", "Game Not Found", [
|
|
12767
|
+
`Could not find game with ID \`${deployedGame.gameId}\``,
|
|
12768
|
+
`Try redeploying your project: \`playcademy deploy\``
|
|
12769
|
+
]);
|
|
12770
|
+
logger.newLine();
|
|
12771
|
+
process.exit(1);
|
|
12772
|
+
}
|
|
12763
12773
|
await runStep(
|
|
12764
12774
|
`Setting secret "${key}" in ${environment}`,
|
|
12765
12775
|
() => client.dev.games.secrets.set(game.slug, { [key]: value }),
|
package/dist/utils.js
CHANGED
|
@@ -2227,19 +2227,19 @@ var package_default2 = {
|
|
|
2227
2227
|
require: "./dist/db.js"
|
|
2228
2228
|
},
|
|
2229
2229
|
"./utils": {
|
|
2230
|
-
|
|
2231
|
-
|
|
2230
|
+
types: "./dist/utils.d.ts",
|
|
2231
|
+
import: "./dist/utils.js"
|
|
2232
2232
|
},
|
|
2233
2233
|
"./constants": {
|
|
2234
|
-
|
|
2235
|
-
|
|
2234
|
+
types: "./dist/constants.d.ts",
|
|
2235
|
+
import: "./dist/constants.js"
|
|
2236
2236
|
},
|
|
2237
2237
|
"./types": {
|
|
2238
2238
|
types: "./dist/index.d.ts"
|
|
2239
2239
|
},
|
|
2240
2240
|
"./version": {
|
|
2241
|
-
|
|
2242
|
-
|
|
2241
|
+
types: "./dist/version.d.ts",
|
|
2242
|
+
import: "./dist/version.js"
|
|
2243
2243
|
}
|
|
2244
2244
|
},
|
|
2245
2245
|
main: "./dist/index.js",
|
package/dist/version.js
CHANGED
|
@@ -20,19 +20,19 @@ var package_default = {
|
|
|
20
20
|
require: "./dist/db.js"
|
|
21
21
|
},
|
|
22
22
|
"./utils": {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
types: "./dist/utils.d.ts",
|
|
24
|
+
import: "./dist/utils.js"
|
|
25
25
|
},
|
|
26
26
|
"./constants": {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
types: "./dist/constants.d.ts",
|
|
28
|
+
import: "./dist/constants.js"
|
|
29
29
|
},
|
|
30
30
|
"./types": {
|
|
31
31
|
types: "./dist/index.d.ts"
|
|
32
32
|
},
|
|
33
33
|
"./version": {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
types: "./dist/version.d.ts",
|
|
35
|
+
import: "./dist/version.js"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
main: "./dist/index.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playcademy",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"require": "./dist/db.js"
|
|
20
20
|
},
|
|
21
21
|
"./utils": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"types": "./dist/utils.d.ts",
|
|
23
|
+
"import": "./dist/utils.js"
|
|
24
24
|
},
|
|
25
25
|
"./constants": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"types": "./dist/constants.d.ts",
|
|
27
|
+
"import": "./dist/constants.js"
|
|
28
28
|
},
|
|
29
29
|
"./types": {
|
|
30
30
|
"types": "./dist/index.d.ts"
|
|
31
31
|
},
|
|
32
32
|
"./version": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
33
|
+
"types": "./dist/version.d.ts",
|
|
34
|
+
"import": "./dist/version.js"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"main": "./dist/index.js",
|