Skip to content

Commit

Permalink
Bump dev w/ packageDetect adjustments (#5775)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored Dec 19, 2023
1 parent 0c7fed3 commit 97116a3
Show file tree
Hide file tree
Showing 67 changed files with 166 additions and 244 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"test:one": "polkadot-dev-run-test --env node"
},
"devDependencies": {
"@polkadot/dev": "^0.78.1",
"@polkadot/dev": "^0.78.3",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/node": "^20.10.5"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/api-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
11 changes: 0 additions & 11 deletions packages/api-augment/src/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/api-augment/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0

import './detectPackage.js';
import './packageDetect.js';

export * from './bundle.js';
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
// Copyright 2017-2023 @polkadot/api-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
import { detectPackage } from '@polkadot/util';

import { packageInfo } from './packageInfo.js';

export default [baseInfo, typesInfo, codecInfo];
detectPackage(packageInfo, null, [baseInfo, codecInfo, typesInfo]);
4 changes: 2 additions & 2 deletions packages/api-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
7 changes: 0 additions & 7 deletions packages/api-base/src/detectOther.ts

This file was deleted.

11 changes: 0 additions & 11 deletions packages/api-base/src/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/api-base/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/api-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

import './detectPackage.js';
import './packageDetect.js';

export * from './bundle.js';
13 changes: 13 additions & 0 deletions packages/api-base/src/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2017-2023 @polkadot/api-base authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { detectPackage } from '@polkadot/util';

import { packageInfo } from './packageInfo.js';

detectPackage(packageInfo, null, [rpcInfo, typesInfo]);
4 changes: 2 additions & 2 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
7 changes: 0 additions & 7 deletions packages/api-contract/src/detectOther.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/api-contract/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
// SPDX-License-Identifier: Apache-2.0

import './detectPackage.js';
import './packageDetect.js';

export * from './bundle.js';
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { packageInfo as apiInfo } from '@polkadot/api/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { detectPackage } from '@polkadot/util';

import others from './detectOther.js';
import { packageInfo } from './packageInfo.js';

detectPackage(packageInfo, null, others);
detectPackage(packageInfo, null, [apiInfo, typesInfo]);
4 changes: 2 additions & 2 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
6 changes: 0 additions & 6 deletions packages/api-derive/src/detectOther.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/api-derive/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0

import './detectPackage.js';
import './packageDetect.js';

export * from './bundle.js';
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { detectPackage } from '@polkadot/util';

import others from './detectOther.js';
import { packageInfo } from './packageInfo.js';

detectPackage(packageInfo, null, others);
detectPackage(packageInfo, null, []);
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
11 changes: 0 additions & 11 deletions packages/api/src/detectPackage.ts

This file was deleted.

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

import './detectPackage.js';
import './packageDetect.js';

export * from './bundle.js';
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
// Copyright 2017-2023 @polkadot/api authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { packageInfo as deriveInfo } from '@polkadot/api-derive/packageInfo';
import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo';
import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { packageInfo as knownInfo } from '@polkadot/types-known/packageInfo';
import { detectPackage } from '@polkadot/util';

import { packageInfo } from './packageInfo.js';

export default [deriveInfo, coreInfo, providerInfo, typesInfo, knownInfo];
detectPackage(packageInfo, null, [coreInfo, deriveInfo, knownInfo, providerInfo, typesInfo]);
4 changes: 2 additions & 2 deletions packages/rpc-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
7 changes: 0 additions & 7 deletions packages/rpc-augment/src/detectOther.ts

This file was deleted.

11 changes: 0 additions & 11 deletions packages/rpc-augment/src/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/rpc-augment/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/rpc-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0

import './detectPackage.js';
import './packageDetect.js';

export * from './bundle.js';
13 changes: 13 additions & 0 deletions packages/rpc-augment/src/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2017-2023 @polkadot/rpc-augment authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { detectPackage } from '@polkadot/util';

import { packageInfo } from './packageInfo.js';

detectPackage(packageInfo, null, [coreInfo, typesInfo]);
4 changes: 2 additions & 2 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
7 changes: 0 additions & 7 deletions packages/rpc-core/src/detectOther.ts

This file was deleted.

11 changes: 0 additions & 11 deletions packages/rpc-core/src/detectPackage.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/rpc-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
// SPDX-License-Identifier: Apache-2.0

import './detectPackage.js';
import './packageDetect.js';

export * from './bundle.js';
13 changes: 13 additions & 0 deletions packages/rpc-core/src/packageDetect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2017-2023 @polkadot/rpc-core authors & contributors
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { detectPackage } from '@polkadot/util';

import { packageInfo } from './packageInfo.js';

detectPackage(packageInfo, null, [providerInfo, typesInfo]);
4 changes: 2 additions & 2 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
6 changes: 0 additions & 6 deletions packages/rpc-provider/src/detectOther.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/rpc-provider/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
// SPDX-License-Identifier: Apache-2.0

import './detectPackage.js';
import './packageDetect.js';

export * from './bundle.js';
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
// SPDX-License-Identifier: Apache-2.0

// Do not edit, auto-generated by @polkadot/dev
// (packageInfo imports will be kept as-is, user-editable)

import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
import { detectPackage } from '@polkadot/util';

import others from './detectOther.js';
import { packageInfo } from './packageInfo.js';

detectPackage(packageInfo, null, others);
detectPackage(packageInfo, null, [typesInfo]);
4 changes: 2 additions & 2 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"url": "https://github.com/polkadot-js/api.git"
},
"sideEffects": [
"./detectPackage.js",
"./detectPackage.cjs"
"./packageDetect.js",
"./packageDetect.cjs"
],
"type": "module",
"version": "10.11.2",
Expand Down
Loading

0 comments on commit 97116a3

Please sign in to comment.