summaryrefslogtreecommitdiff
path: root/tools/release/deno_workspace.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-03-16 20:33:14 -0400
committerGitHub <noreply@github.com>2022-03-16 20:33:14 -0400
commit92bb25105822d0def65aa89ee5141c862ac7a3e4 (patch)
treec3bceebc7da2e90165c985da9f2836ad4808449f /tools/release/deno_workspace.ts
parentf7ab41583e2bb4425ce7ac89b123089d0f07836a (diff)
chore: release script should automatically figure out CLI crate dependencies (#13992)
Diffstat (limited to 'tools/release/deno_workspace.ts')
-rw-r--r--tools/release/deno_workspace.ts35
1 files changed, 5 insertions, 30 deletions
diff --git a/tools/release/deno_workspace.ts b/tools/release/deno_workspace.ts
index 19c8f9998..6f5b64590 100644
--- a/tools/release/deno_workspace.ts
+++ b/tools/release/deno_workspace.ts
@@ -28,42 +28,17 @@ export class DenoWorkspace {
return this.#repo.crates;
}
- /** Gets the dependency crates used for the first part of the release process. */
- getDependencyCrates() {
- return [
- this.getBenchUtilCrate(),
- this.getSerdeV8Crate(),
- this.getCoreCrate(),
- ...this.getExtCrates(),
- this.getRuntimeCrate(),
- ];
- }
-
- getSerdeV8Crate() {
- return this.getCrate("serde_v8");
+ /** Gets the CLI dependency crates that should be published. */
+ getCliDependencyCrates() {
+ return this.getCliCrate()
+ .descendantDependenciesInRepo()
+ .filter((c) => c.name !== "test_util");
}
getCliCrate() {
return this.getCrate("deno");
}
- getCoreCrate() {
- return this.getCrate("deno_core");
- }
-
- getRuntimeCrate() {
- return this.getCrate("deno_runtime");
- }
-
- getBenchUtilCrate() {
- return this.getCrate("deno_bench_util");
- }
-
- getExtCrates() {
- const extPath = path.join(this.#repo.folderPath, "ext");
- return this.crates.filter((c) => c.manifestPath.startsWith(extPath));
- }
-
getCrate(name: string) {
return this.#repo.getCrate(name);
}