vs-mod-packager 1.0.1 → 1.0.4
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/README.md +3 -6
- package/package.json +1 -1
- package/packager/index.js +1 -0
package/README.md
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
Add
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
to your scripts in your package.json
|
|
6
|
-
then npm run packagevsmod to create a zip of your mod.
|
|
1
|
+
Add ```"packagevsmod": "node node_modules/vs-mod-packager/packager/cli.js ."```
|
|
2
|
+
to your ```scripts``` in your ```package.json```
|
|
3
|
+
then run ```npm run packagevsmod``` to create a zip of your mod.
|
package/package.json
CHANGED
package/packager/index.js
CHANGED
|
@@ -9,6 +9,7 @@ async function zipModFolder(inputFolder) {
|
|
|
9
9
|
throw new Error('modinfo.json not found in input folder');
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
//this reads the modinfo from the modinfo.json .... or should
|
|
12
13
|
const modInfo = await fs.readJson(modInfoPath);
|
|
13
14
|
|
|
14
15
|
if (!modInfo.modid || !modInfo.version) {
|