@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.
- package/install.js +6 -3
- 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 = '
|
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)))
|