mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:38:51 +00:00
chore: allow specific build package
This commit is contained in:
parent
57003c6c02
commit
4d07ef5116
14
.fatherrc.ts
14
.fatherrc.ts
@ -17,9 +17,21 @@ const otherPkgs = readdirSync(join(__dirname, 'packages')).filter(
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let pkgs = [];
|
||||||
|
|
||||||
|
if (process.argv.length > 2) {
|
||||||
|
pkgs = process.argv;
|
||||||
|
pkgs.shift();
|
||||||
|
pkgs.shift();
|
||||||
|
} else {
|
||||||
|
pkgs = [...headPkgs, ...otherPkgs, ...tailPkgs];
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(pkgs);
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
cjs: { type: 'babel', lazy: true },
|
cjs: { type: 'babel', lazy: true },
|
||||||
// disableTypeCheck: true,
|
// disableTypeCheck: true,
|
||||||
pkgs: [...headPkgs, ...otherPkgs, ...tailPkgs],
|
pkgs,
|
||||||
};
|
};
|
||||||
|
@ -459,7 +459,6 @@ export abstract class Model extends SequelizeModel {
|
|||||||
|
|
||||||
for (const { item, target } of belongsToManyList) {
|
for (const { item, target } of belongsToManyList) {
|
||||||
const throughValues = item[throughName];
|
const throughValues = item[throughName];
|
||||||
console.log({ThroughModel: ThroughModel.options, throughName, item, throughValues})
|
|
||||||
if (throughValues && typeof throughValues === 'object') {
|
if (throughValues && typeof throughValues === 'object') {
|
||||||
const { foreignKey, sourceKey, otherKey } = association.options;
|
const { foreignKey, sourceKey, otherKey } = association.options;
|
||||||
const through = await ThroughModel.findOne({
|
const through = await ThroughModel.findOne({
|
||||||
|
Loading…
Reference in New Issue
Block a user