@k3000/s1 0.2.1 → 0.2.6

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/admin/index.mjs CHANGED
@@ -14,6 +14,6 @@ app.use(bodyParser.urlencoded({extended: true}));
14
14
 
15
15
  const prevDir = process.cwd()
16
16
 
17
- app.load(resolve(`${prevDir}/admin/monitor`))
18
- app.load(resolve(`${prevDir}/admin/system`))
19
- app.load(resolve(`${prevDir}/admin/tool`))
17
+ app.load(resolve(`${prevDir}/admin/monitor`), 'admin')
18
+ app.load(resolve(`${prevDir}/admin/system`), 'admin')
19
+ app.load(resolve(`${prevDir}/admin/tool`), 'admin')
package/build.mjs CHANGED
@@ -2,6 +2,8 @@ import {build} from '@k3000/build'
2
2
  import {copyDir} from "./common/tools.mjs";
3
3
  import {existsSync, mkdirSync} from 'node:fs'
4
4
 
5
+ if (!existsSync('bin')) mkdirSync('bin')
6
+
5
7
  build('admin', 'bin/admin') // 打包
6
8
  build('jwt', 'bin/jwt') // 打包
7
9
  build('proxy', 'bin/proxy') // 打包
@@ -10,8 +12,7 @@ build('store1', {
10
12
  except: ['store1/store']
11
13
  }) // 打包
12
14
 
13
- if (!existsSync('bin')) mkdirSync('bin')
14
-
15
15
  copyDir('common', 'bin/common')
16
16
  copyDir('static', 'bin/static')
17
- copyDir('package.json', 'bin')
17
+ copyDir('package.bin.json', 'bin/package.json')
18
+ copyDir('store1/store', 'bin/store')
@@ -5,11 +5,11 @@
5
5
  "proxy": "node proxy/index.mjs",
6
6
  "jwt": "node jwt/index.mjs",
7
7
  "app": "node app/index.mjs",
8
- "build": "node build.mjs"
8
+ "build": "node --experimental-vm-modules build.mjs"
9
9
  },
10
10
  "dependencies": {
11
- "@k3000/build": "^0.1.2",
12
- "@k3000/express": "^0.1.1",
11
+ "@k3000/build": "^0.1.7",
12
+ "@k3000/express": "^0.1.4",
13
13
  "@k3000/info": "^0.1.0",
14
14
  "@k3000/mysql": "^0.1.0",
15
15
  "@k3000/proxy": "^0.2.0",
@@ -0,0 +1,25 @@
1
+ {
2
+ "scripts": {
3
+ "admin": "node --experimental-vm-modules admin.mjs",
4
+ "store1": "node --experimental-vm-modules store1.mjs",
5
+ "proxy": "node --experimental-vm-modules proxy.mjs",
6
+ "jwt": "node --experimental-vm-modules jwt.mjs"
7
+ },
8
+ "dependencies": {
9
+ "@k3000/build": "^0.1.2",
10
+ "@k3000/express": "^0.1.1",
11
+ "@k3000/info": "^0.1.0",
12
+ "@k3000/mysql": "^0.1.0",
13
+ "@k3000/proxy": "^0.2.0",
14
+ "@k3000/server": "^1.0.5",
15
+ "@k3000/store": "^0.1.0",
16
+ "@k3000/tools": "^0.1.1",
17
+ "archiver": "^7.0.1",
18
+ "body-parser": "^1.20.3",
19
+ "exceljs": "^4.4.0",
20
+ "express-fileupload": "^1.5.1",
21
+ "mysql2": "^3.11.4",
22
+ "ssh2": "^1.16.0",
23
+ "svg-captcha": "^1.4.0"
24
+ }
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/s1",
3
- "version": "0.2.1",
3
+ "version": "0.2.6",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "sync": "npm link",