msfs-layout-generator 0.3.0 → 0.3.2
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/{types/index.d.ts → index.d.ts} +1 -1
- package/dist/types.d.ts +29 -0
- package/dist/types.js +2 -0
- package/dist/{types/utils → utils}/processLayout.d.ts +1 -1
- package/package.json +4 -5
- /package/dist/{types/cli.d.ts → cli.d.ts} +0 -0
- /package/dist/{types/constants → constants}/constants.d.ts +0 -0
- /package/dist/{types/errors → errors}/ManifestWritingError.d.ts +0 -0
- /package/dist/{types/errors → errors}/ReadingDirError.d.ts +0 -0
- /package/dist/{types/errors → errors}/ReadingJsonError.d.ts +0 -0
- /package/dist/{types/errors → errors}/index.d.ts +0 -0
- /package/dist/{types/utils → utils}/doExcludeFile.d.ts +0 -0
- /package/dist/{types/utils → utils}/doUpdateManifest.d.ts +0 -0
- /package/dist/{types/utils → utils}/getAllFiles.d.ts +0 -0
- /package/dist/{types/utils → utils}/getWindowsFileTime.d.ts +0 -0
- /package/dist/{types/utils → utils}/readJson.d.ts +0 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type Content = {
|
|
2
|
+
path: string;
|
|
3
|
+
size: number;
|
|
4
|
+
date: number;
|
|
5
|
+
};
|
|
6
|
+
export type Layout = {
|
|
7
|
+
content: Content[];
|
|
8
|
+
};
|
|
9
|
+
export type Manifest = {
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
total_package_size?: string;
|
|
12
|
+
};
|
|
13
|
+
export interface ProcessOptions {
|
|
14
|
+
force?: boolean;
|
|
15
|
+
quiet?: boolean;
|
|
16
|
+
debug?: boolean;
|
|
17
|
+
checkManifest?: boolean;
|
|
18
|
+
skipManifestUpdate?: boolean;
|
|
19
|
+
returnResult?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ProcessResult {
|
|
22
|
+
fileCount: number;
|
|
23
|
+
totalSize: number;
|
|
24
|
+
layoutPath: string;
|
|
25
|
+
manifestPath: string;
|
|
26
|
+
skippedFiles: number;
|
|
27
|
+
success: boolean;
|
|
28
|
+
message?: string;
|
|
29
|
+
}
|
package/dist/types.js
ADDED
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "msfs-layout-generator",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Generate layout.json for MSFS community packages",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/p-sergienko/msfs-layout-generator.git"
|
|
8
8
|
},
|
|
9
|
-
"main": "./dist/index.
|
|
10
|
-
"module": "./dist/index.js",
|
|
9
|
+
"main": "./dist/index.js",
|
|
11
10
|
"types": "./dist/index.d.ts",
|
|
12
11
|
"exports": {
|
|
13
12
|
".": {
|
|
14
|
-
"
|
|
15
|
-
"require": "./dist/index.
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"require": "./dist/index.js"
|
|
16
15
|
}
|
|
17
16
|
},
|
|
18
17
|
"sideEffects": false,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|