kn-cli 1.0.105 → 1.0.107

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.
@@ -372,7 +372,8 @@ const plugins= [
372
372
  MOCK: process.env.mock == 1 ? '1' : false, //JSON.stringify(process.env.mock)
373
373
  ...API_HOST,
374
374
  PM_TYPE: JSON.stringify(process.env.pm_type),
375
- APP_VERSION:JSON.stringify(appVersion)
375
+ APP_VERSION:JSON.stringify(appVersion),
376
+ SITE_NAME:JSON.stringify(CLI_CONFIG.name),
376
377
  }),
377
378
  ];
378
379
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.105",
3
+ "version": "1.0.107",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/build.js CHANGED
@@ -282,16 +282,18 @@ module.exports= async (options={})=> {
282
282
 
283
283
  _link_node_modules_from = TransformWindowsPath(_link_node_modules_from);
284
284
  _link_node_modules_to = TransformWindowsPath(_link_node_modules_to);
285
- console.log(chalk.green.bold('_link_node_modules_to:'+_link_node_modules_to));
286
- console.log(chalk.green.bold('_link_node_modules_from:'+_link_node_modules_from));
285
+ // console.log(chalk.green.bold('_link_node_modules_to:'+_link_node_modules_to));
286
+ // console.log(chalk.green.bold('_link_node_modules_from:'+_link_node_modules_from));
287
287
  let _link_node_modules=`ln -s ${_link_node_modules_from} ${_link_node_modules_to}`;
288
288
  if (IS_WINDOWS()) {
289
289
  _link_node_modules=`mklink /D ${_link_node_modules_to} ${_link_node_modules_from} `;
290
+ task.output='请单独使用管理员身份执行:'+_link_node_modules
291
+ resolve();
292
+ return;
290
293
  }else{
291
294
  _link_node_modules=`ln -s ${_link_node_modules_from} ${_link_node_modules_to}`;
292
295
  }
293
296
  task.output='执行link:'+_link_node_modules
294
- console.log(chalk.green.bold('执行_link_node_modules:'+_link_node_modules));
295
297
  let req= shelljs.exec(_link_node_modules);
296
298
  if(req.code!=0){
297
299
  console.log(chalk.red.bold('执行link异常:'+req.stdout));
@@ -11,7 +11,7 @@
11
11
  "antd": "~4.24.8",
12
12
  "axios": "~1.1.3",
13
13
  "jszip": "~3.10.1",
14
- "kn-hooks": "~0.0.33",
14
+ "kn-hooks": "~0.0.35",
15
15
  "moment": "~2.29.4",
16
16
  "react": "~17.0.2",
17
17
  "react-dom": "~17.0.2",
@@ -0,0 +1 @@
1
+ declare module '*.less';