Align tsconfig to allow moduleResolution: nodenext (#5530)

* Align tsconfig to allow moduleResolution: nodenext

* Small adjustments (revert nodenext req. changes)

* Adjust for current compilation

* Read metadata compare from file

* Adjust

* Fix assertions
This commit is contained in:
Jaco
2023-03-09 20:10:53 +02:00
committed by GitHub
parent 9ac9d72082
commit 611ff12a3d
56 changed files with 145 additions and 130 deletions
@@ -20,7 +20,7 @@
// FIXME A number of tests here, that were passing, is not skipped since
// Jest has "some" issues with `await import` - we don't transform these
import type Sc from '@substrate/connect';
import type * as Sc from '@substrate/connect';
import type { HealthChecker, SmoldotHealth } from './types.js';
import { ScProvider } from './index.js';
@@ -1,10 +1,10 @@
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type ScType from '@substrate/connect';
import type * as ScType from '@substrate/connect';
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '../types.js';
import EventEmitter from 'eventemitter3';
import { EventEmitter } from 'eventemitter3';
import { isError, isFunction, isObject, logger, objectSpread } from '@polkadot/util';