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:
@@ -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();
|
||||
|
||||
@@ -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,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>();
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user