tsconfig adjustments (#9467)

This commit is contained in:
Jaco 2023-05-20 11:53:46 +03:00 committed by GitHub
parent c24e6d4dbb
commit 829c0fc311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
55 changed files with 66 additions and 86 deletions

View File

@ -12,7 +12,6 @@
],
"references": [
{ "path": "../apps/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -46,6 +46,6 @@
{ "path": "../page-utilities/tsconfig.build.json" },
{ "path": "../page-whitelist/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.build.json" }
]
}

View File

@ -13,7 +13,7 @@
{ "path": "../apps-config/tsconfig.build.json" },
{ "path": "../apps-routing/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../react-signer/tsconfig.build.json" }
]
}

View File

@ -15,7 +15,7 @@
{ "path": "../page-referenda/tsconfig.build.json" },
{ "path": "../page-settings/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -11,7 +11,6 @@
"**/test/**/*"
],
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../page-tech-comm/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -7,6 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.build.json" }
]
}

View File

@ -11,7 +11,6 @@
"**/test/**/*"
],
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -13,6 +13,7 @@
"references": [
{ "path": "../apps-config/tsconfig.build.json" },
{ "path": "../page-bounties/tsconfig.build.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../test-support/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../page-parachains/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -5,9 +5,12 @@
"outDir": "./build",
"rootDir": "./src"
},
"exclude": [
"**/*.spec.ts",
"**/*.spec.tsx"
],
"references": [
{ "path": "../react-api/tsconfig.xref.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src",
"emitDeclarationOnly": false,
"noEmit": true
},
"include": [
"**/*.spec.ts",
"**/*.spec.tsx"
],
"references": [
{ "path": "../page-claims/tsconfig.build.json" }
]
}

View File

@ -6,7 +6,6 @@
"rootDir": "./src"
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -8,7 +8,7 @@
"references": [
{ "path": "../react-api/tsconfig.xref.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -8,7 +8,6 @@
"references": [
{ "path": "../page-democracy/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,7 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../page-ranked/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -7,6 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.build.json" }
]
}

View File

@ -6,7 +6,6 @@
"rootDir": "./src"
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -6,7 +6,6 @@
"rootDir": "./src"
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../page-tech-comm/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -7,6 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.build.json" }
]
}

View File

@ -6,7 +6,6 @@
"rootDir": "./src"
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -8,7 +8,6 @@
"references": [
{ "path": "../apps-config/tsconfig.build.json" },
{ "path": "../page-explorer/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -6,7 +6,6 @@
"rootDir": "./src"
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,7 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -8,6 +8,6 @@
"references": [
{ "path": "../page-referenda/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.build.json" }
]
}

View File

@ -8,7 +8,7 @@
"references": [
{ "path": "../page-preimages/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -8,7 +8,6 @@
"references": [
{ "path": "../page-democracy/tsconfig.build.json" },
{ "path": "../page-preimages/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -8,7 +8,6 @@
"references": [
{ "path": "../apps-config/tsconfig.build.json" },
{ "path": "../react-api/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -6,7 +6,6 @@
"rootDir": "./src"
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -6,7 +6,6 @@
"rootDir": "./src"
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -9,6 +9,6 @@
{ "path": "../page-explorer/tsconfig.build.json" },
{ "path": "../page-staking2/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.build.json" }
]
}

View File

@ -7,6 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -8,7 +8,7 @@
"references": [
{ "path": "../page-democracy/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../react-params/tsconfig.build.json" }
]
}

View File

@ -6,7 +6,6 @@
"rootDir": "./src"
},
"references": [
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -7,7 +7,6 @@
},
"references": [
{ "path": "../page-settings/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.build.json" }
]
}

View File

@ -8,6 +8,6 @@
"references": [
{ "path": "../page-preimages/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.build.json" }
]
}

View File

@ -16,7 +16,6 @@
{ "path": "../apps-config/tsconfig.build.json" },
{ "path": "../react-api/tsconfig.xref.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.build.json" },
{ "path": "../react-hooks/tsconfig.xref.json" },
{ "path": "../react-signer/tsconfig.xref.json" }

View File

@ -17,7 +17,6 @@
],
"references": [
{ "path": "../react-api/tsconfig.xref.json" },
{ "path": "../react-hooks/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.xref.json" }
{ "path": "../react-hooks/tsconfig.xref.json" }
]
}

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api/types';
import type { RawParam, RawParamOnChange, RawParamOnEnter, RawParamOnEscape } from '@polkadot/react-params/types';
import type { RawParam, RawParamOnChange, RawParamOnEnter, RawParamOnEscape } from '../types.js';
import React, { useCallback } from 'react';

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { SubmittableExtrinsic } from '@polkadot/api/types';
import type { Props, RawParam } from '@polkadot/react-params/types';
import type { Props, RawParam } from '../types.js';
import React, { useCallback, useState } from 'react';

View File

@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/app-extrinsics authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Props, RawParam } from '@polkadot/react-params/types';
import type { Props, RawParam } from '../types.js';
import React, { useCallback, useState } from 'react';

View File

@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/app-extrinsics authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ComponentMap } from '@polkadot/react-params/types';
import type { ComponentMap } from '../types.js';
import Call from './Call.js';
import OpaqueCall from './OpaqueCall.js';

View File

@ -1,10 +1,10 @@
// Copyright 2017-2023 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ComponentMap } from '@polkadot/react-params/types';
import type { ExtrinsicSignature } from '@polkadot/types/interfaces';
import type { Codec, IExtrinsic, IMethod, TypeDef } from '@polkadot/types/types';
import type { BN } from '@polkadot/util';
import type { ComponentMap } from '../types.js';
import React, { useEffect, useState } from 'react';

View File

@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
import type { SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api/types';
import type { ComponentMap, RawParam } from '@polkadot/react-params/types';
import type { TypeDef } from '@polkadot/types/types';
import type { ComponentMap, RawParam } from '../types.js';
import React, { useCallback, useEffect, useMemo, useState } from 'react';

View File

@ -8,7 +8,6 @@
"references": [
{ "path": "../react-api/tsconfig.xref.json" },
{ "path": "../react-components/tsconfig.build.json" },
{ "path": "../react-components/tsconfig.xref.json" },
{ "path": "../react-params/tsconfig.xref.json" }
{ "path": "../react-components/tsconfig.xref.json" }
]
}

View File

@ -1,12 +0,0 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"include": [
"src/types.ts"
],
"references": []
}

View File

@ -22,6 +22,7 @@
{ "path": "./packages/page-bounties/tsconfig.test.json" },
{ "path": "./packages/page-calendar/tsconfig.build.json" },
{ "path": "./packages/page-claims/tsconfig.build.json" },
{ "path": "./packages/page-claims/tsconfig.spec.json" },
{ "path": "./packages/page-collator/tsconfig.build.json" },
{ "path": "./packages/page-contracts/tsconfig.build.json" },
{ "path": "./packages/page-council/tsconfig.build.json" },
@ -62,7 +63,6 @@
{ "path": "./packages/react-hooks/tsconfig.build.json" },
{ "path": "./packages/react-hooks/tsconfig.xref.json" },
{ "path": "./packages/react-params/tsconfig.build.json" },
{ "path": "./packages/react-params/tsconfig.xref.json" },
{ "path": "./packages/react-query/tsconfig.build.json" },
{ "path": "./packages/react-signer/tsconfig.build.json" },
{ "path": "./packages/react-signer/tsconfig.xref.json" },