koatty_schedule 3.3.2 → 3.3.4

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koatty_schedule",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "description": "Schedule for koatty.",
5
5
  "scripts": {
6
6
  "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
@@ -12,13 +12,8 @@
12
12
  "lock": "npm i --package-lock-only",
13
13
  "prepublishOnly": "npm test && npm run build && git push --follow-tags origin master",
14
14
  "prerelease": "npm test && npm run build",
15
- "release:minor": "npm run release -- --release-as minor",
16
- "release:major": "npm run release -- --release-as major",
17
- "release": "standard-version",
18
- "release:pre": "npm run release -- --prerelease",
19
15
  "test": "npm run eslint && jest --passWithNoTests",
20
- "test:cov": "jest --collectCoverage --detectOpenHandles",
21
- "version": "conventional-changelog -p angular -i CHANGELOG.md -s"
16
+ "test:cov": "jest --collectCoverage --detectOpenHandles"
22
17
  },
23
18
  "main": "./dist/index.js",
24
19
  "exports": {
@@ -89,18 +84,18 @@
89
84
  },
90
85
  "dependencies": {
91
86
  "@sesamecare-oss/redlock": "^1.4.0",
92
- "cron": "^4.3.1",
93
- "ioredis": "^5.6.1",
94
- "koatty_container": "^1.x.x",
95
- "koatty_core": "^1.x.x",
96
- "koatty_lib": "^1.x.x",
97
- "koatty_logger": "^2.x.x",
98
- "koatty_store": "^1.x.x"
87
+ "cron": "^4.4.0",
88
+ "ioredis": "^5.9.2",
89
+ "koatty_container": "workspace:*",
90
+ "koatty_core": "workspace:*",
91
+ "koatty_lib": "workspace:*",
92
+ "koatty_logger": "workspace:*",
93
+ "koatty_store": "workspace:*"
99
94
  },
100
95
  "peerDependencies": {
101
- "koatty_container": "^1.x.x",
102
- "koatty_core": "^1.x.x",
103
- "koatty_lib": "^1.x.x",
104
- "koatty_logger": "^2.x.x"
96
+ "koatty_container": "workspace:*",
97
+ "koatty_core": "workspace:*",
98
+ "koatty_lib": "workspace:*",
99
+ "koatty_logger": "workspace:*"
105
100
  }
106
- }
101
+ }
package/package.json CHANGED
@@ -1,25 +1,7 @@
1
1
  {
2
2
  "name": "koatty_schedule",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "description": "Schedule for koatty.",
5
- "scripts": {
6
- "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
7
- "build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
8
- "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
9
- "build:doc": "npx api-documenter markdown --input temp --output docs/api",
10
- "build:dts": "npx tsc && npx api-extractor run --local --verbose",
11
- "eslint": "eslint --ext .ts,.js ./",
12
- "lock": "npm i --package-lock-only",
13
- "prepublishOnly": "npm test && npm run build && git push --follow-tags origin master",
14
- "prerelease": "npm test && npm run build",
15
- "release:minor": "npm run release -- --release-as minor",
16
- "release:major": "npm run release -- --release-as major",
17
- "release": "standard-version",
18
- "release:pre": "npm run release -- --prerelease",
19
- "test": "npm run eslint && jest --passWithNoTests",
20
- "test:cov": "jest --collectCoverage --detectOpenHandles",
21
- "version": "conventional-changelog -p angular -i CHANGELOG.md -s"
22
- },
23
5
  "main": "./dist/index.js",
24
6
  "exports": {
25
7
  "require": "./dist/index.js",
@@ -89,18 +71,30 @@
89
71
  },
90
72
  "dependencies": {
91
73
  "@sesamecare-oss/redlock": "^1.4.0",
92
- "cron": "^4.3.1",
93
- "ioredis": "^5.6.1",
94
- "koatty_container": "^1.x.x",
95
- "koatty_core": "^1.x.x",
96
- "koatty_lib": "^1.x.x",
97
- "koatty_logger": "^2.x.x",
98
- "koatty_store": "^1.x.x"
74
+ "cron": "^4.4.0",
75
+ "ioredis": "^5.9.2",
76
+ "koatty_container": "1.18.0",
77
+ "koatty_core": "2.0.8-0",
78
+ "koatty_logger": "2.8.1",
79
+ "koatty_lib": "1.4.3",
80
+ "koatty_store": "1.9.0"
99
81
  },
100
82
  "peerDependencies": {
101
- "koatty_container": "^1.x.x",
102
- "koatty_core": "^1.x.x",
103
- "koatty_lib": "^1.x.x",
104
- "koatty_logger": "^2.x.x"
83
+ "koatty_lib": "1.4.3",
84
+ "koatty_core": "2.0.8-0",
85
+ "koatty_container": "1.18.0",
86
+ "koatty_logger": "2.8.1"
87
+ },
88
+ "scripts": {
89
+ "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
90
+ "build:cp": "node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/",
91
+ "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
92
+ "build:doc": "npx api-documenter markdown --input temp --output docs/api",
93
+ "build:dts": "npx tsc && npx api-extractor run --local --verbose",
94
+ "eslint": "eslint --ext .ts,.js ./",
95
+ "lock": "npm i --package-lock-only",
96
+ "prerelease": "npm test && npm run build",
97
+ "test": "npm run eslint && jest --passWithNoTests",
98
+ "test:cov": "jest --collectCoverage --detectOpenHandles"
105
99
  }
106
- }
100
+ }
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var commonjs = require('@rollup/plugin-commonjs');
6
+ var json = require('@rollup/plugin-json');
7
+ var resolve = require('@rollup/plugin-node-resolve');
8
+ var module$1 = require('module');
9
+ var del = require('rollup-plugin-delete');
10
+ var typescript = require('rollup-plugin-typescript2');
11
+
12
+ /*
13
+ * @Description:
14
+ * @Usage:
15
+ * @Author: richen
16
+ * @Date: 2021-12-17 10:20:44
17
+ * @LastEditTime: 2024-11-04 22:04:45
18
+ */
19
+ // import babel from '@rollup/plugin-babel';
20
+ const pkg = require('./package.json');
21
+
22
+ var _rollup_config = [
23
+ {
24
+ input: './src/index.ts',
25
+ output: [
26
+ {
27
+ format: 'cjs',
28
+ file: './dist/index.js',
29
+ banner: require('./scripts/copyright'),
30
+ },
31
+ {
32
+ format: 'es',
33
+ file: './dist/index.mjs',
34
+ banner: require('./scripts/copyright'),
35
+ },
36
+ ],
37
+ plugins: [
38
+ del({ targets: ["dist/*", "temp/*", "docs/api"] }),
39
+ // babel({
40
+ // babelHelpers: "runtime",
41
+ // configFile: './babel.config.js',
42
+ // exclude: 'node_modules/**',
43
+ // }),
44
+ json(),
45
+ resolve({
46
+ preferBuiltins: true, // 优先选择内置模块
47
+ }),
48
+ commonjs(),
49
+ typescript({
50
+ tsconfigOverride: {
51
+ compilerOptions: {
52
+ declaration: false,
53
+ declarationMap: false,
54
+ module: "ESNext"
55
+ }
56
+ }
57
+ })
58
+ ],
59
+ external: [
60
+ ...module$1.builtinModules, // 排除 Node.js 内置模块
61
+ ...Object.keys(pkg.dependencies || {}), // 排除 package.json 中的外部依赖
62
+ ],
63
+ },
64
+
65
+ ];
66
+
67
+ exports.default = _rollup_config;