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
+2 -2
View File
@@ -1,5 +1,5 @@
// Copyright 2017-2023 @polkadot/types-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './registry';
import './lookup';
import './registry/index.js';
import './lookup/index.js';
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/types-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './augment';
import './augment.js';
export { packageInfo } from './packageInfo';
export { packageInfo } from './packageInfo.js';
+2 -2
View File
@@ -5,7 +5,7 @@
import { detectPackage } from '@polkadot/util';
import others from './detectOther';
import { packageInfo } from './packageInfo';
import others from './detectOther.js';
import { packageInfo } from './packageInfo.js';
detectPackage(packageInfo, null, others);
+2 -2
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/types-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './detectPackage';
import './detectPackage.js';
export * from './bundle';
export * from './bundle.js';
@@ -5,9 +5,9 @@ import type { Definitions } from '@polkadot/types/types';
import { objectSpread } from '@polkadot/util';
import kusama from './kusama';
import polkadot from './polkadot';
import substrate from './substrate';
import kusama from './kusama.js';
import polkadot from './polkadot.js';
import substrate from './substrate.js';
export default {
rpc: {},
+1 -1
View File
@@ -1,4 +1,4 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
export * from './types';
export * from './types.js';
+3 -3
View File
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/types-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './types-substrate';
import './types-polkadot';
import './types-kusama';
import './types-substrate.js';
import './types-polkadot.js';
import './types-kusama.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/types-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0
export * from './index';
export * from './index.js';
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2023 @polkadot/types-lookup authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './interfaces';
import './interfaces.js';