Closed Hotell closed 3 months ago
compare-reports
upload-reports
BREAKING CHANGES
report package name used within compare-reports and upload-reports cli command is constructed via name property from package.json or project.json
name
package.json
project.json
new configuration options to tweak behaviours
packageRoot?: async (filepath: string) => Promise<string>
defaults to (filepath) => findUp(['package.json', 'project.json'], { cwd: path.dirname(filepath) })
(filepath) => findUp(['package.json', 'project.json'], { cwd: path.dirname(filepath) })
packageName?: async (packageRoot: string) => Promise<string>;
defaults to package.json#name ?? project.json#name
package.json#name ?? project.json#name
Closes https://github.com/microsoft/monosize/issues/62
Before
compare-reports
andupload-reports
cli command is constructed via project folder nameAfter
BREAKING CHANGES
report package name used within
compare-reports
andupload-reports
cli command is constructed vianame
property frompackage.json
orproject.json
new configuration options to tweak behaviours
packageRoot?: async (filepath: string) => Promise<string>
defaults to
(filepath) => findUp(['package.json', 'project.json'], { cwd: path.dirname(filepath) })
packageName?: async (packageRoot: string) => Promise<string>;
defaults to
package.json#name ?? project.json#name
Closes https://github.com/microsoft/monosize/issues/62