@citolab/tspci-qbci 2.4.6 → 2.4.7
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/package.json +2 -2
- package/src/createPackage.mjs +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/tspci-qbci",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.7",
|
|
4
4
|
"description": "create a .ci file that can be imported into Questify",
|
|
5
5
|
"author": "patrick <patrick.deklein@cito.nl>, Marcel Hoekstra <marcel.hoekstra@cito.nl>",
|
|
6
6
|
"repository": "",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"archiver": "^5.3.0"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "a3f7e00ec58c881c68b0f4616d5c1e4759e6bf75",
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
}
|
package/src/createPackage.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import fs, { mkdirSync } from "fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import archiver from "archiver";
|
|
4
|
-
import { exit } from "process";
|
|
5
4
|
|
|
6
5
|
export const bundle = () => {
|
|
7
6
|
const PACKAGE_ROOT_PATH = process.cwd();
|
|
8
7
|
const PACKAGER_PATH = path.join(PACKAGE_ROOT_PATH + "/node_modules/@citolab/tspci-qbci");
|
|
9
8
|
|
|
10
|
-
const outputDirectory = path.join(PACKAGE_ROOT_PATH, "dist");
|
|
9
|
+
const outputDirectory = path.join(PACKAGE_ROOT_PATH, "ci-dist");
|
|
11
10
|
const outputDirectoryTemp = path.join(outputDirectory, "tmp");
|
|
12
11
|
|
|
13
12
|
// remove directory to be sure it's empty
|
|
@@ -88,7 +87,7 @@ export const bundle = () => {
|
|
|
88
87
|
fs.copyFileSync(path.join(PACKAGE_ROOT_PATH, pciFile), path.join(scriptPath, "/index.min.js"));
|
|
89
88
|
|
|
90
89
|
// zip the folder
|
|
91
|
-
const zipName =
|
|
90
|
+
const zipName = `${name}_${packageData.version}.ci`;
|
|
92
91
|
zipDirectory(outputDirectoryTemp, path.join(outputDirectory, zipName)).then(() =>
|
|
93
92
|
// fs.rmdirSync(outputDirectoryTemp, { recursive: true });
|
|
94
93
|
console.log(`created questify ci zip: ${zipName}`)
|