Re-organise cli.ts into functions and sub-commands

Add the necessary boilerplate for cli.ts to provide more than one
command, with the resource gathering step split out from the build
step in order for it to be re-usable.
This commit is contained in:
Hornwitser 2025-02-01 16:25:45 +01:00
parent 1efd21a4a0
commit f708088ef7
2 changed files with 62 additions and 17 deletions

View file

@ -6,7 +6,7 @@
"main": "build/node/index.js",
"scripts": {
"prepare": "tsc",
"build": "node --enable-source-maps build/node/cli.js",
"build": "node --enable-source-maps build/node/cli.js build",
"test": "node --test --enable-source-maps --experimental-test-coverage"
},
"dependencies": {