@isense-development/test-npm 2.0.12 → 2.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/install.js +6 -3
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -5,13 +5,16 @@ let fs = require('fs')
5
5
  const chalk = require('chalk')
6
6
  var copyfiles = require('copyfiles');
7
7
 
8
- var dir = '../src/tmp';
8
+ var dir = '../../../src/tmp';
9
9
  if (!fs.existsSync(dir)) {
10
10
  console.log(chalk.yellow('creating `tmp` directory'))
11
- fs.mkdirSync(dir);
11
+ fs.mkdirSync(dir, {recursive: true}, (err) => {
12
+ if (err) {
13
+ console.log(chalk.red(err))
14
+ }
15
+ })
12
16
  } else {
13
17
  console.log(chalk.yellow('directory `tmp` already exists'))
14
-
15
18
  }
16
19
 
17
20
  console.log(chalk.yellow(JSON.stringify(process.env, null, 2)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isense-development/test-npm",
3
- "version": "2.0.12",
3
+ "version": "2.0.16",
4
4
  "description": "test npm",
5
5
  "main": "index.js",
6
6
  "scripts": {