playcademy 0.14.29 → 0.14.30-alpha.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.
- package/dist/cli.js +1 -1
- package/dist/index.js +32 -5
- package/dist/utils.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -3539,7 +3539,7 @@ import { join as join12 } from "path";
|
|
|
3539
3539
|
// package.json with { type: 'json' }
|
|
3540
3540
|
var package_default2 = {
|
|
3541
3541
|
name: "playcademy",
|
|
3542
|
-
version: "0.14.
|
|
3542
|
+
version: "0.14.30",
|
|
3543
3543
|
type: "module",
|
|
3544
3544
|
exports: {
|
|
3545
3545
|
".": {
|
|
@@ -9726,7 +9726,7 @@ var getStatusCommand = new Command12("status").description("Check your developer
|
|
|
9726
9726
|
});
|
|
9727
9727
|
|
|
9728
9728
|
// package.json
|
|
9729
|
-
var version2 = "0.14.
|
|
9729
|
+
var version2 = "0.14.30";
|
|
9730
9730
|
|
|
9731
9731
|
// src/commands/dev/server.ts
|
|
9732
9732
|
function setupCleanupHandlers(workspace, getServer) {
|
|
@@ -12638,7 +12638,16 @@ var deleteCommand2 = new Command22("delete").description("Delete a project secre
|
|
|
12638
12638
|
logger.newLine();
|
|
12639
12639
|
process.exit(1);
|
|
12640
12640
|
}
|
|
12641
|
-
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
|
+
}
|
|
12642
12651
|
if (!options.force) {
|
|
12643
12652
|
const confirmed = await confirm14({
|
|
12644
12653
|
message: `Delete secret "${key}" from "${game.slug}" in ${environment}?`,
|
|
@@ -12702,7 +12711,16 @@ var listCommand2 = new Command23("list").description("List project secret keys")
|
|
|
12702
12711
|
logger.newLine();
|
|
12703
12712
|
process.exit(1);
|
|
12704
12713
|
}
|
|
12705
|
-
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
|
+
}
|
|
12706
12724
|
const keys = await runStep(
|
|
12707
12725
|
`Fetching secrets from ${environment}`,
|
|
12708
12726
|
() => client.dev.games.secrets.list(game.slug),
|
|
@@ -12742,7 +12760,16 @@ var setCommand = new Command24("set").description("Set or update a project secre
|
|
|
12742
12760
|
logger.newLine();
|
|
12743
12761
|
process.exit(1);
|
|
12744
12762
|
}
|
|
12745
|
-
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
|
+
}
|
|
12746
12773
|
await runStep(
|
|
12747
12774
|
`Setting secret "${key}" in ${environment}`,
|
|
12748
12775
|
() => client.dev.games.secrets.set(game.slug, { [key]: value }),
|
package/dist/utils.js
CHANGED
package/dist/version.js
CHANGED