ee-core 1.2.6 → 1.2.7-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/tools.js CHANGED
@@ -1,11 +1,11 @@
1
- 'use strict';
1
+ #!/usr/bin/env node
2
2
 
3
3
  const codeCompress = require('../tools/codeCompress');
4
4
  const replaceDist = require('../tools/replaceDist');
5
5
 
6
6
  // argv
7
7
  const args = process.argv;
8
- //console.log('[ee-core] args:', args);
8
+ // console.log('[ee-core] args:', args);
9
9
  const cmd = args[2];
10
10
  console.log('[ee-core] cmd:', cmd);
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ee-core",
3
- "version": "1.2.6",
3
+ "version": "1.2.7-beta.2",
4
4
  "description": "ee core",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "bin": {
12
- "ee-cli": "bin/tools.js"
12
+ "ee-core": "./bin/tools.js"
13
13
  },
14
14
  "dependencies": {
15
15
  "agentkeepalive": "^4.2.0",
@@ -20,12 +20,12 @@ const fsPro = require('fs-extra');
20
20
  // argv
21
21
  let distDir = '';
22
22
  for (let i = 0; i < process.argv.length; i++) {
23
- const tmpArgv = process.argv[i]
23
+ let tmpArgv = process.argv[i]
24
24
  if (tmpArgv.indexOf('--dist_dir=') !== -1) {
25
25
  distDir = tmpArgv.substring(11)
26
26
  }
27
27
  }
28
-
28
+
29
29
  const fileExist = (filePath) => {
30
30
  try {
31
31
  return fs.statSync(filePath).isFile();