@isense-development/test-npm 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +8 -1
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -1,7 +1,14 @@
1
- var fs = require('fs');
1
+ let fs = require('fs')
2
+ const chalk = require('chalk')
3
+ let execSync = require('child_process').execSync
4
+ var copyfiles = require('copyfiles');
2
5
 
3
6
  var dir = './tmp';
4
7
  if (!fs.existsSync(dir)) {
8
+ console.log(chalk.yellow('creating `tmp` directory'))
5
9
  fs.mkdirSync(dir);
10
+ }else{
11
+ console.log(chalk.yellow('directory `tmp` already exists'))
12
+
6
13
  }
7
14
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@isense-development/test-npm",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "test npm",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "install": "echo Install",
8
- "preinstall": "echo Preinstall",
9
- "postinstall": "echo Postinstall",
7
+ "install": "node index.js",
8
+ "preinstall": "node index.js",
9
+ "postinstall": "node index.js",
10
10
  "start": "node index.js",
11
11
  "patch-release": "npm version patch && npm publish --access=public",
12
12
  "minor-release": "npm version minor && npm publish --access=public",