Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scripts/generate-package-manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ const { getAllPackageInfo, findGitRoot } = require('./monorepo/index');

// Generate "manifest" file with package.jsons of all the monorepo packages (mainly for ODSP)

const ommittedPackagePaths = ['react-components', 'packages/fluentui', 'web-components', 'apps/'];

const allPackageInfo = getAllPackageInfo();

for (const key in allPackageInfo) {
const normalizedPath = allPackageInfo[key]?.packagePath.split('\\').join('/');
ommittedPackagePaths.forEach(omittedPath => {
if (normalizedPath.includes(omittedPath)) {
delete allPackageInfo[key];
return;
}
});
}
const fuirVersion = allPackageInfo['@fluentui/react'].packageJson.version;
const packageInfoString = JSON.stringify(allPackageInfo, null, 2);

Expand Down