ee-bin 2.0.0-beta.1 → 2.0.0-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/index.cjs CHANGED
@@ -11,7 +11,7 @@ program
11
11
  .option('--config <folder>', 'config file', './electron/config/bin.js')
12
12
  .option('--flag <flag>', 'Custom flag')
13
13
  .action(function() {
14
- const moveScript = require('./tools/move');
14
+ const moveScript = require('./tools/move.cjs');
15
15
  moveScript.run(this.opts());
16
16
  });
17
17
 
@@ -25,7 +25,7 @@ program
25
25
  .option('--dist <folder>', 'title to use before name')
26
26
  .option('--target <folder>', 'title to use before name')
27
27
  .action(function() {
28
- const replaceDist = require('./tools/replaceDist');
28
+ const replaceDist = require('./tools/replaceDist.cjs');
29
29
  replaceDist.run(this.opts());
30
30
  });
31
31
 
@@ -38,7 +38,7 @@ program
38
38
  .option('--config <folder>', 'config file')
39
39
  .option('--out <folder>', 'output directory', './public')
40
40
  .action(function() {
41
- const encrypt = require('./tools/encrypt');
41
+ const encrypt = require('./tools/encrypt.cjs');
42
42
  encrypt.run(this.opts());
43
43
  });
44
44
 
@@ -50,7 +50,7 @@ program
50
50
  .description('Clear the encrypted code')
51
51
  .option('-d, --dir <folder>', 'clean directory')
52
52
  .action(function() {
53
- const encrypt = require('./tools/encrypt');
53
+ const encrypt = require('./tools/encrypt.cjs');
54
54
  encrypt.clean(this.opts());
55
55
  });
56
56
 
@@ -63,7 +63,7 @@ program
63
63
  .option('-i, --input <file>', 'image file default /public/images/logo.png')
64
64
  .option('-o, --output <folder>', 'output directory default /build/icons/')
65
65
  .action(function() {
66
- const iconGen = require('./tools/iconGen');
66
+ const iconGen = require('./tools/iconGen.cjs');
67
67
  iconGen.run();
68
68
  });
69
69
 
@@ -76,7 +76,7 @@ program
76
76
  .option('--config <folder>', 'config file', './electron/config/bin.js')
77
77
  .option('--serve <mode>', 'serve mode')
78
78
  .action(function() {
79
- const serve = require('./tools/serve');
79
+ const serve = require('./tools/serve.cjs');
80
80
  serve.dev(this.opts());
81
81
  });
82
82
 
@@ -89,7 +89,7 @@ program
89
89
  .option('--config <folder>', 'config file', './electron/config/bin.js')
90
90
  .option('--cmds <flag>', 'custom commands')
91
91
  .action(function() {
92
- const serve = require('./tools/serve');
92
+ const serve = require('./tools/serve.cjs');
93
93
  serve.build(this.opts());
94
94
  });
95
95
 
@@ -101,7 +101,7 @@ program
101
101
  .description('preview effect')
102
102
  .option('--config <folder>', 'config file', './electron/config/bin.js')
103
103
  .action(function() {
104
- const serve = require('./tools/serve');
104
+ const serve = require('./tools/serve.cjs');
105
105
  serve.start(this.opts());
106
106
  });
107
107
 
@@ -116,7 +116,7 @@ program
116
116
  .option('--cmds <flag>', 'custom commands')
117
117
  .action(function() {
118
118
  // command 选项是关键字,不再使用,改为 cmds
119
- const serve = require('./tools/serve');
119
+ const serve = require('./tools/serve.cjs');
120
120
  serve.exec(this.opts());
121
121
  });
122
122
 
@@ -130,7 +130,7 @@ program
130
130
  .option('--asar-file <file>', 'asar file path')
131
131
  .option('--platform <flag>', 'platform')
132
132
  .action(function() {
133
- const updater = require('./tools/incrUpdater');
133
+ const updater = require('./tools/incrUpdater.cjs');
134
134
  updater.run(this.opts());
135
135
  });
136
136
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "ee-bin",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "ee bin",
5
- "main": "index.cjs",
5
+ "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
package/tools/encrypt.cjs CHANGED
@@ -9,7 +9,7 @@ const crypto = require('crypto');
9
9
  const JavaScriptObfuscator = require('javascript-obfuscator');
10
10
  const globby = require('globby');
11
11
  const chalk = require('chalk');
12
- const Utils = require('../lib/utils');
12
+ const Utils = require('../lib/utils.cjs');
13
13
 
14
14
  class Encrypt {
15
15
  constructor(options = {}) {
@@ -4,7 +4,7 @@ const path = require('path');
4
4
  const fs = require('fs');
5
5
  const crypto = require('crypto')
6
6
  const chalk = require('chalk');
7
- const Utils = require('../lib/utils');
7
+ const Utils = require('../lib/utils.cjs');
8
8
  const admZip = require('adm-zip')
9
9
 
10
10
  /**
package/tools/move.cjs CHANGED
@@ -4,7 +4,7 @@ const path = require('path');
4
4
  const fs = require('fs');
5
5
  const fsPro = require('fs-extra');
6
6
  const chalk = require('chalk');
7
- const Utils = require('../lib/utils');
7
+ const Utils = require('../lib/utils.cjs');
8
8
 
9
9
  /**
10
10
  * 移动资源
@@ -4,7 +4,7 @@ const path = require('path');
4
4
  const fs = require('fs');
5
5
  const fsPro = require('fs-extra');
6
6
  const chalk = require('chalk');
7
- const Utils = require('../lib/utils');
7
+ const Utils = require('../lib/utils.cjs');
8
8
 
9
9
  /**
10
10
  * 资源替换
package/tools/serve.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const path = require('path');
4
- const Utils = require('../lib/utils');
4
+ const Utils = require('../lib/utils.cjs');
5
5
  const is = require('is-type-of');
6
6
  const chalk = require('chalk');
7
7
  const crossSpawn = require('cross-spawn');