From d9faa9c0a7aafa3ec076eac472e07db94dfb638e Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Mon, 9 Sep 2024 10:08:58 +0200 Subject: [PATCH] Bump to `@ts-bridge/cli@^0.4.4` --- package.json | 2 +- packages/create-snap/package.json | 2 +- packages/snaps-browserify-plugin/package.json | 2 +- packages/snaps-cli/package.json | 4 +- packages/snaps-controllers/package.json | 2 +- .../snaps-execution-environments/package.json | 2 +- packages/snaps-jest/package.json | 2 +- packages/snaps-jest/src/types/index.ts | 1 + packages/snaps-jest/src/{ => types}/types.ts | 2 +- packages/snaps-rollup-plugin/package.json | 2 +- packages/snaps-rpc-methods/package.json | 2 +- packages/snaps-sdk/package.json | 2 +- packages/snaps-utils/package.json | 2 +- packages/snaps-webpack-plugin/package.json | 2 +- yarn.lock | 42 +++++++++---------- 15 files changed, 36 insertions(+), 35 deletions(-) create mode 100644 packages/snaps-jest/src/types/index.ts rename packages/snaps-jest/src/{ => types}/types.ts (99%) diff --git a/package.json b/package.json index 41298d4723..0b2643702d 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "@metamask/eslint-config-typescript": "^12.1.0", "@metamask/utils": "^9.2.1", "@swc/core": "1.3.78", - "@ts-bridge/cli": "^0.4.3", + "@ts-bridge/cli": "^0.4.4", "@types/jest": "^27.5.1", "@types/node": "18.14.2", "@typescript-eslint/eslint-plugin": "^5.42.1", diff --git a/packages/create-snap/package.json b/packages/create-snap/package.json index acc2425fd6..1098c7bfd2 100644 --- a/packages/create-snap/package.json +++ b/packages/create-snap/package.json @@ -62,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/jest": "^27.5.1", "@types/node": "18.14.2", "@types/yargs": "^17.0.24", diff --git a/packages/snaps-browserify-plugin/package.json b/packages/snaps-browserify-plugin/package.json index bf2face25a..085e40784c 100644 --- a/packages/snaps-browserify-plugin/package.json +++ b/packages/snaps-browserify-plugin/package.json @@ -57,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/browserify": "^12.0.37", "@types/convert-source-map": "^1.5.2", "@types/jest": "^27.5.1", diff --git a/packages/snaps-cli/package.json b/packages/snaps-cli/package.json index c50c244e01..6965609829 100644 --- a/packages/snaps-cli/package.json +++ b/packages/snaps-cli/package.json @@ -33,7 +33,7 @@ ".browserslistrc" ], "scripts": { - "build": "ts-bridge --project tsconfig.build.json --verbose --no-references && yarn build:types && yarn build:chmod && yarn build:readme", + "build": "ts-bridge --project tsconfig.build.json --verbose --no-references && yarn build:chmod && yarn build:readme", "build:chmod": "chmod +x ./dist/main.mjs && chmod +x ./dist/main.js", "build:readme": "node ./scripts/updateReadme.js", "build:watch": "tsc-watch --onSuccess 'yarn build:chmod'", @@ -110,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/browserify": "^12.0.37", "@types/jest": "^27.5.1", "@types/node": "18.14.2", diff --git a/packages/snaps-controllers/package.json b/packages/snaps-controllers/package.json index 91e35b8bc7..2c16893bd2 100644 --- a/packages/snaps-controllers/package.json +++ b/packages/snaps-controllers/package.json @@ -104,7 +104,7 @@ "@metamask/template-snap": "^0.7.0", "@swc/core": "1.3.78", "@swc/jest": "^0.2.26", - "@ts-bridge/cli": "^0.4.3", + "@ts-bridge/cli": "^0.4.4", "@types/chrome": "^0.0.237", "@types/concat-stream": "^2.0.0", "@types/gunzip-maybe": "^1.4.0", diff --git a/packages/snaps-execution-environments/package.json b/packages/snaps-execution-environments/package.json index 1cbe70e596..989f33538f 100644 --- a/packages/snaps-execution-environments/package.json +++ b/packages/snaps-execution-environments/package.json @@ -83,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/express": "^4.17.17", "@types/jest": "^27.5.1", "@types/node": "18.14.2", diff --git a/packages/snaps-jest/package.json b/packages/snaps-jest/package.json index b614c02842..aa23f44598 100644 --- a/packages/snaps-jest/package.json +++ b/packages/snaps-jest/package.json @@ -75,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/jest": "^27.5.1", "@types/mime": "^3.0.0", "@types/semver": "^7.5.0", diff --git a/packages/snaps-jest/src/types/index.ts b/packages/snaps-jest/src/types/index.ts new file mode 100644 index 0000000000..fcb073fefc --- /dev/null +++ b/packages/snaps-jest/src/types/index.ts @@ -0,0 +1 @@ +export * from './types'; diff --git a/packages/snaps-jest/src/types.ts b/packages/snaps-jest/src/types/types.ts similarity index 99% rename from packages/snaps-jest/src/types.ts rename to packages/snaps-jest/src/types/types.ts index eb29ce63c0..a5476de548 100644 --- a/packages/snaps-jest/src/types.ts +++ b/packages/snaps-jest/src/types/types.ts @@ -9,7 +9,7 @@ import type { SnapOptionsStruct, SnapResponseStruct, TransactionOptionsStruct, -} from './internals'; +} from '../internals'; export type RequestOptions = { /** diff --git a/packages/snaps-rollup-plugin/package.json b/packages/snaps-rollup-plugin/package.json index 703c3015b8..759dcc868c 100644 --- a/packages/snaps-rollup-plugin/package.json +++ b/packages/snaps-rollup-plugin/package.json @@ -57,7 +57,7 @@ "@rollup/plugin-virtual": "^2.1.0", "@swc/core": "1.3.78", "@swc/jest": "^0.2.26", - "@ts-bridge/cli": "^0.4.3", + "@ts-bridge/cli": "^0.4.4", "@types/jest": "^27.5.1", "@typescript-eslint/eslint-plugin": "^5.42.1", "@typescript-eslint/parser": "^6.21.0", diff --git a/packages/snaps-rpc-methods/package.json b/packages/snaps-rpc-methods/package.json index cdcb68702a..996e000def 100644 --- a/packages/snaps-rpc-methods/package.json +++ b/packages/snaps-rpc-methods/package.json @@ -61,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/node": "18.14.2", "@typescript-eslint/eslint-plugin": "^5.42.1", "@typescript-eslint/parser": "^6.21.0", diff --git a/packages/snaps-sdk/package.json b/packages/snaps-sdk/package.json index 84ef1709ef..6a72bbe2c1 100644 --- a/packages/snaps-sdk/package.json +++ b/packages/snaps-sdk/package.json @@ -90,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/jest": "^27.5.1", "@typescript-eslint/eslint-plugin": "^5.42.1", "@typescript-eslint/parser": "^6.21.0", diff --git a/packages/snaps-utils/package.json b/packages/snaps-utils/package.json index 1b7df6beed..0b0c8d201c 100644 --- a/packages/snaps-utils/package.json +++ b/packages/snaps-utils/package.json @@ -99,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/jest": "^27.5.1", "@types/mocha": "^10.0.1", "@types/node": "18.14.2", diff --git a/packages/snaps-webpack-plugin/package.json b/packages/snaps-webpack-plugin/package.json index 41014ea99c..ed31398377 100644 --- a/packages/snaps-webpack-plugin/package.json +++ b/packages/snaps-webpack-plugin/package.json @@ -59,7 +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", + "@ts-bridge/cli": "^0.4.4", "@types/jest": "^27.5.1", "@types/webpack-sources": "^3.2.0", "@typescript-eslint/eslint-plugin": "^5.42.1", diff --git a/yarn.lock b/yarn.lock index 320021882b..e8007a1cd2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4046,7 +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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/jest": "npm:^27.5.1" "@types/node": "npm:18.14.2" "@types/yargs": "npm:^17.0.24" @@ -5257,7 +5257,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/browserify": "npm:^12.0.37" "@types/convert-source-map": "npm:^1.5.2" "@types/jest": "npm:^27.5.1" @@ -5311,7 +5311,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/browserify": "npm:^12.0.37" "@types/jest": "npm:^27.5.1" "@types/node": "npm:18.14.2" @@ -5409,7 +5409,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/chrome": "npm:^0.0.237" "@types/concat-stream": "npm:^2.0.0" "@types/gunzip-maybe": "npm:^1.4.0" @@ -5500,7 +5500,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/express": "npm:^4.17.17" "@types/jest": "npm:^27.5.1" "@types/node": "npm:18.14.2" @@ -5584,7 +5584,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/jest": "npm:^27.5.1" "@types/mime": "npm:^3.0.0" "@types/semver": "npm:^7.5.0" @@ -5641,7 +5641,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/jest": "npm:^27.5.1" "@typescript-eslint/eslint-plugin": "npm:^5.42.1" "@typescript-eslint/parser": "npm:^6.21.0" @@ -5686,7 +5686,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/node": "npm:18.14.2" "@typescript-eslint/eslint-plugin": "npm:^5.42.1" "@typescript-eslint/parser": "npm:^6.21.0" @@ -5723,7 +5723,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/jest": "npm:^27.5.1" "@typescript-eslint/eslint-plugin": "npm:^5.42.1" "@typescript-eslint/parser": "npm:^6.21.0" @@ -5885,7 +5885,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/jest": "npm:^27.5.1" "@types/mocha": "npm:^10.0.1" "@types/node": "npm:18.14.2" @@ -5955,7 +5955,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" + "@ts-bridge/cli": "npm:^0.4.4" "@types/jest": "npm:^27.5.1" "@types/webpack-sources": "npm:^3.2.0" "@typescript-eslint/eslint-plugin": "npm:^5.42.1" @@ -7090,11 +7090,11 @@ __metadata: languageName: node linkType: hard -"@ts-bridge/cli@npm:^0.4.3": - version: 0.4.3 - resolution: "@ts-bridge/cli@npm:0.4.3" +"@ts-bridge/cli@npm:^0.4.4": + version: 0.4.4 + resolution: "@ts-bridge/cli@npm:0.4.4" dependencies: - "@ts-bridge/resolver": "npm:^0.1.1" + "@ts-bridge/resolver": "npm:^0.1.2" chalk: "npm:^5.3.0" cjs-module-lexer: "npm:^1.3.1" yargs: "npm:^17.7.2" @@ -7103,14 +7103,14 @@ __metadata: bin: ts-bridge: ./dist/index.js tsbridge: ./dist/index.js - checksum: 10/068bbb4b96f8b46276a07d79ac22542b98174648987cafd91c09d3e1ab7ededaba07d1169bb344a34a1a6f516ba1e6849552fe549fdf915df263dd0dfe24ed3e + checksum: 10/a904945e6d65cc75fadacdabbb7e92ecbb8f8c916f88e7887f0e9f340f36dadd1033d89867b0b4500983de43a15b09f118225a6542bbde2c4c77da43f07e9ba4 languageName: node linkType: hard -"@ts-bridge/resolver@npm:^0.1.1": - version: 0.1.1 - resolution: "@ts-bridge/resolver@npm:0.1.1" - checksum: 10/2f16a392c18c85ee0945e06a6e8d8a5ee8e576863b3c44ea0b95c7fc789cc0dbff035b6522a9e67fa44bf54708fae94b3d465aee70ddf49a06d33a6931b92b7d +"@ts-bridge/resolver@npm:^0.1.2": + version: 0.1.2 + resolution: "@ts-bridge/resolver@npm:0.1.2" + checksum: 10/4126154e0344f4fdf35612f65d4459e993dcf914fe765ce95d8237a6ccb85e092bd31a6d31765cc24c0280a0e243ed2385f8b355d7fb13ba7c36e95e3caf1613 languageName: node linkType: hard @@ -19885,7 +19885,7 @@ __metadata: "@metamask/eslint-config-typescript": "npm:^12.1.0" "@metamask/utils": "npm:^9.2.1" "@swc/core": "npm:1.3.78" - "@ts-bridge/cli": "npm:^0.4.3" + "@ts-bridge/cli": "npm:^0.4.4" "@types/jest": "npm:^27.5.1" "@types/node": "npm:18.14.2" "@typescript-eslint/eslint-plugin": "npm:^5.42.1"