@isense-development/test-npm 2.0.8 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- package/install.js +5 -3
- package/package.json +1 -1
package/install.js
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
let execSync = require('child_process').execSync
|
2
|
+
execSync('npm install copyfiles', {stdio: [0, 1, 2]})
|
3
|
+
|
1
4
|
let fs = require('fs')
|
2
5
|
const chalk = require('chalk')
|
3
|
-
let execSync = require('child_process').execSync
|
4
6
|
var copyfiles = require('copyfiles');
|
5
7
|
|
6
|
-
var dir = '
|
8
|
+
var dir = '../src/tmp';
|
7
9
|
if (!fs.existsSync(dir)) {
|
8
10
|
console.log(chalk.yellow('creating `tmp` directory'))
|
9
11
|
fs.mkdirSync(dir);
|
@@ -12,4 +14,4 @@ if (!fs.existsSync(dir)) {
|
|
12
14
|
|
13
15
|
}
|
14
16
|
|
15
|
-
console.log(chalk.yellow(process.env))
|
17
|
+
console.log(chalk.yellow(JSON.stringify(process.env, null, 2)))
|