@fgv/ts-res-browser-cli 5.0.0-24 → 5.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.
@@ -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/options.d.ts CHANGED
@@ -97,4 +97,15 @@ export interface IBrowseCommandOptions {
97
97
  dev?: boolean;
98
98
  serve?: boolean;
99
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;
110
+ }
100
111
  //# sourceMappingURL=options.d.ts.map
@@ -159,7 +159,7 @@ class SimpleBrowserLauncher {
159
159
  console.log(`Running: ${command}`);
160
160
  }
161
161
  return new Promise((resolve) => {
162
- const child = (0, child_process_1.exec)(command, (error) => {
162
+ (0, child_process_1.exec)(command, (error) => {
163
163
  if (error) {
164
164
  resolve((0, ts_utils_1.fail)(`Failed to start server: ${error.message}`));
165
165
  }
@@ -1,11 +1,11 @@
1
1
  import { Result } from '@fgv/ts-utils';
2
2
  import { ZipArchive } from '@fgv/ts-res';
3
- export interface ZipArchiveOptions {
3
+ export interface IZipArchiveOptions {
4
4
  input?: string;
5
5
  config?: string;
6
6
  outputDir?: string;
7
7
  }
8
- export interface ZipArchiveResult {
8
+ export interface IZipArchiveResult {
9
9
  zipPath: string;
10
10
  manifest: ZipArchive.IZipArchiveManifest;
11
11
  }
@@ -13,7 +13,7 @@ export declare class ZipArchiver {
13
13
  /**
14
14
  * Create a ZIP archive containing the specified input and config files/directories
15
15
  */
16
- createArchive(options: ZipArchiveOptions): Promise<Result<ZipArchiveResult>>;
16
+ createArchive(options: IZipArchiveOptions): Promise<Result<IZipArchiveResult>>;
17
17
  /**
18
18
  * Get the default downloads directory path
19
19
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fgv/ts-res-browser-cli",
3
- "version": "5.0.0-24",
3
+ "version": "5.0.0-26",
4
4
  "description": "Command-line interface to launch ts-res-browser with specified options",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -22,21 +22,22 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "commander": "^11.0.0",
25
- "@fgv/ts-res": "5.0.0-24",
26
- "@fgv/ts-utils": "5.0.0-24",
27
- "@fgv/ts-json": "5.0.0-24",
28
- "@fgv/ts-json-base": "5.0.0-24",
29
- "@fgv/ts-res-browser": "5.0.0-24"
25
+ "@fgv/ts-res": "5.0.0-26",
26
+ "@fgv/ts-utils": "5.0.0-26",
27
+ "@fgv/ts-json": "5.0.0-26",
28
+ "@fgv/ts-json-base": "5.0.0-26",
29
+ "@fgv/ts-res-browser": "5.0.0-26"
30
30
  },
31
31
  "devDependencies": {
32
+ "@rushstack/eslint-config": "4.4.0",
32
33
  "@rushstack/heft": "0.74.3",
33
34
  "@rushstack/heft-node-rig": "2.9.4",
34
35
  "@types/jest": "^29.5.14",
35
36
  "@types/node": "^20.14.9",
36
- "eslint": "^8.57.0",
37
+ "eslint": "^9.35.0",
37
38
  "jest": "^29.7.0",
38
39
  "typescript": "5.8.3",
39
- "@fgv/ts-utils-jest": "5.0.0-24"
40
+ "@fgv/ts-utils-jest": "5.0.0-26"
40
41
  },
41
42
  "scripts": {
42
43
  "build": "heft build --clean",
package/config/rig.json DELETED
@@ -1,16 +0,0 @@
1
- // The "rig.json" file directs tools to look for their config files in an external package.
2
- // Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
3
- {
4
- "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
5
- /**
6
- * (Required) The name of the rig package to inherit from.
7
- * It should be an NPM package name with the "-rig" suffix.
8
- */
9
- "rigPackageName": "@rushstack/heft-node-rig",
10
- /**
11
- * (Optional) Selects a config profile from the rig package. The name must consist of
12
- * lowercase alphanumeric words separated by hyphens, for example "sample-profile".
13
- * If omitted, then the "default" profile will be used."
14
- */
15
- "rigProfile": "default"
16
- }