@playcademy/sandbox 0.3.5 → 0.3.6
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 +10 -4
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -121481,7 +121481,7 @@ async function requirePortAvailable(port, timeoutMs = 100) {
|
|
|
121481
121481
|
// package.json
|
|
121482
121482
|
var package_default = {
|
|
121483
121483
|
name: "@playcademy/sandbox",
|
|
121484
|
-
version: "0.3.
|
|
121484
|
+
version: "0.3.6",
|
|
121485
121485
|
description: "Local development server for Playcademy game development",
|
|
121486
121486
|
type: "module",
|
|
121487
121487
|
exports: {
|
|
@@ -158324,14 +158324,16 @@ var {
|
|
|
158324
158324
|
// src/cli/display.ts
|
|
158325
158325
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
158326
158326
|
function printBanner(options) {
|
|
158327
|
-
const { version: version4, port, startupTimeMs, timebackCourseCount, quiet } = options;
|
|
158327
|
+
const { version: version4, port, startupTimeMs, timebackCourseCount, timebackEnrolledCount, quiet } = options;
|
|
158328
158328
|
console.log("");
|
|
158329
158329
|
console.log(` ${import_picocolors.default.green(import_picocolors.default.bold("PLAYCADEMY SANDBOX"))} ${import_picocolors.default.green(`v${version4}`)} ${import_picocolors.default.dim("ready in")} ${import_picocolors.default.bold(startupTimeMs.toString())} ms`);
|
|
158330
158330
|
console.log("");
|
|
158331
158331
|
console.log(` ${import_picocolors.default.green("➜")} ${import_picocolors.default.bold("Local:")} ${import_picocolors.default.cyan(`http://localhost:${import_picocolors.default.bold(port.toString())}/api`)}`);
|
|
158332
158332
|
if (timebackCourseCount && timebackCourseCount > 0) {
|
|
158333
158333
|
const courseText = timebackCourseCount === 1 ? "course" : "courses";
|
|
158334
|
-
|
|
158334
|
+
const enrolled = timebackEnrolledCount ?? timebackCourseCount;
|
|
158335
|
+
const enrollmentInfo = enrolled !== timebackCourseCount ? ` / ${enrolled} enrolled` : "";
|
|
158336
|
+
console.log(` ${import_picocolors.default.green("➜")} ${import_picocolors.default.bold("Timeback:")} ${import_picocolors.default.cyan(`${timebackCourseCount} ${courseText}${enrollmentInfo}`)}`);
|
|
158335
158337
|
}
|
|
158336
158338
|
console.log("");
|
|
158337
158339
|
if (!quiet) {
|
|
@@ -158613,11 +158615,15 @@ program2.name("playcademy-sandbox").description("Local development server for Pl
|
|
|
158613
158615
|
startedAt: Date.now(),
|
|
158614
158616
|
projectRoot: process.cwd()
|
|
158615
158617
|
});
|
|
158618
|
+
const totalCourses = project?.timebackCourses?.length ?? 0;
|
|
158619
|
+
const excludedCount = options.timebackExcludedCourses ? options.timebackExcludedCourses.split(",").filter(Boolean).length : 0;
|
|
158620
|
+
const enrolledCount = Math.max(0, totalCourses - excludedCount);
|
|
158616
158621
|
printBanner({
|
|
158617
158622
|
version: version3,
|
|
158618
158623
|
port,
|
|
158619
158624
|
startupTimeMs: Date.now() - startTime,
|
|
158620
|
-
timebackCourseCount:
|
|
158625
|
+
timebackCourseCount: totalCourses,
|
|
158626
|
+
timebackEnrolledCount: enrolledCount,
|
|
158621
158627
|
quiet: options.quiet
|
|
158622
158628
|
});
|
|
158623
158629
|
const cleanup = () => {
|
package/dist/server.js
CHANGED
|
@@ -119571,7 +119571,7 @@ async function requirePortAvailable(port, timeoutMs = 100) {
|
|
|
119571
119571
|
// package.json
|
|
119572
119572
|
var package_default = {
|
|
119573
119573
|
name: "@playcademy/sandbox",
|
|
119574
|
-
version: "0.3.
|
|
119574
|
+
version: "0.3.6",
|
|
119575
119575
|
description: "Local development server for Playcademy game development",
|
|
119576
119576
|
type: "module",
|
|
119577
119577
|
exports: {
|