almostnode 0.2.5 → 0.2.6

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,42 @@
1
+ /**
2
+ * Macaly Demo - Load the REAL macaly-web repository into almostnode
3
+ * This tests almostnode's ability to run a real-world Next.js app
4
+ */
5
+ import { VirtualFS } from './virtual-fs';
6
+ import { createRuntime } from './create-runtime';
7
+ import type { IRuntime } from './runtime-interface';
8
+ import { NextDevServer } from './frameworks/next-dev-server';
9
+ /**
10
+ * Files to load from the real macaly-web repository
11
+ * We'll populate this dynamically, but here's the structure we need
12
+ */
13
+ export interface MacalyFiles {
14
+ [path: string]: string;
15
+ }
16
+ /**
17
+ * Load the real macaly-web project into VirtualFS
18
+ */
19
+ export declare function loadMacalyProject(vfs: VirtualFS, files: MacalyFiles): void;
20
+ /**
21
+ * Initialize the Macaly demo with real files
22
+ */
23
+ export declare function initMacalyDemo(outputElement: HTMLElement, files: MacalyFiles, options?: {
24
+ useWorker?: boolean;
25
+ }): Promise<{
26
+ vfs: VirtualFS;
27
+ runtime: IRuntime;
28
+ }>;
29
+ /**
30
+ * Start the Macaly dev server
31
+ */
32
+ export declare function startMacalyDevServer(vfs: VirtualFS, options?: {
33
+ port?: number;
34
+ log?: (message: string) => void;
35
+ }): Promise<{
36
+ server: NextDevServer;
37
+ url: string;
38
+ stop: () => void;
39
+ }>;
40
+ export { VirtualFS, NextDevServer, createRuntime };
41
+ export type { IRuntime };
42
+ //# sourceMappingURL=macaly-demo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"macaly-demo.d.ts","sourceRoot":"","sources":["../src/macaly-demo.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,CAqB1E;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,aAAa,EAAE,WAAW,EAC1B,KAAK,EAAE,WAAW,EAClB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,OAAO,CAAC;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC,CA0ChD;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,SAAS,EACd,OAAO,GAAE;IACP,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5B,GACL,OAAO,CAAC;IACT,MAAM,EAAE,aAAa,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC,CA0DD;AAGD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC;AACnD,YAAY,EAAE,QAAQ,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "almostnode",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Node.js in your browser. Just like that.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -97,6 +97,7 @@
97
97
  "@playwright/test": "^1.58.0",
98
98
  "@types/node": "^25.0.10",
99
99
  "@types/pako": "^2.0.4",
100
+ "esbuild": "^0.27.2",
100
101
  "jsdom": "^27.4.0",
101
102
  "typescript": "^5.9.3",
102
103
  "vite": "^5.4.0",