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