Skip to content

Commit

Permalink
✨ add install alias and fix --use-on-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
salamaashoush committed Oct 23, 2024
1 parent 6afa43c commit 640621d
Show file tree
Hide file tree
Showing 19 changed files with 266 additions and 204 deletions.
9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env_logger = "0.11"
indoc = "2.0"
log = "0.4"
node-semver = "2.1"
sysinfo = "0.31"
sysinfo = "0.32"
tar = "0.4"
tempfile = "3.13"
thiserror = "1.0"
Expand All @@ -42,7 +42,7 @@ flate2 = "1.0"
walkdir = "2.5"
indicatif = { version = "0.17", features = ["improved_unicode"] }
regex = "1.11"

xz2 = "0.1"
[dev-dependencies]
pretty_assertions = "1.4"
duct = "0.13"
Expand Down Expand Up @@ -75,3 +75,8 @@ strip = true

[package.metadata.cargo-shear]
ignored = ["csv", "junction"]

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/pactup_v{ version }/{ name }-{ target-family }-{ target-arch }-{ target-libc }{ archive-suffix }"
bin-dir = "{ name }-{ target-family }-{ target-arch }-{ target-libc }{ binary-ext }"
pkg-fmt = "tar.gz"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Where `<SHELL>` can be one of the supported shells:
- `bash`
- `zsh`
- `fish`
- `power-shell`
- `powershell`

Please follow your shell instructions to install them.

Expand Down Expand Up @@ -143,7 +143,7 @@ pactup env --use-on-cd --shell fish | source
Add the following to the end of your profile file:

```powershell
pactup env --use-on-cd --shell power-shell | Out-String | Invoke-Expression
pactup env --use-on-cd --shell powershell | Out-String | Invoke-Expression
```

- For macOS/Linux, the profile is located at `~/.config/powershell/Microsoft.PowerShell_profile.ps1`
Expand All @@ -155,7 +155,7 @@ pactup env --use-on-cd --shell power-shell | Out-String | Invoke-Expression

#### Windows Command Prompt aka Batch aka WinCMD

pactup is also supported but is not entirely covered. [You can set up a startup script](https://superuser.com/a/144348) and append the following lines:
pactup is also supported but is not entirely covered. You can set up a startup script for [cmd.exe](https://superuser.com/a/144348) or [Windows Terminal](https://superuser.com/a/1855283) and append the following lines:

```batch
@echo off
Expand Down
18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "[email protected]:kadena-community/pactup.git"
},
"author": "Salama Ashoush <[email protected]>",
"packageManager": "[email protected].0",
"packageManager": "[email protected].2",
"license": "MIT",
"description": "Linter for the JavaScript Oxidation Compiler",
"keywords": [
Expand Down Expand Up @@ -45,18 +45,28 @@
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.9",
"@types/node": "^22.7.4",
"@types/node": "^22.7.9",
"@types/shell-escape": "^0.2.3",
"chalk": "^5.3.0",
"cmd-ts": "0.13.0",
"cross-env": "^7.0.3",
"execa": "9.4.0",
"execa": "9.4.1",
"lerna-changelog": "2.2.0",
"prettier": "3.3.3",
"pv": "1.0.1",
"shell-escape": "^0.2.0",
"svg-term-cli": "2.1.1",
"tsx": "^4.19.1",
"typescript": "^5.6.2"
"typescript": "^5.6.3"
},
"pnpm": {
"overrides": {
"xmldom@<0.5.0": ">=0.5.0",
"node-fetch@<2.6.7": ">=2.6.7",
"trim-newlines@<3.0.1": ">=3.0.1",
"plist@<3.0.5": ">=3.0.5",
"nth-check@<2.0.1": ">=2.0.1",
"micromatch@<4.0.8": ">=4.0.8"
}
}
}
Loading

0 comments on commit 640621d

Please sign in to comment.