create-cubing-app 0.51.0 → 0.51.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.
@@ -5,7 +5,7 @@
5
5
  "packages": {
6
6
  "": {
7
7
  "dependencies": {
8
- "cubing": "^0.51.0"
8
+ "cubing": "^0.51.1"
9
9
  },
10
10
  "devDependencies": {
11
11
  "barely-a-dev-server": "^0.6.1"
@@ -407,6 +407,15 @@
407
407
  "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.2.tgz",
408
408
  "integrity": "sha512-kMCNaZCJugWI86xiEHaY338CU5JpD0B97p1j1IKNn/Zto8PgACjQx0UxbHjmOcLl/dDOBnItwD07KmCs75pxtQ=="
409
409
  },
410
+ "node_modules/@types/node": {
411
+ "version": "22.5.1",
412
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.1.tgz",
413
+ "integrity": "sha512-KkHsxej0j9IW1KKOOAA/XBA0z08UFSrRQHErzEfA3Vgq57eXIMYboIlHJuYIfd+lwCQjtKqUu3UnmKbtUc9yRw==",
414
+ "license": "MIT",
415
+ "dependencies": {
416
+ "undici-types": "~6.19.2"
417
+ }
418
+ },
410
419
  "node_modules/@types/stats.js": {
411
420
  "version": "0.17.3",
412
421
  "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.3.tgz",
@@ -453,13 +462,15 @@
453
462
  "integrity": "sha512-+1dlx0aY5Jo1vHy/tSsIGpSkN4tS9rZSW8FIhG0JH/crs9wwweswIo/POr451r7bZww3hFbPAKnTpimzL/mm4Q=="
454
463
  },
455
464
  "node_modules/cubing": {
456
- "version": "0.51.0",
457
- "resolved": "https://registry.npmjs.org/cubing/-/cubing-0.51.0.tgz",
458
- "integrity": "sha512-IdnOcQd+O9fhXqMdvatae6O0yZtrV6G1S+Zibo1DKqDEPaqpQ7n2QU+zJq9gAGjG9KsZZM0mNWaExppwTP7KWA==",
465
+ "version": "0.51.1",
466
+ "resolved": "https://registry.npmjs.org/cubing/-/cubing-0.51.1.tgz",
467
+ "integrity": "sha512-DCrQtin5mnbB0oT1JygJwBgDGVuRaXXXLv9qnSbXAWmISiFdDZpzN+4yQS9xhIiDYo9ydp7KfGAw/HJbOM0Jfw==",
468
+ "license": "MPL-2.0 OR GPL-3.0-or-later",
459
469
  "dependencies": {
460
470
  "@types/three": "^0.165.0",
461
471
  "@types/web-bluetooth": "^0.0.20",
462
472
  "comlink": "^4.4.1",
473
+ "getbuiltinmodule-ponyfill": "^1.0.1",
463
474
  "random-uint-below": "v3.3.0",
464
475
  "three": "^0.165.0"
465
476
  },
@@ -468,7 +479,7 @@
468
479
  },
469
480
  "engines": {
470
481
  "bun": ">=1.0.30",
471
- "node": ">=19"
482
+ "node": ">=20.16.0"
472
483
  }
473
484
  },
474
485
  "node_modules/esbuild": {
@@ -515,6 +526,17 @@
515
526
  "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz",
516
527
  "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A=="
517
528
  },
529
+ "node_modules/getbuiltinmodule-ponyfill": {
530
+ "version": "1.0.1",
531
+ "resolved": "https://registry.npmjs.org/getbuiltinmodule-ponyfill/-/getbuiltinmodule-ponyfill-1.0.1.tgz",
532
+ "integrity": "sha512-X4OMK8lcnCBrmNOZr4eJkomfDiS45z3BgB62ZVQnDWYfLTK5xNd3vYD3UM+coNnek7zGuMp5ij40UgBbF/ByJg==",
533
+ "dependencies": {
534
+ "@types/node": "^22.3.0"
535
+ },
536
+ "engines": {
537
+ "node": ">=22.3.0"
538
+ }
539
+ },
518
540
  "node_modules/meshoptimizer": {
519
541
  "version": "0.18.1",
520
542
  "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.18.1.tgz",
@@ -532,6 +554,12 @@
532
554
  "version": "0.165.0",
533
555
  "resolved": "https://registry.npmjs.org/three/-/three-0.165.0.tgz",
534
556
  "integrity": "sha512-cc96IlVYGydeceu0e5xq70H8/yoVT/tXBxV/W8A/U6uOq7DXc4/s1Mkmnu6SqoYGhSRWWYFOhVwvq6V0VtbplA=="
557
+ },
558
+ "node_modules/undici-types": {
559
+ "version": "6.19.8",
560
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
561
+ "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
562
+ "license": "MIT"
535
563
  }
536
564
  }
537
565
  }
@@ -7,7 +7,7 @@
7
7
  "upgrade-cubing": "npm install --save cubing@latest"
8
8
  },
9
9
  "dependencies": {
10
- "cubing": "^0.51.0"
10
+ "cubing": "^0.51.1"
11
11
  },
12
12
  "devDependencies": {
13
13
  "barely-a-dev-server": "^0.6.1"
@@ -6,6 +6,7 @@ import { join, resolve } from "node:path";
6
6
  import { exit, stderr } from "node:process";
7
7
  import { createInterface } from "node:readline";
8
8
  import { promisify } from "node:util";
9
+ import { fileURLToPath } from "node:url";
9
10
 
10
11
  const CREATE_CUBING_APP_PACKAGE_JSON = JSON.parse(
11
12
  await readFile(new URL("../package.json", import.meta.url), "utf-8"),
@@ -65,7 +66,7 @@ Please select a different name (or delete the existing project folder).
65
66
  }
66
67
  await mkdir(projectPath, { recursive: true });
67
68
 
68
- const appTemplatePath = new URL("../app-template", import.meta.url).pathname;
69
+ const appTemplatePath = fileURLToPath(new URL("../app-template", import.meta.url));
69
70
  await cp(appTemplatePath, projectPath, {
70
71
  recursive: true,
71
72
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cubing-app",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-cubing-app": "bin/create-cubing-app.js"
@@ -1,5 +1,5 @@
1
1
  import { exit } from "node:process";
2
- import { $ } from "bun";
2
+ import { $, fileURLToPath } from "bun";
3
3
 
4
4
  if ((await $`git status --porcelain`).stdout.toString().trim()) {
5
5
  console.error("git status must be clean.");
@@ -8,7 +8,7 @@ if ((await $`git status --porcelain`).stdout.toString().trim()) {
8
8
 
9
9
  const version = (await $`npm show cubing version`).stdout.toString().trim();
10
10
 
11
- await $`npm install --prefix ${new URL(import.meta.resolve("../app-template/")).pathname} "cubing@v${version}"`;
11
+ await $`npm install --prefix ${fileURLToPath(new URL(import.meta.resolve("../app-template/")))} "cubing@v${version}"`;
12
12
  await $`npm version --no-git-tag-version "v${version}"`;
13
13
  await $`git commit --all --message "v${version}"`;
14
14
  await $`git push`;