fix: config
This commit is contained in:
parent
a98070ba6a
commit
e001c771ee
|
@ -5,4 +5,3 @@
|
||||||
"useNx": true,
|
"useNx": true,
|
||||||
"version": "3.0.0"
|
"version": "3.0.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,9 +41,9 @@ const {
|
||||||
'build/flecks.yml',
|
'build/flecks.yml',
|
||||||
transform((chunk, encoding, done, stream) => {
|
transform((chunk, encoding, done, stream) => {
|
||||||
const yml = loadYml(chunk);
|
const yml = loadYml(chunk);
|
||||||
yml['@flecks/core'] = {id: app};
|
yml['@flecks/core'].id = app;
|
||||||
if ('npm' !== packageManager) {
|
if ('npm' !== packageManager) {
|
||||||
yml['@flecks/core'].packageManager = packageManager;
|
yml['@flecks/build'].packageManager = packageManager;
|
||||||
}
|
}
|
||||||
stream.push(dumpYml(yml, {forceQuotes: true, sortKeys: true}));
|
stream.push(dumpYml(yml, {forceQuotes: true, sortKeys: true}));
|
||||||
done();
|
done();
|
||||||
|
|
|
@ -68,7 +68,7 @@ const target = async (fleck) => {
|
||||||
const {alias, add} = o;
|
const {alias, add} = o;
|
||||||
try {
|
try {
|
||||||
const flecks = await Build.from();
|
const flecks = await Build.from();
|
||||||
const {packageManager} = flecks.get('@flecks/core');
|
const {packageManager} = flecks.get('@flecks/build');
|
||||||
const isMonorepo = await checkIsMonorepo();
|
const isMonorepo = await checkIsMonorepo();
|
||||||
const [scope, pkg] = await target(fleck);
|
const [scope, pkg] = await target(fleck);
|
||||||
const name = [scope, pkg].filter((e) => !!e).join('/');
|
const name = [scope, pkg].filter((e) => !!e).join('/');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user