Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 78b36aa

Browse files
bot174JaylyDev
andauthored
* mojangnet * Update http-request.js * node dependency fix * fix json * Update gametest.yml * Update gametest.yml Co-authored-by: Jayly <[email protected]>
1 parent a9a1f46 commit 78b36aa

6 files changed

Lines changed: 22 additions & 20 deletions

File tree

.github/workflows/gametest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ jobs:
1212
uses: actions/checkout@v3
1313

1414
- name: npm install
15-
run: npm install
15+
run: |
16+
npm install
17+
find ./scripts/* -maxdepth 2 -name package.json -execdir npm install \;
18+
find ./utilities/* -maxdepth 2 -name package.json -execdir npm install \;
1619
1720
- name: tsc
1821
run: tsc

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"@types/mojang-minecraft-ui": "^0.1.0",
2525
"@types/mojang-net": "^0.1.0",
2626
"@types/node": "^18.0.3",
27-
"typescript": "^4.7.4",
28-
"uuid": "^8.3.2"
27+
"typescript": "^4.7.4"
2928
}
3029
}

utilities/bp-template/manifest.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import fs from "fs";
2-
import path from "path";
3-
import { fileURLToPath } from 'url';
4-
import * as uuid from "uuid";
1+
const fs = require("fs");
2+
const path = require("path");
3+
const uuid = require("uuid");
54

6-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
75
const name = "createWorldScreen.experimentalGameTest";
86
const description = "createWorldScreen.experimentalGameTestDescription";
97
/** @type {"script" | "javascript"} */

utilities/bp-template/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212
},
1313
"author": "JaylyMC",
1414
"license": "MIT",
15-
"type": "module",
1615
"bugs": {
1716
"url": "https://github.com/JaylyDev/GametestDB/issues"
1817
},
19-
"homepage": "https://github.com/JaylyDev/GametestDB#readme"
18+
"homepage": "https://github.com/JaylyDev/GametestDB#readme",
19+
"dependencies": {
20+
"uuid": "^8.3.2"
21+
},
22+
"devDependencies": {
23+
"@types/uuid": "^8.3.4"
24+
}
2025
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"moduleResolution": "node",
4+
"module": "CommonJS"
5+
},
6+
"extends": "../../tsconfig.json"
7+
}

utilities/tsconfig.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)