mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:46:54 +00:00
0a0d09119b
* Create node.js.yml * fix: npm install command * fix: try to fix github action fail by use same react version * fix: try to fix github action fail by use same react version * fix: try to fix github action fail by use same react version * fix: try to fix github action fail by use same react version * fix: try to fix github action fail by build dependencies * fix: try to fix ci fail by types resolution * fix: try to fix ci fail by types resolution * fix: try to fix ci fail by types resolution * fix: try to fix ci fail by types resolution * fix: try to fix ci fail by types resolution * fix: try to fix ci fail by set env * fix: try to fix ci fail by pg version * fix: try to fix ci fail by fix types * fix(test): Type '""' is not assignable to type 'IndexType'. * fix(test): Type '""' is not assignable to type 'IndexType' Co-authored-by: Junyi <mytharcher@users.noreply.github.com> Co-authored-by: mytharcher <mytharcher@gmail.com>
26 lines
621 B
TypeScript
26 lines
621 B
TypeScript
import { readdirSync } from 'fs';
|
|
import { join } from 'path';
|
|
|
|
// utils must build before core
|
|
// runtime must build before renderer-react
|
|
const headPkgs = [
|
|
'database',
|
|
'resourcer',
|
|
'actions',
|
|
'client',
|
|
'server'
|
|
];
|
|
const tailPkgs = [];
|
|
const otherPkgs = readdirSync(join(__dirname, 'packages')).filter(
|
|
(pkg) => {
|
|
return !['father-build', 'app'].includes(pkg) && pkg.charAt(0) !== '.' && !headPkgs.includes(pkg) && !tailPkgs.includes(pkg)
|
|
},
|
|
);
|
|
|
|
export default {
|
|
target: 'node',
|
|
cjs: { type: 'babel', lazy: true },
|
|
// disableTypeCheck: true,
|
|
pkgs: [...headPkgs, ...otherPkgs, ...tailPkgs],
|
|
};
|