Use .js imports in src (#5526)

* Use .js imports in src

* Adjust

* Fix imports

* Bump dev

* Adjust with .js imports for typegen

* Adjust

* Adjust

* Remove target override
This commit is contained in:
Jaco
2023-03-09 12:19:12 +02:00
committed by GitHub
parent f233671c27
commit 9fe2798b70
754 changed files with 1873 additions and 1871 deletions
@@ -7,7 +7,7 @@ import type { ApprovalFlag } from '@polkadot/types/interfaces';
import { TypeRegistry } from '@polkadot/types/create';
import { approvalFlagsToBools } from './approvalFlagsToBools';
import { approvalFlagsToBools } from './approvalFlagsToBools.js';
describe('approvalFlagsToBools', (): void => {
const registry = new TypeRegistry();
+2 -2
View File
@@ -1,9 +1,9 @@
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DeriveCache } from './types';
import type { DeriveCache } from './types.js';
import { deriveNoopCache } from './cacheImpl';
import { deriveNoopCache } from './cacheImpl.js';
interface CacheValue<T> {
v: T;
+1 -1
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { DeriveCache } from './types';
import type { DeriveCache } from './types.js';
const mapCache = new Map<string, any>();
+1 -1
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { Observable } from 'rxjs';
import type { DeriveApi } from '../types';
import type { DeriveApi } from '../types.js';
import { map } from 'rxjs';
+6 -6
View File
@@ -3,9 +3,9 @@
export { drr, memo } from '@polkadot/rpc-core';
export * from './approvalFlagsToBools';
export * from './blockNumber';
export * from './cache';
export * from './cacheImpl';
export * from './first';
export * from './lazy';
export * from './approvalFlagsToBools.js';
export * from './blockNumber.js';
export * from './cache.js';
export * from './cacheImpl.js';
export * from './first.js';
export * from './lazy.js';