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.
@@ -24,4 +24,4 @@
24
24
  * }
25
25
  */
26
26
  export declare const generateLayout: (layoutPath: string) => Promise<void>;
27
- export type { ProcessOptions, ProcessResult } from "@/index.d";
27
+ export type { Content, Layout, Manifest, ProcessOptions, ProcessResult } from "./types";
@@ -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
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { ProcessOptions, ProcessResult } from "@/index.d";
1
+ import { ProcessOptions, ProcessResult } from "../types";
2
2
  /**
3
3
  * Unified function to process layout files for MSFS packages
4
4
  * Can be used both programmatically and via CLI
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "msfs-layout-generator",
3
- "version": "0.3.0",
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.cjs",
10
- "module": "./dist/index.js",
9
+ "main": "./dist/index.js",
11
10
  "types": "./dist/index.d.ts",
12
11
  "exports": {
13
12
  ".": {
14
- "import": "./dist/index.js",
15
- "require": "./dist/index.cjs"
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