Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix: preserve comments in compiled files (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrunic authored Jan 18, 2023
1 parent f06a17d commit 440112a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
15 changes: 10 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// re-export
export { getMetaMask, getMetaMaskWindow } from "./metamask";
export * from "./types";
export * from "./browser";
export * from "./page";
export * from "./element";
export * from "./setup";
export {
Dappeteer,
DappeteerLaunchOptions,
MetaMaskOptions,
TransactionOptions,
} from "./types";
export { DappeteerBrowser } from "./browser";
export { DappeteerPage } from "./page";
export { DappeteerElementHandle } from "./element";
export { bootstrap, initSnapEnv, launch, setupMetaMask } from "./setup";
export { DapeteerJestConfig } from "./jest/global";

// default constants
Expand Down
6 changes: 6 additions & 0 deletions src/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { setupMetaMask } from "./setupMetaMask";
export * from "./launch";
export * from "./setupMetaMask";

/**
* Launches browser and installs required metamask version along with setting up initial account
*/
export const bootstrap = async ({
seed,
password,
Expand All @@ -32,6 +35,9 @@ export const bootstrap = async ({
};
};

/**
* Used to quickly bootstrap dappeteer testing environment with installed snap
*/
export const initSnapEnv = async (
opts: DappeteerLaunchOptions &
MetaMaskOptions &
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"declaration": true,
"esModuleInterop": true,
"skipLibCheck": true,
"outDir": "dist"
"outDir": "dist",
"removeComments": false
},
"files": [
"./node_modules/@metamask/snap-types/global.d.ts"
Expand Down

0 comments on commit 440112a

Please sign in to comment.