Compare commits

..

No commits in common. "4d1470de5692e573614a5d20f22d868f693c0bc5" and "eac55e01c5a5d79b1567a64cbfb107a599e2f4d6" have entirely different histories.

3 changed files with 6 additions and 9 deletions

View file

@ -11,7 +11,7 @@
- [winget](https://github.com/microsoft/winget-cli)
## usage
- `bun i @grng/mix -g`, then `mix <command> <args>`
- OR `bunx @grng/mix <command> <args>`
- `bun i mix -g`, then `mix <command> <args>`
- OR `bunx mix <command> <args>`
- `mix init` to create your mixfile & lock file
- `mix sync` to install/remove/update/config packages

View file

@ -1,5 +1,5 @@
import type { Command } from "commander";
import { existsSync, mkdirSync, readdirSync, writeFileSync } from "fs";
import { readdirSync, writeFileSync } from "fs";
import * as h from "hjson";
import { homedir } from "os";
import path from "path";
@ -16,11 +16,8 @@ export const registerInitCommand = (p: Command) => {
process.exit(1);
}
// userhomedir/.mix/mix.hjson
const mixDir = isDev ? "" : path.join(homedir(), ".mix");
if (mixDir && !existsSync(mixDir)) {
mkdirSync(mixDir, { recursive: true });
}
writeFileSync(path.join(mixDir, "mix.hjson"), h.stringify({
default: {
packages: []

View file

@ -6,7 +6,7 @@ const program = new Command();
program
.name('mix')
.description('a declerative file-based package manager for windows.')
.version('0.0.5', '-v, --version', 'output the current version');
.version('0.0.4', '-v, --version', 'output the current version');
registerCommands(program);
program.parse();