Skip to content

Conversation

@Hotell
Copy link
Contributor

@Hotell Hotell commented Oct 18, 2023

Previous Behavior

generate manifests adds packages that are not v8 related.

New Behavior

  • generate manifests adds only v8 related packages and makes the contract correct
image
  • script prints paths that have been created for better DX
image
  • script is now generic and can be customized via CLI in future if needed

Related Issue(s)

  • Fixes #

@Hotell Hotell added Area: Build System Fluent UI react (v8) Issues about @fluentui/react (v8) labels Oct 18, 2023
@fabricteam
Copy link
Collaborator

fabricteam commented Oct 18, 2023

📊 Bundle size report

🤖 This report was generated against aa6771ed95c5af78f413b3c20068867f032cf4c4

@Hotell Hotell force-pushed the hotell/fix-generate-package-manifest branch from c27e1d3 to 301b051 Compare October 18, 2023 14:34
@Hotell Hotell marked this pull request as ready for review October 18, 2023 14:35
@Hotell Hotell requested a review from a team as a code owner October 18, 2023 14:35
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 301b051:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@size-auditor
Copy link

size-auditor bot commented Oct 18, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: aa6771ed95c5af78f413b3c20068867f032cf4c4 (build)

@Hotell Hotell changed the title fix(scripts-generators): refacrtor generate-package-manifest to create manifest only from v8 monorepo packages fix(scripts-generators): create manifest only from v8 monorepo packages within generate-package-manifest Oct 18, 2023
function main(tag, manifestRoot, rootPackage) {
const allPackageInfo = getAllPackageInfo();

const filteredPackages = Object.entries(allPackageInfo).reduce((acc, curr) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: might be easier to call Object.fromEntries after filtering by the object entries

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you elaborate a bit more ?

You mean using following ?

Object.fromEntries(Object.entries(allPackageInfo).map(...)) ?

if that's the case I dont think its more readable/faster than reduce

@Hotell Hotell merged commit d35fc26 into microsoft:master Nov 1, 2023
@Hotell Hotell deleted the hotell/fix-generate-package-manifest branch November 1, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Build System Fluent UI react (v8) Issues about @fluentui/react (v8)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants