@isense-development/test-npm 2.0.7 → 2.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/install.js +6 -2
- package/package.json +3 -3
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);
|
@@ -11,3 +13,5 @@ if (!fs.existsSync(dir)) {
|
|
11
13
|
console.log(chalk.yellow('directory `tmp` already exists'))
|
12
14
|
|
13
15
|
}
|
16
|
+
|
17
|
+
console.log(chalk.yellow(JSON.stringify(process.env, null, 2)))
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@isense-development/test-npm",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.11",
|
4
4
|
"description": "test npm",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
7
|
-
"install": "node
|
8
|
-
"preinstall": "node
|
7
|
+
"install": "node index.js",
|
8
|
+
"preinstall": "node index.js",
|
9
9
|
"postinstall": "node install.js",
|
10
10
|
"uninstall": "node uninstall.js",
|
11
11
|
"start": "node index.js",
|