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 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 src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  defineApp: () => defineApp
24
24
  });
25
- module.exports = __toCommonJS(src_exports);
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
- "name": "pm2-ecosystem",
3
- "description": "Type PM2 configuration files. Use JSDoc or the define-app function.",
4
- "version": "5.4.3",
5
- "type": "module",
6
- "scripts": {
7
- "bump": "node index",
8
- "prepublishOnly": "tsup && publint",
9
- "postversion": "git push && git push --tags"
10
- },
11
- "devDependencies": {
12
- "@types/node": "^22.9.0",
13
- "publint": "^0.2.12",
14
- "tsup": "^8.3.5",
15
- "typescript": "^5.6.3"
16
- },
17
- "exports": {
18
- ".": {
19
- "require": "./dist/index.cjs",
20
- "import": "./dist/index.js"
21
- }
22
- },
23
- "main": "./dist/index.cjs",
24
- "module": "./dist/index.js",
25
- "types": "./dist/index.d.ts",
26
- "files": [
27
- "dist"
28
- ],
29
- "author": "Hyunbin Seo",
30
- "license": "AGPL-3.0",
31
- "repository": {
32
- "type": "git",
33
- "url": "git+https://github.com/hyunbinseo/pm2-ecosystem.git"
34
- },
35
- "bugs": {
36
- "url": "https://github.com/hyunbinseo/pm2-ecosystem/issues"
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
+ }