mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-01 03:07:38 +08:00
38 lines
885 B
JavaScript
38 lines
885 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-compiler",
|
|
"fes",
|
|
"fes-preset-built-in",
|
|
"fes-plugin-request",
|
|
"fes-plugin-access",
|
|
"fes-plugin-model",
|
|
"fes-plugin-layout",
|
|
"fes-plugin-icon",
|
|
"fes-plugin-locale",
|
|
"fes-plugin-enums",
|
|
"fes-plugin-jest",
|
|
"fes-plugin-vuex",
|
|
"create-fes-app",
|
|
"fes-plugin-qiankun"
|
|
];
|
|
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: false },
|
|
disableTypeCheck: true,
|
|
pkgs: [...headPkgs, ...otherPkgs, ...tailPkgs],
|
|
};
|