mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-04-22 02:08:03 +00:00
5d54192e6d
- Update all copyright headers from 2025 to 2026 - Fix @polkadot references to @pezkuwi in config files - Fix eslint.config.js import path Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
777 B
JavaScript
39 lines
777 B
JavaScript
// Copyright 2017-2026 @pezkuwi/extension authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import path from 'path';
|
|
|
|
import { createBundle } from '@pezkuwi/dev/config/rollup';
|
|
|
|
const pkgs = [
|
|
'@pezkuwi/extension-dapp'
|
|
];
|
|
|
|
const external = [
|
|
...pkgs,
|
|
'@pezkuwi/networks',
|
|
'@pezkuwi/util',
|
|
'@pezkuwi/util-crypto'
|
|
];
|
|
|
|
const entries = ['extension-base', 'extension-chains', 'extension-inject'].reduce((all, p) => ({
|
|
...all,
|
|
[`@pezkuwi/${p}`]: path.resolve(process.cwd(), `packages/${p}/build`)
|
|
}), {});
|
|
|
|
const overrides = {};
|
|
|
|
export default pkgs.map((pkg) => {
|
|
const override = (overrides[pkg] || {});
|
|
|
|
return createBundle({
|
|
external,
|
|
pkg,
|
|
...override,
|
|
entries: {
|
|
...entries,
|
|
...(override.entries || {})
|
|
}
|
|
});
|
|
});
|