@fgv/ts-res-browser-cli 5.0.0-3 → 5.0.0-30

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.
Files changed (38) hide show
  1. package/README.md +35 -11
  2. package/eslint.config.js +16 -0
  3. package/lib/cli.d.ts +0 -4
  4. package/lib/cli.js +8 -17
  5. package/lib/index.d.ts +1 -1
  6. package/lib/index.js +1 -1
  7. package/lib/options.d.ts +16 -0
  8. package/lib/simpleBrowserLauncher.d.ts +32 -0
  9. package/lib/{browserLauncher.js → simpleBrowserLauncher.js} +53 -162
  10. package/lib/zipArchiver.d.ts +5 -17
  11. package/lib/zipArchiver.js +11 -72
  12. package/package.json +13 -13
  13. package/.rush/temp/6fdce6325ccacda5ae840a289f20e286e54e4f4b.tar.log +0 -32
  14. package/.rush/temp/chunked-rush-logs/ts-res-browser-cli.build.chunks.jsonl +0 -5
  15. package/.rush/temp/operation/build/all.log +0 -5
  16. package/.rush/temp/operation/build/log-chunks.jsonl +0 -5
  17. package/.rush/temp/operation/build/state.json +0 -3
  18. package/.rush/temp/shrinkwrap-deps.json +0 -651
  19. package/config/rig.json +0 -16
  20. package/lib/browserLauncher.d.ts +0 -57
  21. package/lib/browserLauncher.d.ts.map +0 -1
  22. package/lib/browserLauncher.js.map +0 -1
  23. package/lib/cli.d.ts.map +0 -1
  24. package/lib/cli.js.map +0 -1
  25. package/lib/index.d.ts.map +0 -1
  26. package/lib/index.js.map +0 -1
  27. package/lib/options.d.ts.map +0 -1
  28. package/lib/options.js.map +0 -1
  29. package/lib/zipArchiver.d.ts.map +0 -1
  30. package/lib/zipArchiver.js.map +0 -1
  31. package/rush-logs/ts-res-browser-cli.build.cache.log +0 -3
  32. package/rush-logs/ts-res-browser-cli.build.log +0 -5
  33. package/src/browserLauncher.ts +0 -406
  34. package/src/cli.ts +0 -423
  35. package/src/index.ts +0 -26
  36. package/src/options.ts +0 -133
  37. package/src/zipArchiver.ts +0 -153
  38. package/tsconfig.json +0 -7
package/README.md CHANGED
@@ -17,19 +17,28 @@ Command-line interface to launch ts-res-browser with specified resources and con
17
17
  npm install -g @fgv/ts-res-browser-cli
18
18
  ```
19
19
 
20
+ Or use directly with npx (no installation required):
21
+
22
+ ```bash
23
+ npx @fgv/ts-res-browser-cli --help
24
+ ```
25
+
20
26
  ## Usage
21
27
 
22
28
  ### Basic Usage
23
29
 
24
30
  ```bash
25
31
  # Launch browser with resources from a directory
26
- ts-res-browser-cli browse --input ./resources --config default
32
+ ts-res-browser-cli browse --input ./resources --config default --serve
33
+
34
+ # With npx (no installation required)
35
+ npx @fgv/ts-res-browser-cli --input ./resources --config default --serve
27
36
 
28
37
  # Launch with a specific configuration file
29
- ts-res-browser-cli browse --input ./my-resources --config ./config.json
38
+ ts-res-browser-cli browse --input ./my-resources --config ./config.json --serve
30
39
 
31
40
  # Create ZIP and launch without opening browser automatically
32
- ts-res-browser-cli browse --input ./resources --config extended-example --no-open
41
+ ts-res-browser-cli browse --input ./resources --config extended-example --serve --no-open
33
42
  ```
34
43
 
35
44
  ### ZIP Workflow
@@ -42,19 +51,33 @@ The CLI automatically creates ZIP archives containing your resources and configu
42
51
 
43
52
  ```bash
44
53
  # Creates: ~/Downloads/ts-res-bundle-[timestamp].zip
45
- ts-res-browser-cli browse --input ./resources --config my-config
54
+ ts-res-browser-cli browse --input ./resources --config my-config --serve
46
55
  ```
47
56
 
48
- ### Development Server
57
+ ### Server Options
58
+
59
+ The CLI provides several ways to launch the browser with a server:
49
60
 
50
61
  ```bash
51
- # Automatically start development server locally
62
+ # Recommended: Universal server start (works everywhere)
63
+ ts-res-browser-cli browse --input ./resources --serve
64
+
65
+ # Development server (monorepo environment only)
52
66
  ts-res-browser-cli browse --input ./resources --dev
53
67
 
54
- # Use existing server at custom URL
68
+ # Connect to existing server
55
69
  ts-res-browser-cli browse --input ./resources --url http://localhost:3001
56
70
  ```
57
71
 
72
+ **Server Flag Behavior:**
73
+ - `--serve`: Works in both monorepo and published packages
74
+ - **Monorepo**: Starts webpack dev server with hot reloading (port 3000)
75
+ - **Published packages**: Starts static file server (port 8080)
76
+ - `--dev`: Development server with hot reloading (monorepo only)
77
+ - **Monorepo**: Same as `--serve`
78
+ - **Published packages**: Shows error with instructions to use `--serve`
79
+ - `--url`: Connect to existing server at specified URL
80
+
58
81
  ### Advanced Options
59
82
 
60
83
  ```bash
@@ -64,8 +87,8 @@ ts-res-browser-cli browse \
64
87
  --context-filter "language=en-US|territory=US" \
65
88
  --reduce-qualifiers
66
89
 
67
- # Interactive mode with sample data
68
- ts-res-browser-cli browse --interactive
90
+ # Interactive mode with sample data (requires server)
91
+ ts-res-browser-cli browse --interactive --serve
69
92
 
70
93
  # Verbose output
71
94
  ts-res-browser-cli browse --input ./resources --verbose
@@ -89,8 +112,9 @@ Launch ts-res-browser with specified resources and configuration.
89
112
  - `-p, --port <number>`: Port for local browser instance
90
113
  - `--url <url>`: URL of remote browser instance
91
114
  - `--no-open`: Do not open browser automatically
92
- - `--interactive`: Launch in interactive mode with sample data
93
- - `--dev`: Automatically start development server locally
115
+ - `--interactive`: Launch in interactive mode with sample data (requires --serve, --dev, or --url)
116
+ - `--serve`: Start server (dev in monorepo, serve in published packages) and connect automatically
117
+ - `--dev`: Start development server locally (monorepo only)
94
118
  - `-v, --verbose`: Verbose output
95
119
  - `-q, --quiet`: Quiet output
96
120
 
@@ -0,0 +1,16 @@
1
+ // ESLint 9 flat config
2
+ const nodeProfile = require('@rushstack/eslint-config/flat/profile/node');
3
+ const packletsPlugin = require('@rushstack/eslint-config/flat/mixins/packlets');
4
+ const tsdocPlugin = require('@rushstack/eslint-config/flat/mixins/tsdoc');
5
+
6
+ module.exports = [
7
+ ...nodeProfile,
8
+ packletsPlugin,
9
+ ...tsdocPlugin,
10
+ {
11
+ // Override specific rules if needed
12
+ rules: {
13
+ '@rushstack/packlets/mechanics': 'warn'
14
+ }
15
+ }
16
+ ];
package/lib/cli.d.ts CHANGED
@@ -29,9 +29,5 @@ export declare class TsResBrowserCliApp {
29
29
  * Parses and validates browse options
30
30
  */
31
31
  private _parseBrowseOptions;
32
- /**
33
- * Sets up graceful shutdown handling
34
- */
35
- private _setupGracefulShutdown;
36
32
  }
37
33
  //# sourceMappingURL=cli.d.ts.map
package/lib/cli.js CHANGED
@@ -60,16 +60,15 @@ const ts_utils_1 = require("@fgv/ts-utils");
60
60
  const TsRes = __importStar(require("@fgv/ts-res"));
61
61
  const fs_1 = require("fs");
62
62
  const path = __importStar(require("path"));
63
- const browserLauncher_1 = require("./browserLauncher");
63
+ const simpleBrowserLauncher_1 = require("./simpleBrowserLauncher");
64
64
  /**
65
65
  * Main CLI class for ts-res-browser-cli
66
66
  */
67
67
  class TsResBrowserCliApp {
68
68
  constructor() {
69
69
  this._program = new commander_1.Command();
70
- this._launcher = new browserLauncher_1.BrowserLauncher();
70
+ this._launcher = new simpleBrowserLauncher_1.SimpleBrowserLauncher();
71
71
  this._setupCommands();
72
- this._setupGracefulShutdown();
73
72
  }
74
73
  /**
75
74
  * Runs the CLI with the provided arguments
@@ -102,6 +101,7 @@ class TsResBrowserCliApp {
102
101
  .option('--no-open', 'Do not open browser automatically')
103
102
  .option('--interactive', 'Launch in interactive mode with sample data', false)
104
103
  .option('--dev', 'Automatically start development server locally', false)
104
+ .option('--serve', 'Start server (dev in monorepo, serve in published packages) and connect automatically', false)
105
105
  .action(async (options) => {
106
106
  // If no options provided, show help
107
107
  if (!this._hasOptions(options)) {
@@ -130,6 +130,7 @@ class TsResBrowserCliApp {
130
130
  .option('--no-open', 'Do not open browser automatically')
131
131
  .option('--interactive', 'Launch in interactive mode with sample data', false)
132
132
  .option('--dev', 'Automatically start development server locally', false)
133
+ .option('--serve', 'Start server (dev in monorepo, serve in published packages) and connect automatically', false)
133
134
  .action(async (options) => {
134
135
  await this._handleBrowseCommand(options);
135
136
  });
@@ -161,7 +162,8 @@ class TsResBrowserCliApp {
161
162
  options.reduceQualifiers ||
162
163
  options.interactive ||
163
164
  options.url ||
164
- options.dev);
165
+ options.dev ||
166
+ options.serve);
165
167
  }
166
168
  /**
167
169
  * Handles the browse command
@@ -348,7 +350,8 @@ class TsResBrowserCliApp {
348
350
  url: options.url,
349
351
  open: options.open,
350
352
  interactive: options.interactive || false,
351
- dev: options.dev || false
353
+ dev: options.dev || false,
354
+ serve: options.serve || false
352
355
  };
353
356
  return (0, ts_utils_1.succeed)(browseOptions);
354
357
  }
@@ -356,18 +359,6 @@ class TsResBrowserCliApp {
356
359
  return (0, ts_utils_1.fail)(`Failed to parse options: ${error}`);
357
360
  }
358
361
  }
359
- /**
360
- * Sets up graceful shutdown handling
361
- */
362
- _setupGracefulShutdown() {
363
- const shutdown = (signal) => {
364
- console.log(`\nReceived ${signal}, shutting down gracefully...`);
365
- this._launcher.shutdown();
366
- process.exit(0);
367
- };
368
- process.on('SIGINT', () => shutdown('SIGINT'));
369
- process.on('SIGTERM', () => shutdown('SIGTERM'));
370
- }
371
362
  }
372
363
  exports.TsResBrowserCliApp = TsResBrowserCliApp;
373
364
  //# sourceMappingURL=cli.js.map
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './cli';
2
2
  export * from './options';
3
- export * from './browserLauncher';
3
+ export * from './simpleBrowserLauncher';
4
4
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -38,5 +38,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
38
38
  // Export main components
39
39
  __exportStar(require("./cli"), exports);
40
40
  __exportStar(require("./options"), exports);
41
- __exportStar(require("./browserLauncher"), exports);
41
+ __exportStar(require("./simpleBrowserLauncher"), exports);
42
42
  //# sourceMappingURL=index.js.map
package/lib/options.d.ts CHANGED
@@ -59,6 +59,10 @@ export interface IBrowseOptions {
59
59
  * Whether to automatically start the development server
60
60
  */
61
61
  dev?: boolean;
62
+ /**
63
+ * Whether to start server (dev in monorepo, serve in published packages) and connect automatically
64
+ */
65
+ serve?: boolean;
62
66
  /**
63
67
  * Whether to use ZIP loading mode (internal flag)
64
68
  */
@@ -91,5 +95,17 @@ export interface IBrowseCommandOptions {
91
95
  interactive?: boolean;
92
96
  url?: string;
93
97
  dev?: boolean;
98
+ serve?: boolean;
99
+ }
100
+ /**
101
+ * Command-line options for the config command
102
+ */
103
+ export interface IConfigCommandOptions {
104
+ name?: string;
105
+ output?: string;
106
+ validate?: string;
107
+ normalize?: string;
108
+ qualifierDefaults?: string;
109
+ list?: boolean;
94
110
  }
95
111
  //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,32 @@
1
+ import { Result } from '@fgv/ts-utils';
2
+ import { IBrowseOptions } from './options';
3
+ /**
4
+ * Simplified browser launcher using direct dependency on ts-res-browser
5
+ */
6
+ export declare class SimpleBrowserLauncher {
7
+ /**
8
+ * Launches the browser with the specified options
9
+ */
10
+ launch(options: IBrowseOptions): Promise<Result<void>>;
11
+ /**
12
+ * Starts the server using ts-res-browser CLI directly
13
+ */
14
+ private _startServer;
15
+ /**
16
+ * Opens the browser to the specified URL
17
+ */
18
+ private _openBrowser;
19
+ /**
20
+ * Builds the URL with query parameters based on options
21
+ */
22
+ private _buildUrl;
23
+ /**
24
+ * Determines if a ZIP archive should be created based on the options
25
+ */
26
+ private _shouldCreateZip;
27
+ /**
28
+ * Creates a ZIP archive containing the input and config files
29
+ */
30
+ private _createZipArchive;
31
+ }
32
+ //# sourceMappingURL=simpleBrowserLauncher.d.ts.map
@@ -54,22 +54,28 @@ var __importStar = (this && this.__importStar) || (function () {
54
54
  };
55
55
  })();
56
56
  Object.defineProperty(exports, "__esModule", { value: true });
57
- exports.BrowserLauncher = void 0;
57
+ exports.SimpleBrowserLauncher = void 0;
58
58
  const child_process_1 = require("child_process");
59
59
  const path = __importStar(require("path"));
60
- const http = __importStar(require("http"));
61
60
  const ts_utils_1 = require("@fgv/ts-utils");
62
61
  const zipArchiver_1 = require("./zipArchiver");
63
- const fs = __importStar(require("fs"));
64
62
  /**
65
- * Manages launching the browser application with specified options
63
+ * Simplified browser launcher using direct dependency on ts-res-browser
66
64
  */
67
- class BrowserLauncher {
65
+ class SimpleBrowserLauncher {
68
66
  /**
69
67
  * Launches the browser with the specified options
70
68
  */
71
69
  async launch(options) {
72
70
  try {
71
+ // Validate options before proceeding
72
+ if (options.interactive && !options.dev && !options.serve && !options.url) {
73
+ return (0, ts_utils_1.fail)('Interactive mode requires either --dev/--serve to start a local server or --url to specify a remote server.\n\n' +
74
+ 'Examples:\n' +
75
+ ' ts-res-browser-cli --interactive --dev\n' +
76
+ ' ts-res-browser-cli --interactive --serve\n' +
77
+ ' ts-res-browser-cli --interactive --url https://example.com/ts-res-browser');
78
+ }
73
79
  // Check if we need to create a ZIP archive for file-based inputs
74
80
  let zipCreated = false;
75
81
  let finalOptions = Object.assign({}, options);
@@ -91,25 +97,15 @@ class BrowserLauncher {
91
97
  loadZip: true, zipFile: zipFileName, zipPath: zipResult.value.zipPath });
92
98
  zipCreated = true;
93
99
  }
94
- // Start development server if requested
95
- if (finalOptions.dev && !finalOptions.url) {
100
+ // Start server if requested
101
+ if ((finalOptions.dev || finalOptions.serve) && !finalOptions.url) {
96
102
  if (!finalOptions.quiet) {
97
- console.log('Starting TS-RES Browser development server...');
103
+ console.log('Starting TS-RES Browser server...');
98
104
  }
99
- const serverResult = await this._startDevServer(finalOptions);
105
+ const serverResult = await this._startServer(finalOptions);
100
106
  if (serverResult.isFailure()) {
101
107
  return serverResult;
102
108
  }
103
- // Wait for server to be ready
104
- const port = options.port || 3000;
105
- const readyResult = await this._waitForServerReady(port, options.verbose || false);
106
- if (readyResult.isFailure()) {
107
- this._stopDevServer();
108
- return readyResult;
109
- }
110
- if (!options.quiet) {
111
- console.log(`Development server started on port ${port}`);
112
- }
113
109
  }
114
110
  // Build URL with parameters
115
111
  const url = this._buildUrl(finalOptions);
@@ -151,6 +147,39 @@ class BrowserLauncher {
151
147
  return (0, ts_utils_1.fail)(`Failed to launch browser: ${error}`);
152
148
  }
153
149
  }
150
+ /**
151
+ * Starts the server using ts-res-browser CLI directly
152
+ */
153
+ async _startServer(options) {
154
+ try {
155
+ // Use ts-res-browser directly from node_modules
156
+ const browserPath = require.resolve('@fgv/ts-res-browser/cli.js');
157
+ const command = `node "${browserPath}" ${options.dev ? 'dev' : 'serve'}`;
158
+ if (options.verbose) {
159
+ console.log(`Running: ${command}`);
160
+ }
161
+ return new Promise((resolve) => {
162
+ (0, child_process_1.exec)(command, (error) => {
163
+ if (error) {
164
+ resolve((0, ts_utils_1.fail)(`Failed to start server: ${error.message}`));
165
+ }
166
+ else {
167
+ resolve((0, ts_utils_1.succeed)(undefined));
168
+ }
169
+ });
170
+ // Give server time to start, then assume success
171
+ setTimeout(() => {
172
+ if (options.verbose) {
173
+ console.log('Server startup initiated');
174
+ }
175
+ resolve((0, ts_utils_1.succeed)(undefined));
176
+ }, 2000);
177
+ });
178
+ }
179
+ catch (error) {
180
+ return (0, ts_utils_1.fail)(`Failed to start server: ${error}`);
181
+ }
182
+ }
154
183
  /**
155
184
  * Opens the browser to the specified URL
156
185
  */
@@ -174,8 +203,9 @@ class BrowserLauncher {
174
203
  * Builds the URL with query parameters based on options
175
204
  */
176
205
  _buildUrl(options) {
177
- // Use provided URL or default to localhost
178
- const baseUrl = options.url || `http://localhost:${options.port || 3000}`;
206
+ // Use provided URL or default based on server type
207
+ const defaultPort = options.dev ? 3000 : 8080;
208
+ const baseUrl = options.url || `http://localhost:${options.port || defaultPort}`;
179
209
  const params = new URLSearchParams();
180
210
  if (options.input) {
181
211
  params.set('input', options.input);
@@ -213,139 +243,6 @@ class BrowserLauncher {
213
243
  const queryString = params.toString();
214
244
  return queryString ? `${baseUrl}?${queryString}` : baseUrl;
215
245
  }
216
- /**
217
- * Starts the development server for ts-res-browser
218
- */
219
- async _startDevServer(options) {
220
- try {
221
- const port = options.port || 3000;
222
- const env = Object.assign(Object.assign({}, process.env), { PORT: port.toString() });
223
- // Detect if we're in a monorepo or using published packages
224
- const isMonorepo = this._isMonorepoEnvironment();
225
- if (isMonorepo) {
226
- // Monorepo development: use rushx from sibling project
227
- const browserProjectPath = path.resolve(__dirname, '../../ts-res-browser');
228
- if (options.verbose) {
229
- console.log(`Looking for ts-res-browser at: ${browserProjectPath}`);
230
- }
231
- this._devServer = (0, child_process_1.spawn)('rushx', ['dev'], {
232
- cwd: browserProjectPath,
233
- env,
234
- stdio: options.verbose ? 'inherit' : ['ignore', 'pipe', 'pipe']
235
- });
236
- }
237
- else {
238
- // Published packages: call ts-res-browser CLI directly
239
- if (options.verbose) {
240
- console.log('Using published ts-res-browser package');
241
- }
242
- this._devServer = (0, child_process_1.spawn)('npx', ['ts-res-browser', 'dev', port.toString()], {
243
- env,
244
- stdio: options.verbose ? 'inherit' : ['ignore', 'pipe', 'pipe']
245
- });
246
- }
247
- this._devServer.on('error', (error) => {
248
- return (0, ts_utils_1.fail)(`Failed to start development server: ${error}`);
249
- });
250
- // Give the server a moment to start
251
- await this._sleep(3000);
252
- if (this._devServer && !this._devServer.killed) {
253
- if (options.verbose) {
254
- console.log('Development server process started successfully');
255
- }
256
- return (0, ts_utils_1.succeed)(undefined);
257
- }
258
- else {
259
- return (0, ts_utils_1.fail)('Development server process failed to start');
260
- }
261
- }
262
- catch (error) {
263
- return (0, ts_utils_1.fail)(`Failed to start development server: ${error}`);
264
- }
265
- }
266
- /**
267
- * Waits for the development server to be ready by checking HTTP availability
268
- */
269
- async _waitForServerReady(port, verbose, maxAttempts = 60) {
270
- for (let attempt = 1; attempt <= maxAttempts; attempt++) {
271
- try {
272
- const isReady = await this._checkServerHealth(port);
273
- if (isReady) {
274
- if (verbose) {
275
- console.log(`Server is ready at http://localhost:${port}`);
276
- }
277
- return (0, ts_utils_1.succeed)(undefined);
278
- }
279
- }
280
- catch (error) {
281
- // Server not ready yet, continue waiting
282
- }
283
- if (verbose && attempt % 10 === 0) {
284
- console.log(`Waiting for server to be ready... (attempt ${attempt}/${maxAttempts})`);
285
- }
286
- await this._sleep(1000);
287
- }
288
- return (0, ts_utils_1.fail)(`Server did not become ready after ${maxAttempts} attempts`);
289
- }
290
- /**
291
- * Checks if the server is responding
292
- */
293
- async _checkServerHealth(port) {
294
- return new Promise((resolve) => {
295
- const request = http.get(`http://localhost:${port}`, (res) => {
296
- resolve(res.statusCode !== undefined && res.statusCode >= 200 && res.statusCode < 400);
297
- });
298
- request.on('error', () => {
299
- resolve(false);
300
- });
301
- request.setTimeout(3000, () => {
302
- request.destroy();
303
- resolve(false);
304
- });
305
- });
306
- }
307
- /**
308
- * Stops the development server
309
- */
310
- _stopDevServer() {
311
- if (this._devServer && !this._devServer.killed) {
312
- this._devServer.kill('SIGTERM');
313
- setTimeout(() => {
314
- if (this._devServer && !this._devServer.killed) {
315
- this._devServer.kill('SIGKILL');
316
- }
317
- }, 5000);
318
- }
319
- }
320
- /**
321
- * Sleep for the specified number of milliseconds
322
- */
323
- _sleep(ms) {
324
- return new Promise((resolve) => setTimeout(resolve, ms));
325
- }
326
- /**
327
- * Detects if we're running in a monorepo environment
328
- */
329
- _isMonorepoEnvironment() {
330
- try {
331
- // Check if we have a rush.json file in parent directories (indicating monorepo)
332
- let currentDir = __dirname;
333
- for (let i = 0; i < 5; i++) {
334
- // Look up to 5 levels up
335
- const rushJsonPath = path.join(currentDir, 'rush.json');
336
- if (fs.existsSync(rushJsonPath)) {
337
- return true;
338
- }
339
- currentDir = path.dirname(currentDir);
340
- }
341
- // Also check if ts-res-browser sibling directory exists
342
- const browserProjectPath = path.resolve(__dirname, '../../ts-res-browser');
343
- return (fs.existsSync(browserProjectPath) && fs.existsSync(path.join(browserProjectPath, 'package.json')));
344
- }
345
- catch (_a) {
346
- return false;
347
- }
348
- }
349
246
  /**
350
247
  * Determines if a ZIP archive should be created based on the options
351
248
  */
@@ -373,12 +270,6 @@ class BrowserLauncher {
373
270
  return (0, ts_utils_1.fail)(`Failed to create ZIP archive: ${error instanceof Error ? error.message : String(error)}`);
374
271
  }
375
272
  }
376
- /**
377
- * Graceful shutdown - stops development server if running
378
- */
379
- shutdown() {
380
- this._stopDevServer();
381
- }
382
273
  }
383
- exports.BrowserLauncher = BrowserLauncher;
384
- //# sourceMappingURL=browserLauncher.js.map
274
+ exports.SimpleBrowserLauncher = SimpleBrowserLauncher;
275
+ //# sourceMappingURL=simpleBrowserLauncher.js.map
@@ -1,31 +1,19 @@
1
1
  import { Result } from '@fgv/ts-utils';
2
- export interface ZipArchiveOptions {
2
+ import { ZipArchive } from '@fgv/ts-res';
3
+ export interface IZipArchiveOptions {
3
4
  input?: string;
4
5
  config?: string;
5
6
  outputDir?: string;
6
7
  }
7
- export interface ZipArchiveResult {
8
+ export interface IZipArchiveResult {
8
9
  zipPath: string;
9
- manifest: ZipManifest;
10
- }
11
- export interface ZipManifest {
12
- timestamp: string;
13
- input?: {
14
- type: 'file' | 'directory';
15
- originalPath: string;
16
- archivePath: string;
17
- };
18
- config?: {
19
- type: 'file';
20
- originalPath: string;
21
- archivePath: string;
22
- };
10
+ manifest: ZipArchive.IZipArchiveManifest;
23
11
  }
24
12
  export declare class ZipArchiver {
25
13
  /**
26
14
  * Create a ZIP archive containing the specified input and config files/directories
27
15
  */
28
- createArchive(options: ZipArchiveOptions): Promise<Result<ZipArchiveResult>>;
16
+ createArchive(options: IZipArchiveOptions): Promise<Result<IZipArchiveResult>>;
29
17
  /**
30
18
  * Get the default downloads directory path
31
19
  */