Skip to content

Commit

Permalink
feat: refactor into modules (#6)
Browse files Browse the repository at this point in the history
Moves the various stages into their own modules and simplifies the main
entrypoint because of that.

Also adds a `bin` to the `package.json`.
  • Loading branch information
43081j authored Aug 7, 2024
1 parent 1b7f72d commit 94b61db
Show file tree
Hide file tree
Showing 9 changed files with 485 additions and 453 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"lib",
"!lib/test"
],
"bin": {
"module-replacements": "./lib/bin.js",
"mr": "./lib/bin.js"
},
"scripts": {
"clean:build": "premove lib",
"clean:test": "premove coverage",
Expand Down
4 changes: 4 additions & 0 deletions src/bin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node
import {run} from './main.js';

run();
Loading

0 comments on commit 94b61db

Please sign in to comment.