<|start_filename|>Runtime/rollup.config.js<|end_filename|>
import typescript from "@rollup/plugin-typescript";

/** @type {import('rollup').RollupOptions} */
const config = {
    input: "src/index.ts",
    output: [
        {
            file: "lib/index.mjs",
            format: "esm",
        },
        {
            dir: "lib",
            format: "umd",
            name: "JavaScriptKit",
        },
    ],
    plugins: [typescript()],
};

export default config;


<|start_filename|>IntegrationTests/TestSuites/Sources/CHelpers/helpers.c<|end_filename|>
int growMemory(int pages) {
    return __builtin_wasm_memory_grow(0, pages);
}



<|start_filename|>IntegrationTests/TestSuites/Sources/CHelpers/include/helpers.h<|end_filename|>
/// Ask host to grow WebAssembly module's allocated memory
///
/// @param pages Number of memory pages to increase memory by.
int growMemory(int pages);

