create-cubing-app 0.51.0 → 0.51.2
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.
|
|
8
|
+
"cubing": "^0.51.2"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"barely-a-dev-server": "^0.6.1"
|
|
@@ -453,9 +453,10 @@
|
|
|
453
453
|
"integrity": "sha512-+1dlx0aY5Jo1vHy/tSsIGpSkN4tS9rZSW8FIhG0JH/crs9wwweswIo/POr451r7bZww3hFbPAKnTpimzL/mm4Q=="
|
|
454
454
|
},
|
|
455
455
|
"node_modules/cubing": {
|
|
456
|
-
"version": "0.51.
|
|
457
|
-
"resolved": "https://registry.npmjs.org/cubing/-/cubing-0.51.
|
|
458
|
-
"integrity": "sha512-
|
|
456
|
+
"version": "0.51.2",
|
|
457
|
+
"resolved": "https://registry.npmjs.org/cubing/-/cubing-0.51.2.tgz",
|
|
458
|
+
"integrity": "sha512-hKIK9eqbDO0b7DJnoAcx9fLP2QwQnS7IjNM+d/Hepv17pRjOKQkyKGWBVmcQm/UeubKFaRyhK5Bb4Q7/Bf1Wvg==",
|
|
459
|
+
"license": "MPL-2.0 OR GPL-3.0-or-later",
|
|
459
460
|
"dependencies": {
|
|
460
461
|
"@types/three": "^0.165.0",
|
|
461
462
|
"@types/web-bluetooth": "^0.0.20",
|
|
@@ -468,7 +469,7 @@
|
|
|
468
469
|
},
|
|
469
470
|
"engines": {
|
|
470
471
|
"bun": ">=1.0.30",
|
|
471
|
-
"node": ">=
|
|
472
|
+
"node": ">=20.16.0"
|
|
472
473
|
}
|
|
473
474
|
},
|
|
474
475
|
"node_modules/esbuild": {
|
package/bin/create-cubing-app.js
CHANGED
|
@@ -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)
|
|
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
package/script/auto-publish.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { exit } from "node:process";
|
|
2
|
-
import {
|
|
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/"))
|
|
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`;
|