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

fix: ts-bridge import json error #340

Closed
wants to merge 1 commit into from
Closed
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { JsonRpcRequest } from '@metamask/utils';

import { createExternalExtensionProvider } from './createExternalExtensionProvider';
import config from './external-extension-config.json';
import config from './external-extension-config';
import { MockPort } from '../../test/mocks/MockPort';
import type { BaseProvider } from '../BaseProvider';
import messages from '../messages';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PortDuplexStream as PortStream } from 'extension-port-stream';
import type { Duplex } from 'readable-stream';
import type { Runtime } from 'webextension-polyfill';

import config from './external-extension-config.json';
import config from './external-extension-config';
import { MetaMaskInpageProviderStreamName } from '../MetaMaskInpageProvider';
import { StreamProvider } from '../StreamProvider';
import { getDefaultExternalMiddleware } from '../utils';
Expand Down
12 changes: 0 additions & 12 deletions src/extension-provider/external-extension-config.json

This file was deleted.

13 changes: 13 additions & 0 deletions src/extension-provider/external-extension-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable import/no-anonymous-default-export */
export default {
chromeIds: {
stable: 'nkbihfbeogaeaoehlefnkodbefgpgknn',
beta: 'pbbkamfgmaedccnfkmjcofcecjhfgldn',
flask: 'ljfoeinjpaedjfecbmggjgodbgkmjkjk',
},
firefoxIds: {
stable: 'webextension@metamask.io',
beta: 'webextension-beta@metamask.io',
flask: 'webextension-flask@metamask.io',
},
};
Loading