@meadmin/cli 1.0.3 → 1.1.0

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.
@@ -6,11 +6,11 @@ export const syncInit = (program) => {
6
6
  program
7
7
  .command('sync')
8
8
  .description('同步数据库结构')
9
- .argument('<file>', '需要同步的entity文件地址支持,隔开的多文件或glob,文件地址相对于项目dist/entities')
9
+ .argument('<file>', '需要同步的entity文件地址支持,隔开的多文件或glob,文件地址相对于项目dist/entities')
10
10
  .option('-d, --dbConfig <char>', '数据库配置文件地址默认为当前目录下dist/config/database.js', join(process.cwd(), 'dist/config/database.js'))
11
11
  .option('-n, --name <char>', '使用的数据库配置defaultDataSourceName')
12
12
  .action(async (file, options) => {
13
- const files = file.split(' ');
13
+ const files = file.split(',');
14
14
  files.push('./abstract/*');
15
15
  const config = Object.assign(await getConfig(options.dbConfig, options.name), {
16
16
  logging: (message) => Log.log(message),
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,16 +1,12 @@
1
1
  {
2
2
  "name": "@meadmin/cli",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "meadmin cli",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
8
8
  "meadmin": "dist/index.js"
9
9
  },
10
- "scripts": {
11
- "test": "echo \"Error: no test specified\" && exit 1",
12
- "build": "rimraf dist && tsc --build"
13
- },
14
10
  "files": [
15
11
  "dist/**/*.js",
16
12
  "dist/**/*.d.ts",
@@ -52,5 +48,9 @@
52
48
  },
53
49
  "engines": {
54
50
  "node": ">=20.13.1"
51
+ },
52
+ "scripts": {
53
+ "test": "echo \"Error: no test specified\" && exit 1",
54
+ "build": "rimraf dist && tsc --build"
55
55
  }
56
- }
56
+ }