@fgv/ts-res-browser-cli 5.0.0-25 → 5.0.0-27
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/eslint.config.js +16 -0
- package/lib/options.d.ts +11 -0
- package/lib/simpleBrowserLauncher.js +1 -1
- package/lib/zipArchiver.d.ts +3 -3
- package/package.json +11 -10
package/eslint.config.js
ADDED
|
@@ -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
|
-
|
|
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
|
}
|
package/lib/zipArchiver.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Result } from '@fgv/ts-utils';
|
|
2
2
|
import { ZipArchive } from '@fgv/ts-res';
|
|
3
|
-
export interface
|
|
3
|
+
export interface IZipArchiveOptions {
|
|
4
4
|
input?: string;
|
|
5
5
|
config?: string;
|
|
6
6
|
outputDir?: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
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:
|
|
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-
|
|
3
|
+
"version": "5.0.0-27",
|
|
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-
|
|
26
|
-
"@fgv/ts-
|
|
27
|
-
"@fgv/ts-json": "5.0.0-
|
|
28
|
-
"@fgv/ts-json-base": "5.0.0-
|
|
29
|
-
"@fgv/ts-res-browser": "5.0.0-
|
|
25
|
+
"@fgv/ts-res": "5.0.0-27",
|
|
26
|
+
"@fgv/ts-utils": "5.0.0-27",
|
|
27
|
+
"@fgv/ts-json": "5.0.0-27",
|
|
28
|
+
"@fgv/ts-json-base": "5.0.0-27",
|
|
29
|
+
"@fgv/ts-res-browser": "5.0.0-27"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@rushstack/
|
|
33
|
-
"@rushstack/heft
|
|
32
|
+
"@rushstack/eslint-config": "4.4.0",
|
|
33
|
+
"@rushstack/heft": "0.74.4",
|
|
34
|
+
"@rushstack/heft-node-rig": "2.9.5",
|
|
34
35
|
"@types/jest": "^29.5.14",
|
|
35
36
|
"@types/node": "^20.14.9",
|
|
36
|
-
"eslint": "^
|
|
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-
|
|
40
|
+
"@fgv/ts-utils-jest": "5.0.0-27"
|
|
40
41
|
},
|
|
41
42
|
"scripts": {
|
|
42
43
|
"build": "heft build --clean",
|