pm2-ecosystem 5.4.3 → 6.0.10
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/index.cjs +3 -3
- package/dist/index.d.cts +59 -0
- package/dist/index.d.ts +59 -0
- package/package.json +36 -39
package/dist/index.cjs
CHANGED
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
defineApp: () => defineApp
|
|
24
24
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
26
|
var defineApp = (options) => options;
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -142,6 +142,65 @@ interface StartOptions {
|
|
|
142
142
|
* @example 'staging'
|
|
143
143
|
*/
|
|
144
144
|
namespace?: string;
|
|
145
|
+
/**
|
|
146
|
+
* (Default: false) Exponential backoff restart delay in milliseconds.
|
|
147
|
+
* When enabled, PM2 will progressively increase restart delays after failures.
|
|
148
|
+
*/
|
|
149
|
+
exp_backoff_restart_delay?: number;
|
|
150
|
+
/**
|
|
151
|
+
* Timeout for application to be ready after reload (in milliseconds).
|
|
152
|
+
*/
|
|
153
|
+
listen_timeout?: number;
|
|
154
|
+
/**
|
|
155
|
+
* (Default: false) If true, shutdown the process using process.send('shutdown') instead of process.kill().
|
|
156
|
+
*/
|
|
157
|
+
shutdown_with_message?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Environment variable name that gets incremented for each cluster instance.
|
|
160
|
+
*/
|
|
161
|
+
increment_var?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Name of the environment variable holding the instance ID.
|
|
164
|
+
* @default 'NODE_APP_INSTANCE'
|
|
165
|
+
*/
|
|
166
|
+
instance_var?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Filter out specific environment variables from the process.
|
|
169
|
+
* Can be true to filter all, or array/string of specific variables.
|
|
170
|
+
*/
|
|
171
|
+
filter_env?: boolean | string | string[];
|
|
172
|
+
/**
|
|
173
|
+
* (Default: false) Disable logs output.
|
|
174
|
+
*/
|
|
175
|
+
disable_logs?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Log output type.
|
|
178
|
+
*/
|
|
179
|
+
log_type?: string;
|
|
180
|
+
/**
|
|
181
|
+
* (Default: false) Enable container mode.
|
|
182
|
+
*/
|
|
183
|
+
container?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* (Default: false) Distribution mode for Docker.
|
|
186
|
+
*/
|
|
187
|
+
dist?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Docker image name.
|
|
190
|
+
*/
|
|
191
|
+
image_name?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Node.js version for Docker container.
|
|
194
|
+
*/
|
|
195
|
+
node_version?: string;
|
|
196
|
+
/**
|
|
197
|
+
* (Default: false) Fresh install for Docker.
|
|
198
|
+
*/
|
|
199
|
+
fresh?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* (Default: false) Docker daemon mode.
|
|
202
|
+
*/
|
|
203
|
+
dockerdaemon?: boolean;
|
|
145
204
|
}
|
|
146
205
|
declare const defineApp: (options: StartOptions) => StartOptions;
|
|
147
206
|
|
package/dist/index.d.ts
CHANGED
|
@@ -142,6 +142,65 @@ interface StartOptions {
|
|
|
142
142
|
* @example 'staging'
|
|
143
143
|
*/
|
|
144
144
|
namespace?: string;
|
|
145
|
+
/**
|
|
146
|
+
* (Default: false) Exponential backoff restart delay in milliseconds.
|
|
147
|
+
* When enabled, PM2 will progressively increase restart delays after failures.
|
|
148
|
+
*/
|
|
149
|
+
exp_backoff_restart_delay?: number;
|
|
150
|
+
/**
|
|
151
|
+
* Timeout for application to be ready after reload (in milliseconds).
|
|
152
|
+
*/
|
|
153
|
+
listen_timeout?: number;
|
|
154
|
+
/**
|
|
155
|
+
* (Default: false) If true, shutdown the process using process.send('shutdown') instead of process.kill().
|
|
156
|
+
*/
|
|
157
|
+
shutdown_with_message?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Environment variable name that gets incremented for each cluster instance.
|
|
160
|
+
*/
|
|
161
|
+
increment_var?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Name of the environment variable holding the instance ID.
|
|
164
|
+
* @default 'NODE_APP_INSTANCE'
|
|
165
|
+
*/
|
|
166
|
+
instance_var?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Filter out specific environment variables from the process.
|
|
169
|
+
* Can be true to filter all, or array/string of specific variables.
|
|
170
|
+
*/
|
|
171
|
+
filter_env?: boolean | string | string[];
|
|
172
|
+
/**
|
|
173
|
+
* (Default: false) Disable logs output.
|
|
174
|
+
*/
|
|
175
|
+
disable_logs?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Log output type.
|
|
178
|
+
*/
|
|
179
|
+
log_type?: string;
|
|
180
|
+
/**
|
|
181
|
+
* (Default: false) Enable container mode.
|
|
182
|
+
*/
|
|
183
|
+
container?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* (Default: false) Distribution mode for Docker.
|
|
186
|
+
*/
|
|
187
|
+
dist?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Docker image name.
|
|
190
|
+
*/
|
|
191
|
+
image_name?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Node.js version for Docker container.
|
|
194
|
+
*/
|
|
195
|
+
node_version?: string;
|
|
196
|
+
/**
|
|
197
|
+
* (Default: false) Fresh install for Docker.
|
|
198
|
+
*/
|
|
199
|
+
fresh?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* (Default: false) Docker daemon mode.
|
|
202
|
+
*/
|
|
203
|
+
dockerdaemon?: boolean;
|
|
145
204
|
}
|
|
146
205
|
declare const defineApp: (options: StartOptions) => StartOptions;
|
|
147
206
|
|
package/package.json
CHANGED
|
@@ -1,40 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"homepage": "https://github.com/hyunbinseo/pm2-ecosystem#readme",
|
|
39
|
-
"packageManager": "pnpm@9.13.0+sha512.beb9e2a803db336c10c9af682b58ad7181ca0fbd0d4119f2b33d5f2582e96d6c0d93c85b23869295b765170fbdaa92890c0da6ada457415039769edf3c959efe"
|
|
40
|
-
}
|
|
2
|
+
"name": "pm2-ecosystem",
|
|
3
|
+
"description": "Type PM2 configuration files. Use JSDoc or the define-app function.",
|
|
4
|
+
"version": "6.0.10",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@types/node": "^24.3.0",
|
|
8
|
+
"prettier": "^3.6.2",
|
|
9
|
+
"publint": "^0.3.12",
|
|
10
|
+
"simple-git": "^3.28.0",
|
|
11
|
+
"tsup": "^8.5.0",
|
|
12
|
+
"typescript": "^5.9.2"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"require": "./dist/index.cjs",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"main": "./dist/index.cjs",
|
|
21
|
+
"module": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"author": "Hyunbin Seo",
|
|
27
|
+
"license": "AGPL-3.0",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/hyunbinseo/pm2-ecosystem.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/hyunbinseo/pm2-ecosystem/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/hyunbinseo/pm2-ecosystem#readme",
|
|
36
|
+
"scripts": {}
|
|
37
|
+
}
|