create-aomex 0.0.24 → 0.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-aomex",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "repository": "git@github.com:aomex/create-aomex.git",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,26 +31,26 @@
31
31
  "bin": "dist/index.js",
32
32
  "packageManager": "pnpm@9.4.0",
33
33
  "dependencies": {
34
- "@aomex/console": "^3.2.4",
35
- "@aomex/core": "^3.2.4",
34
+ "@aomex/console": "^3.3.0",
35
+ "@aomex/core": "^3.3.0",
36
36
  "@inquirer/prompts": "^6.0.1",
37
37
  "lodash.kebabcase": "^4.1.1",
38
38
  "yargs-parser": "^21.1.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@aomex/async-trace": "^3.2.4",
42
- "@aomex/cache": "^3.2.4",
43
- "@aomex/cache-redis-adapter": "^3.2.4",
44
- "@aomex/compress": "^3.2.4",
45
- "@aomex/cors": "^3.2.4",
46
- "@aomex/cron": "^3.2.4",
47
- "@aomex/etag": "^3.2.4",
48
- "@aomex/helmet": "^3.2.4",
49
- "@aomex/http-logger": "^3.2.4",
50
- "@aomex/openapi": "^3.2.4",
51
- "@aomex/response-time": "^3.2.4",
52
- "@aomex/swagger-ui": "^3.2.4",
53
- "@aomex/web": "^3.2.4",
41
+ "@aomex/async-trace": "^3.3.0",
42
+ "@aomex/cache": "^3.3.0",
43
+ "@aomex/cache-redis-adapter": "^3.3.0",
44
+ "@aomex/compress": "^3.3.0",
45
+ "@aomex/cors": "^3.3.0",
46
+ "@aomex/cron": "^3.3.0",
47
+ "@aomex/etag": "^3.3.0",
48
+ "@aomex/helmet": "^3.3.0",
49
+ "@aomex/http-logger": "^3.3.0",
50
+ "@aomex/openapi": "^3.3.0",
51
+ "@aomex/response-time": "^3.3.0",
52
+ "@aomex/swagger-ui": "^3.3.0",
53
+ "@aomex/web": "^3.3.0",
54
54
  "@prisma/client": "^5.17.0",
55
55
  "@types/lodash.kebabcase": "^4.1.9",
56
56
  "@types/node": "^20.14.12",
@@ -1,12 +1,12 @@
1
1
  import { commanders, ConsoleApp } from '@aomex/console';
2
- import { cron } from '@aomex/cron';
2
+ import { crons } from '@aomex/cron';
3
3
  import { traceMiddleware } from '@aomex/async-trace';
4
4
  import { cache } from './services/cache.service';
5
5
 
6
6
  const app = new ConsoleApp({
7
7
  language: 'zh_CN',
8
8
  mount: [
9
- cron({
9
+ crons({
10
10
  commanders: './src/commanders',
11
11
  cache: cache,
12
12
  }),
@@ -1,6 +1,6 @@
1
1
  import { Commander, options } from '@aomex/console';
2
2
  import { rule } from '@aomex/core';
3
- import { schedule } from '@aomex/cron';
3
+ import { cron } from '@aomex/cron';
4
4
 
5
5
  export const commander = new Commander();
6
6
 
@@ -10,10 +10,10 @@ commander.create('schedule', {
10
10
  description: '执行 npx aomex schedule -h 可以看到我',
11
11
  },
12
12
  mount: [
13
- // schedule({
13
+ // cron({
14
14
  // second: '*/15',
15
15
  // }),
16
- schedule({
16
+ cron({
17
17
  minute: '*/2',
18
18
  args: ['--user', 'Boss'],
19
19
  }),
@@ -1,5 +1,8 @@
1
1
  import { PrismaClient } from '@prisma/client';
2
+ import * as runtime from '@prisma/client/runtime/library';
2
3
 
3
4
  export const prisma = new PrismaClient({
4
5
  log: ['info'],
5
6
  });
7
+
8
+ export type PrismaTX = Omit<PrismaClient, runtime.ITXClientDenyList>;
@@ -38,7 +38,8 @@
38
38
  "@configs/*": ["./src/configs/*"],
39
39
  "@middleware/*": ["./src/middleware/*"],
40
40
  "@services": ["./src/services/index.ts"],
41
- "@services/*": ["./src/services/*"]
41
+ "@services/*": ["./src/services/*"],
42
+ "@constants/*": ["./sr/constants/*"]
42
43
  }
43
44
  }
44
45
  }