@citolab/tspci 2.3.0-alpha.3 → 2.3.0-alpha.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/package.json +2 -2
- package/preset/base/package.json +2 -1
- package/src/cli.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/tspci",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.4",
|
|
4
4
|
"description": "an opiniated typescript ims-pci builder with tao integration",
|
|
5
5
|
"author": "patrick <patrick.deklein@cito.nl>",
|
|
6
6
|
"repository": "@citolab/tspci",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"help": "tspci --help",
|
|
47
47
|
"init": "tspci init --force --path=../../pcis"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a73cb286cca0f12d474e155915c251f85abf4b16"
|
|
50
50
|
}
|
package/preset/base/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -345,7 +345,7 @@ const run = async () => {
|
|
|
345
345
|
fs.writeFileSync(packageJson, newPackageJsonContent);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
// run npm
|
|
348
|
+
// run npm install in destination folder
|
|
349
349
|
if (args.indexOf("--no-install") === -1) {
|
|
350
350
|
console.log(chalk.green("📦 Installing dependencies"));
|
|
351
351
|
execSync("npm install", { cwd: destinationFolder, stdio: [0, 1, 2] });
|
|
@@ -362,6 +362,7 @@ const run = async () => {
|
|
|
362
362
|
console.error("Missing target name. Use tspci add --target target");
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
|
+
const version = args.indexOf("--next") ? "next" : "latest";
|
|
365
366
|
const targetname = args[targetIndex + 1];
|
|
366
367
|
const packageFileContent = fs.readFileSync(path.join(PACKAGE_ROOT_PATH, "package.json"), "utf8");
|
|
367
368
|
const packageJson = JSON.parse(packageFileContent);
|
|
@@ -391,7 +392,7 @@ const run = async () => {
|
|
|
391
392
|
if (!packageJson.devDependencies || !packageJson.devDependencies[`@citolab/tspci-${targetname}`]) {
|
|
392
393
|
console.log(chalk.white(`Adding @citolab/tspci-${targetname}`));
|
|
393
394
|
// install @citolab/tspci-${targetname} to devDepencies
|
|
394
|
-
execSync(`npm install @citolab/tspci-${targetname} --save-dev`, { cwd: PACKAGE_ROOT_PATH, stdio: [0, 1, 2] });
|
|
395
|
+
execSync(`npm install @citolab/tspci-${targetname}@${version} --save-dev`, { cwd: PACKAGE_ROOT_PATH, stdio: [0, 1, 2] });
|
|
395
396
|
}
|
|
396
397
|
modifyPci();
|
|
397
398
|
|