vcpm 0.1.0 → 0.1.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.
package/README.md CHANGED
@@ -1,3 +1,19 @@
1
1
  # VCPM - Voxel Core Project Manager
2
2
 
3
3
  CLI util for managing voxel core content packs, with vcpm we can start new project and build it for release
4
+
5
+ ## Instalation
6
+
7
+ ```
8
+ npm i -g vcpm
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ vcpm build
15
+ ```
16
+
17
+ - Creates a zip archive for production use, removing in production build all files and folders which starts on dot, and remove type declarations folder.
18
+
19
+ Archive format [pack_id]\_[version].zip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vcpm",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "VCPM - Voxel Core Project Manager. Is unoficall CLI util for managing content packs",
5
5
  "main": "dist/index.js",
6
6
  "preferGlobal": "true",
@@ -25,15 +25,14 @@ const createDistZip = (): void => {
25
25
  return;
26
26
  }
27
27
 
28
- if (isExists("dist/build.zip")) {
29
- fs.rmSync("dist/build.zip");
30
- }
31
-
32
28
  const packData: PackInfo = getPackData();
29
+ const distPath = `dist/${packData.id}_${packData.version}.zip`;
33
30
 
34
- const output = fs.createWriteStream(
35
- `dist/${packData.id}_${packData.version}.zip`
36
- );
31
+ if (isExists(distPath)) {
32
+ fs.rmSync(distPath);
33
+ }
34
+
35
+ const output = fs.createWriteStream(distPath);
37
36
  const archive = archiver("zip", { zlib: { level: 9 } });
38
37
 
39
38
  archive.pipe(output);