Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove snaps-types #1951

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/snaps-cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"references": [
{ "path": "../snaps-utils" },
{ "path": "../snaps-browserify-plugin" },
{ "path": "../snaps-types" },
{ "path": "../snaps-webpack-plugin" }
]
}
8 changes: 8 additions & 0 deletions packages/snaps-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@ export {
SNAP_ERROR_MESSAGE,
} from './internals';

// Re-exported from `@metamask/utils` for convenience.
export type {
Json,
JsonRpcError,
JsonRpcRequest,
JsonRpcParams,
} from '@metamask/utils';

export * from './errors';
export * from './types';
17 changes: 0 additions & 17 deletions packages/snaps-types/.depcheckrc.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/snaps-types/.eslintrc.js

This file was deleted.

65 changes: 0 additions & 65 deletions packages/snaps-types/CHANGELOG.md

This file was deleted.

18 changes: 0 additions & 18 deletions packages/snaps-types/LICENSE

This file was deleted.

3 changes: 0 additions & 3 deletions packages/snaps-types/README.md

This file was deleted.

72 changes: 0 additions & 72 deletions packages/snaps-types/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/snaps-types/src/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/snaps-types/src/types.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/snaps-types/tsconfig.build.json

This file was deleted.

12 changes: 0 additions & 12 deletions packages/snaps-types/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/verify-tsconfig.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
const cwd = pathUtils.dirname(fileURLToPath(import.meta.url))

// These are the packages we expect to _not_ be referenced in the root tsconfig.
const IGNORE_LIST = new Set(['examples', 'snaps-types', 'test-snaps']);
const IGNORE_LIST = new Set(['examples', 'test-snaps']);

// Get reference paths from root tsconfig.json
const rootTsconfig = JSON.parse(await fs.readFile('./tsconfig.json', { encoding: 'utf8' }));
Expand Down
1 change: 0 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
{ "path": "./packages/snaps-rpc-methods/tsconfig.build.json" },
{ "path": "./packages/snaps-sdk/tsconfig.build.json" },
{ "path": "./packages/snaps-simulator/tsconfig.build.json" },
{ "path": "./packages/snaps-types/tsconfig.build.json" },
{ "path": "./packages/snaps-ui/tsconfig.build.json" },
{ "path": "./packages/snaps-utils/tsconfig.build.json" },
{ "path": "./packages/snaps-webpack-plugin/tsconfig.build.json" }
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
{ "path": "./packages/snaps-rpc-methods" },
{ "path": "./packages/snaps-sdk" },
{ "path": "./packages/snaps-simulator" },
{ "path": "./packages/snaps-types" },
{ "path": "./packages/snaps-ui" },
{ "path": "./packages/snaps-utils" },
{ "path": "./packages/snaps-webpack-plugin" }
Expand Down
31 changes: 0 additions & 31 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5595,37 +5595,6 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/snaps-types@workspace:packages/snaps-types":
version: 0.0.0-use.local
resolution: "@metamask/snaps-types@workspace:packages/snaps-types"
dependencies:
"@lavamoat/allow-scripts": ^2.5.1
"@metamask/auto-changelog": ^3.4.3
"@metamask/eslint-config": ^12.1.0
"@metamask/eslint-config-jest": ^12.1.0
"@metamask/eslint-config-nodejs": ^12.1.0
"@metamask/eslint-config-typescript": ^12.1.0
"@metamask/utils": ^8.1.0
"@swc/cli": ^0.1.62
"@swc/core": 1.3.78
"@typescript-eslint/eslint-plugin": ^5.42.1
"@typescript-eslint/parser": ^5.42.1
depcheck: ^1.4.7
eslint: ^8.27.0
eslint-config-prettier: ^8.5.0
eslint-plugin-import: ^2.26.0
eslint-plugin-jest: ^27.1.5
eslint-plugin-jsdoc: ^39.6.2
eslint-plugin-n: ^15.7.0
eslint-plugin-prettier: ^4.2.1
eslint-plugin-promise: ^6.1.1
prettier: ^2.7.1
prettier-plugin-packagejson: ^2.2.11
rimraf: ^4.1.2
typescript: ~4.8.4
languageName: unknown
linkType: soft

"@metamask/snaps-ui@workspace:^, @metamask/snaps-ui@workspace:packages/snaps-ui":
version: 0.0.0-use.local
resolution: "@metamask/snaps-ui@workspace:packages/snaps-ui"
Expand Down