create-bloop 0.0.4 → 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
- var __dirname = "/home/runner/work/bloop/bloop/packages/create-bloop";
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 Game with Rollback Netcode",
4953
- description: "Mario-style versus platformer with online multiplayer, see demo at https://trybloop.gg/nu11/mario"
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(__dirname, "templates", template);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bloop",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Create a new Bloop game",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",
@@ -13,8 +13,8 @@
13
13
  "vite": "^7.2.2"
14
14
  },
15
15
  "dependencies": {
16
- "@bloopjs/bloop": "^0.0.77",
16
+ "@bloopjs/bloop": "^0.0.78",
17
17
  "@bloopjs/toodle": "^0.0.100",
18
- "@bloopjs/web": "^0.0.77"
18
+ "@bloopjs/web": "^0.0.78"
19
19
  }
20
20
  }
@@ -15,8 +15,8 @@
15
15
  "vite": "^7.2.2"
16
16
  },
17
17
  "dependencies": {
18
- "@bloopjs/bloop": "^0.0.77",
18
+ "@bloopjs/bloop": "^0.0.78",
19
19
  "@bloopjs/toodle": "^0.1.1",
20
- "@bloopjs/web": "^0.0.77"
20
+ "@bloopjs/web": "^0.0.78"
21
21
  }
22
22
  }