Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit a654222

Browse files
committed
feat(#4): Refactor main.ts
- Moved main.ts to src/main.ts - Updated deno.jsonc to reflect new main.ts location - Updated build and install scripts to use src/main.ts BREAKING CHANGE: The main.ts file has been moved to src/main.ts
1 parent 03530ff commit a654222

4 files changed

Lines changed: 20 additions & 4 deletions

File tree

deno.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"tasks": {
3-
"start": "deno run --allow-net --allow-read --allow-write --allow-env --allow-run=\"git,vim,gh\" main.ts",
3+
"start": "deno run --allow-net --allow-read --allow-write --allow-env --allow-run=\"git,vim,gh\" src/main.ts",
44
"install": "deno run --allow-read --allow-write --allow-run=\"git,vim,gh\" scripts/install.ts",
55
"build": "deno run --allow-read --allow-write --allow-run=\"git,vim,gh\" scripts/build.ts",
66
"update": "git pull && deno task install"
77
},
88
"name": "auto-commit",
99
"version": "1.0.0",
10-
"exports": "./main.ts",
10+
"exports": "./src/main.ts",
1111
"description": "Automatically generate git commit messages.",
1212
"author": "Sid Edwards",
1313
"license": "MIT"

deno.lock

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

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function build() {
5151
target.target,
5252
"--output",
5353
`dist/${filename}`,
54-
"main.ts"
54+
"src/main.ts"
5555
],
5656
stdout: "inherit",
5757
stderr: "inherit",

scripts/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function install() {
3131
"--allow-run=git,vim,gh",
3232
"--output",
3333
scriptPath,
34-
"main.ts"
34+
"src/main.ts"
3535
],
3636
stdout: "inherit",
3737
stderr: "inherit",

0 commit comments

Comments
 (0)