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:
parent
1efd21a4a0
commit
f708088ef7
2 changed files with 62 additions and 17 deletions
|
@ -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": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue