Skip to content

Commit

Permalink
Improved package file
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Nov 24, 2021
1 parent c156605 commit d99d5a2
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 7 deletions.
63 changes: 58 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@rollup/plugin-babel": "~5.3.0",
"@rollup/plugin-commonjs": "~21.0.1",
"@rollup/plugin-node-resolve": "~13.0.6",
"@rollup/plugin-url": "^6.1.0",
"@rollup/plugin-wasm": "^5.1.2",
"@wasm-tool/wasm-pack-plugin": "1.6.0",
"cross-env": "~7.0.3",
Expand Down
1 change: 1 addition & 0 deletions pkg/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { terser } from 'rollup-plugin-terser';
import pkg from './package.json';
import typescript from 'rollup-plugin-typescript2';
import { wasm } from '@rollup/plugin-wasm';
import smartAsset from "rollup-plugin-smart-asset"
// import smartAsset from "rollup-plugin-smart-asset"
import url from '@rollup/plugin-url';

const LIBRARY_NAME = 'Library'; // Change with your library's name
Expand Down
8 changes: 7 additions & 1 deletion wasi.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
export init, { WASI } from "./pkg/wasmer_wasi_js.js";
// @deno-types="./pkg/wasmer_wasi_js.d.ts"
import baseInit, { WASI } from "./pkg/wasmer_wasi_js.js";
// @deno-types="./pkg/wasmer_wasi_js.d.ts"
export { WASI } from "./pkg/wasmer_wasi_js.js";
export const init = async () => {
await baseInit();
}

0 comments on commit d99d5a2

Please sign in to comment.