create-bloop 0.0.3 → 0.0.5
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/index.js
CHANGED
|
@@ -4940,7 +4940,8 @@ var require_prompts3 = __commonJS((exports, module) => {
|
|
|
4940
4940
|
var import_prompts = __toESM(require_prompts3(), 1);
|
|
4941
4941
|
import fs from "node:fs";
|
|
4942
4942
|
import path from "node:path";
|
|
4943
|
-
|
|
4943
|
+
import { fileURLToPath } from "node:url";
|
|
4944
|
+
var DIRNAME = path.dirname(fileURLToPath(import.meta.url));
|
|
4944
4945
|
var templates = [
|
|
4945
4946
|
{
|
|
4946
4947
|
name: "hello",
|
|
@@ -4949,8 +4950,8 @@ var templates = [
|
|
|
4949
4950
|
},
|
|
4950
4951
|
{
|
|
4951
4952
|
name: "mario",
|
|
4952
|
-
title: "Multiplayer
|
|
4953
|
-
description: "Mario-style versus platformer with
|
|
4953
|
+
title: "Realtime Multiplayer",
|
|
4954
|
+
description: "Mario-style versus platformer with rollback netcode"
|
|
4954
4955
|
}
|
|
4955
4956
|
];
|
|
4956
4957
|
async function main() {
|
|
@@ -4989,7 +4990,7 @@ async function main() {
|
|
|
4989
4990
|
}
|
|
4990
4991
|
console.log(`
|
|
4991
4992
|
Creating ${projectName}...`);
|
|
4992
|
-
const templatesDir = path.join(
|
|
4993
|
+
const templatesDir = path.join(DIRNAME, "templates", template);
|
|
4993
4994
|
if (!fs.existsSync(templatesDir)) {
|
|
4994
4995
|
console.error(`Error: Template "${template}" not found.`);
|
|
4995
4996
|
console.error(`Expected at: ${templatesDir}`);
|
package/package.json
CHANGED