-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve benchmark setup, consistently rely on publishConfig (#1648)
This commit has two related changes: 1. Clean up and document recent changes in the benchmark script. One of these changes is replacing ad-hoc rewrites of package.json files with a firm reliance on the publishConfig field, which should be reliable (since that's what we use when actually publishing). 2. Update all of the package.json files for published packages to have consistent publishConfig fields. This change also removed a bunch of historical cruft from the package.json files, which helped us to support environments during the ecosystem transition to package.json exports fields.
- Loading branch information
Showing
29 changed files
with
413 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ instrumentation.*.json | |
.cache | ||
**/*.tgz | ||
tracerbench-results | ||
.rollup.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { $ } from 'zx'; | ||
import chalk from 'chalk'; | ||
import { packages } from './packages.mjs'; | ||
|
||
/* | ||
Example JSON entry: | ||
{ | ||
name: '@glimmer/validator', | ||
version: '0.92.3', | ||
path: '/home/ykatz/Code/Ember/glimmer-vm/packages/@glimmer/validator', | ||
private: false, | ||
dependencies: { | ||
'@glimmer/env': [Object], | ||
'@glimmer/global-context': [Object], | ||
'@glimmer/interfaces': [Object], | ||
'@glimmer/util': [Object] | ||
}, | ||
devDependencies: { | ||
'@glimmer-workspace/build-support': [Object], | ||
'@glimmer/debug-util': [Object], | ||
'@glimmer/local-debug-flags': [Object], | ||
eslint: [Object], | ||
publint: [Object], | ||
rollup: [Object], | ||
typescript: [Object] | ||
} | ||
} | ||
*/ | ||
|
||
/** | ||
* @typedef {} PackageEntry | ||
*/ | ||
|
||
const entries = await packages('@glimmer'); | ||
|
||
const quiet = process.argv.includes('--quiet') || process.argv.includes('-q'); | ||
|
||
for (const entry of entries) { | ||
console.log(entry.name); | ||
if (!quiet) console.error(chalk.gray(` ${entry.path}`)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.