Skip to content

Commit

Permalink
Fix more issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Sep 2, 2024
1 parent f425857 commit e46b754
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/create-snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"@metamask/eslint-config-typescript": "^12.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/jest": "^27.5.1",
"@types/node": "18.14.2",
"@types/yargs": "^17.0.24",
Expand Down
1 change: 1 addition & 0 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@metamask/eslint-config-jest": "^12.1.0",
"@metamask/eslint-config-nodejs": "^12.1.0",
"@metamask/eslint-config-typescript": "^12.1.0",
"@ts-bridge/cli": "^0.4.3",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"depcheck": "^1.4.7",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-browserify-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@metamask/eslint-config-typescript": "^12.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/browserify": "^12.0.37",
"@types/convert-source-map": "^1.5.2",
"@types/jest": "^27.5.1",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"@metamask/eslint-config-nodejs": "^12.1.0",
"@metamask/eslint-config-typescript": "^12.1.0",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/browserify": "^12.0.37",
"@types/jest": "^27.5.1",
"@types/node": "18.14.2",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"@metamask/template-snap": "^0.7.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/chrome": "^0.0.237",
"@types/concat-stream": "^2.0.0",
"@types/gunzip-maybe": "^1.4.0",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-execution-environments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"@metamask/eslint-config-typescript": "^12.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/express": "^4.17.17",
"@types/jest": "^27.5.1",
"@types/node": "18.14.2",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"@metamask/eslint-config-typescript": "^12.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/jest": "^27.5.1",
"@types/mime": "^3.0.0",
"@types/semver": "^7.5.0",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-rollup-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@rollup/plugin-virtual": "^2.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/jest": "^27.5.1",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-rpc-methods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"@metamask/json-rpc-engine": "^9.0.2",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/node": "18.14.2",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"@metamask/eslint-config-jest": "^12.1.0",
"@metamask/eslint-config-nodejs": "^12.1.0",
"@metamask/eslint-config-typescript": "^12.1.0",
"@ts-bridge/cli": "^0.4.3",
"@types/jest": "^27.5.1",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"@redux-saga/symbols": "^1.1.3",
"@swc/core": "1.3.78",
"@testing-library/react": "^14.0.0",
"@ts-bridge/cli": "^0.4.3",
"@types/express": "^4.17.17",
"@types/he": "^1.2.3",
"@types/jest": "^27.5.1",
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"@metamask/post-message-stream": "^8.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/jest": "^27.5.1",
"@types/mocha": "^10.0.1",
"@types/node": "18.14.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-utils/src/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function evalBundle(bundlePath: string): Promise<EvalOutput> {
await validateFilePath(bundlePath);

return new Promise((resolve, reject) => {
const worker = fork(join(__dirname, 'eval-worker.js'), [bundlePath], {
const worker = fork(join(__dirname, 'eval-worker.cjs'), [bundlePath], {
// To avoid printing the output of the worker to the console, we set
// `stdio` to `pipe` and handle the output ourselves.
stdio: 'pipe',
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@metamask/eslint-config-typescript": "^12.1.0",
"@swc/core": "1.3.78",
"@swc/jest": "^0.2.26",
"@ts-bridge/cli": "^0.4.3",
"@types/jest": "^27.5.1",
"@types/webpack-sources": "^3.2.0",
"@typescript-eslint/eslint-plugin": "^5.42.1",
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4046,6 +4046,7 @@ __metadata:
"@metamask/snaps-utils": "workspace:^"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/jest": "npm:^27.5.1"
"@types/node": "npm:18.14.2"
"@types/yargs": "npm:^17.0.24"
Expand Down Expand Up @@ -4411,6 +4412,7 @@ __metadata:
"@metamask/eslint-config-jest": "npm:^12.1.0"
"@metamask/eslint-config-nodejs": "npm:^12.1.0"
"@metamask/eslint-config-typescript": "npm:^12.1.0"
"@ts-bridge/cli": "npm:^0.4.3"
"@typescript-eslint/eslint-plugin": "npm:^5.42.1"
"@typescript-eslint/parser": "npm:^5.42.1"
depcheck: "npm:^1.4.7"
Expand Down Expand Up @@ -5256,6 +5258,7 @@ __metadata:
"@metamask/snaps-utils": "workspace:^"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/browserify": "npm:^12.0.37"
"@types/convert-source-map": "npm:^1.5.2"
"@types/jest": "npm:^27.5.1"
Expand Down Expand Up @@ -5309,6 +5312,7 @@ __metadata:
"@metamask/utils": "npm:^9.2.1"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/browserify": "npm:^12.0.37"
"@types/jest": "npm:^27.5.1"
"@types/node": "npm:18.14.2"
Expand Down Expand Up @@ -5406,6 +5410,7 @@ __metadata:
"@metamask/utils": "npm:^9.2.1"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/chrome": "npm:^0.0.237"
"@types/concat-stream": "npm:^2.0.0"
"@types/gunzip-maybe": "npm:^1.4.0"
Expand Down Expand Up @@ -5496,6 +5501,7 @@ __metadata:
"@metamask/utils": "npm:^9.2.1"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/express": "npm:^4.17.17"
"@types/jest": "npm:^27.5.1"
"@types/node": "npm:18.14.2"
Expand Down Expand Up @@ -5579,6 +5585,7 @@ __metadata:
"@reduxjs/toolkit": "npm:^1.9.5"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/jest": "npm:^27.5.1"
"@types/mime": "npm:^3.0.0"
"@types/semver": "npm:^7.5.0"
Expand Down Expand Up @@ -5635,6 +5642,7 @@ __metadata:
"@rollup/plugin-virtual": "npm:^2.1.0"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/jest": "npm:^27.5.1"
"@typescript-eslint/eslint-plugin": "npm:^5.42.1"
"@typescript-eslint/parser": "npm:^5.42.1"
Expand Down Expand Up @@ -5679,6 +5687,7 @@ __metadata:
"@noble/hashes": "npm:^1.3.1"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/node": "npm:18.14.2"
"@typescript-eslint/eslint-plugin": "npm:^5.42.1"
"@typescript-eslint/parser": "npm:^5.42.1"
Expand Down Expand Up @@ -5715,6 +5724,7 @@ __metadata:
"@metamask/rpc-errors": "npm:^6.3.1"
"@metamask/superstruct": "npm:^3.1.0"
"@metamask/utils": "npm:^9.2.1"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/jest": "npm:^27.5.1"
"@typescript-eslint/eslint-plugin": "npm:^5.42.1"
"@typescript-eslint/parser": "npm:^5.42.1"
Expand Down Expand Up @@ -5775,6 +5785,7 @@ __metadata:
"@reduxjs/toolkit": "npm:^1.9.5"
"@swc/core": "npm:1.3.78"
"@testing-library/react": "npm:^14.0.0"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/express": "npm:^4.17.17"
"@types/he": "npm:^1.2.3"
"@types/jest": "npm:^27.5.1"
Expand Down Expand Up @@ -5876,6 +5887,7 @@ __metadata:
"@scure/base": "npm:^1.1.1"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/jest": "npm:^27.5.1"
"@types/mocha": "npm:^10.0.1"
"@types/node": "npm:18.14.2"
Expand Down Expand Up @@ -5945,6 +5957,7 @@ __metadata:
"@metamask/utils": "npm:^9.2.1"
"@swc/core": "npm:1.3.78"
"@swc/jest": "npm:^0.2.26"
"@ts-bridge/cli": "npm:^0.4.3"
"@types/jest": "npm:^27.5.1"
"@types/webpack-sources": "npm:^3.2.0"
"@typescript-eslint/eslint-plugin": "npm:^5.42.1"
Expand Down

0 comments on commit e46b754

Please sign in to comment.