Skip to content

Commit

Permalink
Bump CLI and fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Aug 23, 2023
1 parent 7a9637a commit b0f9dbd
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 745 deletions.
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@metamask/eslint-config-jest": "^10.0.0",
"@metamask/eslint-config-nodejs": "^10.0.0",
"@metamask/eslint-config-typescript": "^10.0.0",
"@metamask/snaps-cli": "^0.38.1-flask.1",
"@metamask/snaps-cli": "^0.38.2-flask.1",
"@metamask/snaps-jest": "^0.37.3-flask.1",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
Expand Down
18 changes: 3 additions & 15 deletions packages/snap/snap.config.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
import type { SnapConfig } from '@metamask/snaps-cli';
import { merge } from '@metamask/snaps-cli';
import { resolve } from 'path';

Check failure on line 2 in packages/snap/snap.config.ts

View workflow job for this annotation

GitHub Actions / Build, Lint, and Test (16.x)

`path` import should occur before import of `@metamask/snaps-cli`
import { ProvidePlugin } from 'webpack';

const config: SnapConfig = {
bundler: 'webpack',
input: resolve(__dirname, 'src/index.ts'),
server: {
port: 8080,
},
customizeWebpackConfig: (defaultConfig) =>
merge(defaultConfig, {
resolve: {
fallback: {
stream: require.resolve('stream-browserify'),
},
},
plugins: [
new ProvidePlugin({
Buffer: ['buffer/', 'Buffer'],
}),
],
}),
polyfills: {
buffer: true

Check failure on line 11 in packages/snap/snap.config.ts

View workflow job for this annotation

GitHub Actions / Build, Lint, and Test (16.x)

Insert `,`
}

Check failure on line 12 in packages/snap/snap.config.ts

View workflow job for this annotation

GitHub Actions / Build, Lint, and Test (16.x)

Insert `,`
};

export default config;

Check failure on line 15 in packages/snap/snap.config.ts

View workflow job for this annotation

GitHub Actions / Build, Lint, and Test (16.x)

Insert `⏎`
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/template-snap-monorepo.git"
},
"source": {
"shasum": "xlzdQ1CbKhcYS4jVpmC2G8RQSS92nEiTo4Uobj2Semw=",
"shasum": "cknzMhcfKlgEFQO+94MLwLkYxsRila2K+rxxJYVuBWE=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Loading

0 comments on commit b0f9dbd

Please sign in to comment.