Skip to content

Commit

Permalink
fix(build-details): deep-merged into the package scaffolding results …
Browse files Browse the repository at this point in the history
…so scripts arent lost
  • Loading branch information
travi committed Jun 11, 2022
1 parent e67c44e commit 07f343f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/scaffolder/project-type/package/scaffolder-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ suite('package project-type', () => {

test('that the registry to publish to is defined when provided', async () => {
const publishRegistry = any.url();
const dialect = jsCore.dialects.BABEL;
buildDetails.default
.withArgs({projectRoot, projectName, packageBundlers, visibility, packageName, dialect, decisions})
.resolves(buildDetailsResults);

await scaffoldPackage({
projectRoot,
Expand All @@ -277,7 +281,8 @@ suite('package project-type', () => {
packageTypes,
tests,
publishRegistry,
dialect: jsCore.dialects.BABEL
dialect,
packageBundlers
});

assert.calledWith(
Expand Down
2 changes: 1 addition & 1 deletion src/scaffolder/project-type/package/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export default async function ({

return deepmerge.all([
{
...detailsForBuild,
documentation: scaffoldPackageDocumentation({packageName, visibility, scope, packageManager}),
eslintConfigs: [],
nextSteps: [
Expand All @@ -84,6 +83,7 @@ export default async function ({
scripts: {},
badges: defineBadges(packageName, visibility)
},
detailsForBuild,
results
]);
}

0 comments on commit 07f343f

Please sign in to comment.