fix: config

This commit is contained in:
cha0s 2024-01-23 23:59:42 -06:00
parent a98070ba6a
commit e001c771ee
4 changed files with 4 additions and 5 deletions

View File

@ -5,4 +5,3 @@
"useNx": true,
"version": "3.0.0"
}

View File

@ -5,4 +5,4 @@
"cache": true
}
}
}
}

View File

@ -41,9 +41,9 @@ const {
'build/flecks.yml',
transform((chunk, encoding, done, stream) => {
const yml = loadYml(chunk);
yml['@flecks/core'] = {id: app};
yml['@flecks/core'].id = app;
if ('npm' !== packageManager) {
yml['@flecks/core'].packageManager = packageManager;
yml['@flecks/build'].packageManager = packageManager;
}
stream.push(dumpYml(yml, {forceQuotes: true, sortKeys: true}));
done();

View File

@ -68,7 +68,7 @@ const target = async (fleck) => {
const {alias, add} = o;
try {
const flecks = await Build.from();
const {packageManager} = flecks.get('@flecks/core');
const {packageManager} = flecks.get('@flecks/build');
const isMonorepo = await checkIsMonorepo();
const [scope, pkg] = await target(fleck);
const name = [scope, pkg].filter((e) => !!e).join('/');