@ecmaos/kernel 0.2.3 → 0.2.4

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/kernel.d.ts CHANGED
@@ -11,6 +11,7 @@ import { FileHeader } from '@ecmaos/types';
11
11
  import { Filesystem } from '#filesystem.ts';
12
12
  import { I18n } from '#i18n.ts';
13
13
  import { Intervals } from '#intervals.ts';
14
+ import { JSONSchemaForNPMPackageJsonFiles } from '@schemastore/package';
14
15
  import { Kernel as Kernel_2 } from '@ecmaos/types';
15
16
  import { KernelDevice } from '@ecmaos/types';
16
17
  import { KernelEvents } from '@ecmaos/types';
@@ -137,6 +138,12 @@ export declare class Kernel implements Kernel_2 {
137
138
  * @param options - Configuration options for kernel subsystems
138
139
  */
139
140
  configure(options: KernelOptions): Promise<void>;
141
+ /**
142
+ * Gets the main entry file path from a package.json
143
+ * @param pkgData - The parsed package.json data
144
+ * @returns The main entry file path or null if not found
145
+ */
146
+ getPackageMainExport(pkgData: JSONSchemaForNPMPackageJsonFiles): string | null;
140
147
  /**
141
148
  * Executes a command in the kernel environment
142
149
  * @param options - Execution options containing command, args, and shell
package/dist/kernel.js CHANGED
@@ -1,4 +1,4 @@
1
- import { K } from "./empty-D1k8eaRb.js";
1
+ import { K } from "./empty-DAF3BgdH.js";
2
2
  export {
3
3
  K as Kernel
4
4
  };