Skip to content

Commit 17dfb70

Browse files
Improve install process (#122)
* Start work for issue #102 * enhance: improve the install process * deps: update all dependencies * refactor: update imports to import type to follow standards * config: swap branch order in create pr dev tool * refactor: adjust code to meet coding standards * pr-review: implement requested changes * pr-review: implement requested changes * pr-review: implement requested changes * pr-review: implement requested changes
1 parent d20dc14 commit 17dfb70

8 files changed

Lines changed: 339 additions & 105 deletions

File tree

deno.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,16 @@
5858
"./release-notes/"
5959
],
6060
"imports": {
61-
"@std/fs": "jsr:@std/fs@1.0.19",
62-
"@std/path": "jsr:@std/path@1.1.2",
63-
"@std/assert": "jsr:@std/assert@1.0.15",
64-
"@std/streams": "jsr:@std/streams@1.0.13",
61+
"@std/fs": "jsr:@std/fs@1.0.23",
62+
"@std/path": "jsr:@std/path@1.1.4",
63+
"@std/assert": "jsr:@std/assert@1.0.19",
64+
"@std/streams": "jsr:@std/streams@1.0.17",
6565
"@cliffy/command": "jsr:@cliffy/command@1.0.0",
6666
"@cliffy/prompt": "jsr:@cliffy/prompt@1.0.0",
67-
"neverthrow": "npm:neverthrow@^6.2.2",
67+
"detect-indent": "npm:detect-indent@^7.0.2",
68+
"neverthrow": "npm:neverthrow@^8.2.0",
6869
"@kdclients": "jsr:@kinsondigital/kd-clients@1.0.0-preview.15",
69-
"@zod": "npm:zod@4.1.12",
70+
"@zod": "npm:zod@^4.3.6",
7071
"@sprocket": "jsr:@kinsondigital/sprocket@2.2.0"
7172
},
7273
"exports": {

deno.lock

Lines changed: 139 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-tools/create-pr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const featureBranch = await Input.prompt({
157157

158158
const chosenBaseBranch = await Select.prompt({
159159
message: "Choose the pull request base branch:",
160-
options: ["develop", "main"],
160+
options: ["main", "develop"],
161161
});
162162

163163
// If the chosen branch exists

dev-tools/prep-prod-release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (token === "") {
2626

2727
const ownerName = "KinsonDigital";
2828
const repoName = "sprocket";
29-
const prodLabel = "🚀production-release";
29+
const prodLabel = "production-release";
3030
const baseBranch = "main";
3131

3232
const releaseType = await Select.prompt<string>({

installation/core/deno.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Represents a standard deno task, which is either a command string or `undefined`.
3+
*/
4+
export type Task = string | undefined;
5+
6+
/**
7+
* Represents a structured deno task definition with a description, command, and optional dependencies.
8+
*/
9+
export type TaskDefinition = {
10+
/**
11+
* A human-readable description of what the task does.
12+
*/
13+
description: string;
14+
15+
/**
16+
* The command to execute when the task is run.
17+
*/
18+
command: string;
19+
20+
/**
21+
* An optional list of task names that must run before this task.
22+
*/
23+
dependencies?: string[];
24+
};
25+
26+
/**
27+
* A record of task names mapped to either a command string, a {@link Task}, or a {@link TaskDefinition}.
28+
*/
29+
export type Tasks = {
30+
[key: string]: Task | TaskDefinition;
31+
};
32+
33+
/**
34+
* Represents a deno configuration object, optionally containing a set of {@link Tasks}.
35+
*/
36+
export type DenoConfig = {
37+
/**
38+
* The optional collection of tasks defined in the configuration.
39+
*/
40+
tasks?: Tasks;
41+
};

0 commit comments

Comments
 (0)