mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-04 04:37:43 +08:00
21 lines
557 B
JavaScript
21 lines
557 B
JavaScript
import { readdirSync } from 'fs';
|
|
import { join } from 'path';
|
|
|
|
// utils must build before core
|
|
// runtime must build before renderer-react
|
|
const headPkgs = ['fes-runtime', 'fes-core'];
|
|
const tailPkgs = [];
|
|
// const otherPkgs = readdirSync(join(__dirname, 'packages')).filter(
|
|
// (pkg) =>
|
|
// pkg.charAt(0) !== '.' && !headPkgs.includes(pkg) && !tailPkgs.includes(pkg),
|
|
// );
|
|
|
|
const otherPkgs = [];
|
|
|
|
export default {
|
|
target: 'node',
|
|
cjs: { type: 'babel', lazy: true },
|
|
disableTypeCheck: true,
|
|
pkgs: [...headPkgs, ...otherPkgs, ...tailPkgs],
|
|
};
|