Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
1fa972ab5a | |||
aa0703966a | |||
152386bcbf | |||
d12d483f64 | |||
e9788879fb |
6 changed files with 411 additions and 366 deletions
|
@ -1,4 +1,4 @@
|
|||

|
||||

|
||||
|
||||
# horizr CLI
|
||||

|
||||
|
@ -15,7 +15,7 @@
|
|||
## Usage
|
||||
|
||||
Because both [pkg](https://github.com/vercel/pkg) and [nexe](https://github.com/nexe/nexe) don’t support ES modules at the time of writing,
|
||||
I can‘t publish executable files.
|
||||
I can’t publish executable files.
|
||||
|
||||
The only way of installing is therefore `npm`.
|
||||
|
||||
|
@ -28,7 +28,6 @@ Run any command with the `-h` flag to see the available options.
|
|||
A new pack can be initialized using `horizr init <path>`.
|
||||
|
||||
## Contributing
|
||||
|
||||
I developed this tool primarily for my own packs, that’s why its missing some features I didn’t absolutely need.
|
||||
|
||||
Nevertheless, if you want a feature added, feel free to [create an issue](https://github.com/horizr/cli/issues/new).
|
||||
|
@ -38,3 +37,4 @@ Features I have in mind:
|
|||
- List disabled source files
|
||||
- Allow disabling static source files by adding `.disabled` to their name
|
||||
- Import packwiz packs
|
||||
- Hot-reloading `packwiz dev` command
|
||||
|
|
BIN
banner.png
Normal file
BIN
banner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@horizr/cli",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"main": "./dist/main.js",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
|
@ -12,7 +12,7 @@
|
|||
"check": "tsc --noEmit"
|
||||
},
|
||||
"bin": {
|
||||
"horizr": "bin/horizr.js"
|
||||
"horizr": "./bin/horizr.js"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
762
pnpm-lock.yaml
generated
762
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
@ -67,6 +67,7 @@ export const activateCommand = new Command("activate")
|
|||
|
||||
await fs.mkdirp(absolutePath.parent().toString())
|
||||
await writeJsonFile(absolutePath, metaFileContentSchema, {
|
||||
displayName: modrinthMod.title,
|
||||
formatVersion: FORMAT_VERSION,
|
||||
enabled: true,
|
||||
version: getMetaFileContentVersionForModrinth(modrinthVersion),
|
||||
|
|
|
@ -8,9 +8,9 @@ import { IndexedFile, PACKWIZ_EXPORT_DIRECTORY_NAME, writeAndIndexMetaFile, writ
|
|||
export const exportCommand = new Command("export")
|
||||
.description("Export a packwiz pack.")
|
||||
.option("-s, --server", "Use server overrides instead of client overrides. Only applies to static files.")
|
||||
.action(async (path, options) => {
|
||||
.action(async (path, command) => {
|
||||
const pack = await usePack()
|
||||
const side: Side = options.server ? "server" : "client"
|
||||
const side: Side = command.opts().server ? "server" : "client"
|
||||
const loader = output.startLoading("Exporting")
|
||||
|
||||
const outputDirectoryPath = pack.paths.exports.resolve(PACKWIZ_EXPORT_DIRECTORY_NAME)
|
||||
|
|
Loading…
Add table
Reference in a new issue