-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: update types based on new snap package
- Loading branch information
Showing
7 changed files
with
51 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { defineConfig } from 'rollup' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
// import snaps from '@metamask/snaps-rollup-plugin' | ||
import sucrase from '@rollup/plugin-sucrase' | ||
|
||
export default defineConfig({ | ||
input: 'src/index.ts', | ||
|
||
output: { | ||
file: './dist/adapter.js', | ||
format: 'umd', | ||
name: '<adapter>', | ||
}, | ||
plugins: [ | ||
commonjs(), | ||
resolve({ | ||
preferBuiltins: false, | ||
browser: true, | ||
}), | ||
sucrase({ | ||
exclude: ['test/**/*'], | ||
transforms: ['typescript'], | ||
}), | ||
// snaps.default({ | ||
// eval: true, | ||
// stripComments: true, | ||
// manifestPath: './snap.manifest.json', | ||
// writeManifest: true, | ||
// }), | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters