Files
nym/wasm/mix-fetch/build.mjs
Jędrzej Stuczyński 4890c528bc feat: mixFetch - the final countdown (#3737)
* mixFetch

* clippy

* removed redundant Arc over 'WasmStorage' in the 'ClientStorage'

---------

Co-authored-by: Fouad <fmtabbara@hotmail.co.uk>
2023-09-07 12:45:03 +01:00

12 lines
417 B
JavaScript

import fs from 'fs';
const packageJson = JSON.parse(fs.readFileSync('../../dist/wasm/mix-fetch/package.json').toString());
if (!packageJson.files.includes('go_conn.wasm')) {
packageJson.files.push('go_conn.wasm');
}
if (!packageJson.files.includes('wasm_exec.js')) {
packageJson.files.push('wasm_exec.js');
}
fs.writeFileSync('../../dist/wasm/mix-fetch/package.json', JSON.stringify(packageJson, null, 2));