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

Align tsconfig to allow moduleResolution: nodenext #728

Merged
merged 3 commits into from
Mar 9, 2023
Merged
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
2 changes: 1 addition & 1 deletion packages/react-identicon/src/Identicon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import type { Prefix } from '@polkadot/util-crypto/address/types';
import type { IdentityProps as Props, Props as ComponentProps } from './types';
import type { IdentityProps as Props, Props as ComponentProps } from './types.js';

import React from 'react';
import CopyToClipboard from 'react-copy-to-clipboard';
Expand Down
2 changes: 1 addition & 1 deletion packages/react-identicon/src/icons/Beachball.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Props } from '../types';
import type { Props } from '../types.js';

import React, { useCallback } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/react-identicon/src/icons/Empty.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Props } from '../types';
import type { Props } from '../types.js';

import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/react-identicon/src/icons/Ethereum.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Props } from '../types';
import type { Props } from '../types.js';

import makeBlockie from 'ethereum-blockies-base64';
import React, { useMemo } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion packages/react-identicon/src/icons/Jdenticon.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/react-identicon authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Props } from '../types';
import type { Props } from '../types.js';

import * as jdenticon from 'jdenticon';
import React, { useMemo } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion packages/react-identicon/src/icons/Polkadot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// - Overall it is now just a static component, expecting an address as an input value

import type { Circle } from '@polkadot/ui-shared/icons/types';
import type { Props } from '../types';
import type { Props } from '../types.js';

import React, { useMemo } from 'react';

Expand Down
4 changes: 2 additions & 2 deletions packages/ui-keyring/src/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types';
import type { Prefix } from '@polkadot/util-crypto/address/types';
import type { AddressSubject } from './observable/types';
import type { KeyringOptions, KeyringStore } from './types';
import type { AddressSubject } from './observable/types.js';
import type { KeyringOptions, KeyringStore } from './types.js';

import { createTestKeyring } from '@polkadot/keyring';
import { isBoolean, isNumber, isString } from '@polkadot/util';
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-keyring/src/observable/genericSubject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0

import type { KeypairType } from '@polkadot/util-crypto/types';
import type { KeyringJson, KeyringStore } from '../types';
import type { AddressSubject, SingleAddress, SubjectInfo } from './types';
import type { KeyringJson, KeyringStore } from '../types.js';
import type { AddressSubject, SingleAddress, SubjectInfo } from './types.js';

import { BehaviorSubject } from 'rxjs';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-keyring/src/observable/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { SubjectInfo } from './types';
import type { SubjectInfo } from './types.js';

import { combineLatest, map } from 'rxjs';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-keyring/src/stores/Browser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { KeyringJson, KeyringStore } from '../types';
import type { KeyringJson, KeyringStore } from '../types.js';

import store from 'store';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-keyring/src/stores/File.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/ui-keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { KeyringJson, KeyringStore } from '../types';
import type { KeyringJson, KeyringStore } from '../types.js';

import mkdirp from 'mkdirp';
import fs from 'node:fs';
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-settings/src/Settings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/ui-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Endpoint, EndpointType, Option, SettingsStruct } from './types';
import type { Endpoint, EndpointType, Option, SettingsStruct } from './types.js';

import EventEmitter from 'eventemitter3';
import store from 'store';
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-settings/src/defaults/ui.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/ui-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Option } from '../types';
import type { Option } from '../types.js';

import { isPolkadot } from './type.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-shared/src/icons/beachball/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Copyright 2016 Dan Finlay

import type { Options } from '../types';
import type { Options } from '../types.js';

import { circle } from './shape/circle.js';
import { element } from './svg/element.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-shared/src/icons/beachball/seeder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/// <reference types="@polkadot/dev/node/test/node" />

import type { Seeder } from './types';
import type { Seeder } from './types.js';

import { seeder as newSeeder } from './seeder.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-shared/src/icons/beachball/seeder.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/ui-shared authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Seeder } from './types';
import type { Seeder } from './types.js';

import { isU8a, stringToU8a } from '@polkadot/util';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui-shared/src/icons/beachball/shape/circle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Copyright 2016 Dan Finlay

import type { Seeder } from '../types';
import type { Seeder } from '../types.js';

import { SHAPE_COUNT } from '../defaults.js';
import { circle as newCircle } from '../svg/circle.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-shared/src/icons/beachball/shape/square.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Copyright 2016 Dan Finlay

import type { Seeder } from '../types';
import type { Seeder } from '../types.js';

import { SHAPE_COUNT } from '../defaults.js';
import { rect as newRect } from '../svg/rect.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-shared/src/icons/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//
// https://github.com/paritytech/oo7/blob/251ba2b7c45503b68eab4320c270b5afa9bccb60/packages/polkadot-identicon/src/index.jsx

import type { Circle, Options } from './types';
import type { Circle, Options } from './types.js';

import { blake2AsU8a, decodeAddress } from '@polkadot/util-crypto';

Expand Down
28 changes: 12 additions & 16 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,18 @@
"compilerOptions": {
"composite": true,
"paths": {
"@polkadot/react-identicon": ["react-identicon/src"],
"@polkadot/react-identicon/*": ["react-identicon/src/*"],
"@polkadot/react-qr": ["react-qr/src"],
"@polkadot/react-qr/*": ["react-qr/src/*"],
"@polkadot/reactnative-identicon": ["reactnative-identicon/src"],
"@polkadot/reactnative-identicon/*": ["reactnative-identicon/src/*"],
"@polkadot/ui-keyring": ["ui-keyring/src"],
"@polkadot/ui-keyring/*": ["ui-keyring/src/*"],
"@polkadot/ui-settings": ["ui-settings/src"],
"@polkadot/ui-settings/*": ["ui-settings/src/*"],
"@polkadot/ui-shared": ["ui-shared/src"],
"@polkadot/ui-shared/*": ["ui-shared/src/*"],
"@polkadot/vue-identicon": ["vue-identicon/src"],
"@polkadot/vue-identicon/*": ["vue-identicon/src/*"]
"@polkadot/react-identicon": ["react-identicon/src/index.ts"],
"@polkadot/react-qr": ["react-qr/src/index.ts"],
"@polkadot/reactnative-identicon": ["reactnative-identicon/src/index.ts"],
"@polkadot/ui-keyring": ["ui-keyring/src/index.ts"],
"@polkadot/ui-settings": ["ui-settings/src/index.ts"],
"@polkadot/ui-settings/packageInfo": ["ui-settings/src/packageInfo.ts"],
"@polkadot/ui-settings/types": ["ui-settings/src/types.ts"],
"@polkadot/ui-shared": ["ui-shared/src/index.ts"],
"@polkadot/ui-shared/icons/*": ["ui-shared/src/icons/*.ts"],
"@polkadot/ui-shared/packageInfo": ["ui-shared/src/packageInfo.ts"],
"@polkadot/vue-identicon": ["vue-identicon/src/index.ts"],
},
"skipLibCheck": true,
"target": "es2020"
"skipLibCheck": true
}
}