@maalne26/brotato-html 1.0.0 → 1.0.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.
- package/Brotato.html +1 -1
- package/bump-version.js +34 -0
- package/package.json +3 -2
package/Brotato.html
CHANGED
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<script type='text/javascript' src='Brotato.js'></script>
|
|
140
140
|
<script type='text/javascript'>//<![CDATA[
|
|
141
141
|
|
|
142
|
-
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"Brotato","experimentalVK":false,"fileSizes":{"Brotato.pck":
|
|
142
|
+
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"Brotato","experimentalVK":false,"fileSizes":{"Brotato.pck":281879552,"Brotato.wasm":25699027},"focusCanvas":true,"gdnativeLibs":[]};
|
|
143
143
|
var engine = new Engine(GODOT_CONFIG);
|
|
144
144
|
|
|
145
145
|
(function() {
|
package/bump-version.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
|
|
3
|
+
const packageJson = JSON.parse(
|
|
4
|
+
fs.readFileSync("./package.json", "utf8")
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
let [major, minor, patch] = packageJson.version
|
|
8
|
+
.split(".")
|
|
9
|
+
.map(Number);
|
|
10
|
+
|
|
11
|
+
patch++;
|
|
12
|
+
|
|
13
|
+
if (patch === 10) {
|
|
14
|
+
patch = 0;
|
|
15
|
+
minor++;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (minor === 10) {
|
|
19
|
+
minor = 0;
|
|
20
|
+
major++;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (major === 10) {
|
|
24
|
+
major = 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
packageJson.version = `${major}.${minor}.${patch}`;
|
|
28
|
+
|
|
29
|
+
fs.writeFileSync(
|
|
30
|
+
"./package.json",
|
|
31
|
+
JSON.stringify(packageJson, null, 2) + "\n"
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
console.log(`New version: ${packageJson.version}`);
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maalne26/brotato-html",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "Brotato.audio.worklet.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"prepublishOnly": "node bump-version.js"
|
|
8
9
|
},
|
|
9
10
|
"keywords": [],
|
|
10
11
|
"author": "",
|