@citolab/tspci 2.3.0-alpha.0 → 2.3.0-alpha.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citolab/tspci",
3
- "version": "2.3.0-alpha.0",
3
+ "version": "2.3.0-alpha.1",
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": "872d3b8628f1e7e9b2568563b8aae5ffa1a818d6"
49
+ "gitHead": "478292d5b580061e989a3a16a933081d23970962"
50
50
  }
package/src/cli.js CHANGED
@@ -346,7 +346,7 @@ const run = async () => {
346
346
  // run npm instaal in destination folder
347
347
  if (args.indexOf("--no-install") === -1) {
348
348
  console.log(chalk.green("Installing dependencies"));
349
- const npm = spawn("npm", ["install"], { cwd: destinationFolder });
349
+ const npm = spawn("npm", ["install"], { cwd: destinationFolder, shell: true });
350
350
  npm.stdout.on("data", (data) => {
351
351
  console.log(chalk.green(data.toString()));
352
352
  console.log(chalk.green("Done! You can now start the dev server with npm run dev"));
@@ -396,7 +396,7 @@ const run = async () => {
396
396
  if (!packageJson.devDependencies || !packageJson.devDependencies[`@citolab/tspci-${targetname}`]) {
397
397
  console.log(chalk.white(`Adding @citolab/tspci-${targetname}`));
398
398
  // install @citolab/tspci-${targetname} to devDepencies
399
- const npm = spawn("npm", ["install", `@citolab/tspci-${targetname}`, "--save-dev"], { cwd: process.cwd() });
399
+ const npm = spawn("npm", ["install", `@citolab/tspci-${targetname}`, "--save-dev"], { cwd: process.cwd(), shell: true });
400
400
  // wait till npm install is done
401
401
  npm.stdout.on("data", (data) => {
402
402
  console.log(chalk.green(`successfull installed @citolab/tspci-${targetname}`));