Skip to content

Commit

Permalink
Remove unused dependency. Add flag -g when installing/upgrading.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed May 1, 2024
1 parent b07611e commit 029de60
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _For detailed documentation, visit [pup.56k.guru](https://pup.56k.guru)._

### Installation

To install Pup, open your terminal and execute the following command:
To install Pup, make sure you run the latest version of Deno (`deno upgrade`), then open your terminal and execute the following command:

```bash
deno run -Ar jsr:@pup/[email protected] setup --channel prerelease
Expand Down
4 changes: 2 additions & 2 deletions application.meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

const Application = {
name: "pup",
version: "1.0.0-rc.37",
version: "1.0.0-rc.38",
url: "jsr:@pup/pup@$VERSION",
canary_url: "https://raw.githubusercontent.com/Hexagon/pup/main/pup.ts",
deno: null, /* Minimum stable version of Deno required to run Pup (without --unstable-* flags) */
deno_unstable: "1.42.0", /* Minimum version of Deno required to run Pup (with --unstable-* flags) */
deno_unstable: "1.43.0", /* Minimum version of Deno required to run Pup (with --unstable-* flags) */
repository: "https://github.com/hexagon/pup",
changelog: "https://hexagon.github.io/pup/changelog.html",
permissions: [
Expand Down
15 changes: 7 additions & 8 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pup/pup",
"version": "1.0.0-rc.37",
"version": "1.0.0-rc.38",

"exports": {
".": "./pup.ts",
Expand Down Expand Up @@ -52,13 +52,12 @@
"@pup/api-definitions": "jsr:@pup/api-definitions@^1.0.2",
"@pup/common": "jsr:@pup/common@^1.0.3",
"@pup/plugin": "jsr:@pup/plugin@^1.0.1",
"@std/assert": "jsr:@std/assert@^0.223.0",
"@std/async": "jsr:@std/async@^0.223.0",
"@std/encoding": "jsr:@std/encoding@^0.223.0",
"@std/io": "jsr:@std/io@^0.223.0",
"@std/path": "jsr:@std/path@^0.223.0",
"@std/semver": "jsr:@std/semver@^0.223.0",
"@std/uuid": "jsr:@std/uuid@^0.223.0",
"@std/assert": "jsr:@std/assert@^0.224.0",
"@std/async": "jsr:@std/async@^0.224.0",
"@std/encoding": "jsr:@std/encoding@^0.224.0",
"@std/io": "jsr:@std/io@^0.224.0",
"@std/path": "jsr:@std/path@^0.224.0",
"@std/semver": "jsr:@std/semver@^0.224.0",
"dax-sh": "npm:dax-sh@^0.40.0",
"filesize": "npm:filesize@^10.1.1",
"json5": "npm:json5@^2.2.3",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Universal Process Manager"
},
"substitute": {
"$PUP_VERSION": "1.0.0-rc.37"
"$PUP_VERSION": "1.0.0-rc.38"
},
"top_links": [
{
Expand Down
2 changes: 2 additions & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ All notable changes to this project will be documented in this section.
- chore(core): Dependency update
- fix(core): Drop dependency on --unstable-net by replacing websocketstream with regular websockets
- fix(core): Add `/ipc` endpoint to the Rest API
- fix(deps): Remove unused dependency `@std/uuid`
- fix(cli): Add flag `-g` for global install when installing/upgrading

## [1.0.0-rc.37] - 2024-04-28

Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Pup is centered on a single configuration file, `pup.json`, which manages all as

### Installation

To install Pup, open your terminal and execute the following command:
To install Pup, make sure you run the latest version of Deno (`deno upgrade`), then open your terminal and execute the following command:

```bash
deno run -Ar jsr:@pup/pup@$PUP_VERSION setup --channel prerelease
Expand Down
2 changes: 1 addition & 1 deletion docs/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This section will guide you through the installation process of Pup.

Before proceeding with the installation, ensure that you have the following installed on your system:

- Deno (version `1.42.x` or higher): You can install Deno by following the official Deno [instructions](https://deno.com/manual/getting_started/installation).
- Deno (version `1.43.x` or higher): You can install Deno by following the official Deno [instructions](https://deno.com/manual/getting_started/installation).

## Installing or upgrading Pup

Expand Down
6 changes: 3 additions & 3 deletions lib/cli/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ export async function upgrade(
const installCmd = []

installCmd.push("install")
installCmd.push("-qfr") // Quite, Reload
installCmd.push("-qfrg") // Quite, Reload, Force reinstall, Global
if (allPermissions || !requestedVersion?.default_permissions) {
installCmd.push("-A")
installCmd.push("-A") // All permissions
} else {
installCmd.push(...requestedVersion!.default_permissions)
}
Expand All @@ -179,7 +179,7 @@ export async function upgrade(
if (unstableInstall) {
installCmd.push("--unstable-kv")
}
installCmd.push("-n", "pup")
installCmd.push("-n", "pup") // Installed command name = pup
installCmd.push(canaryInstall ? versions.canary_url : (requestedVersion as Version).url)

console.info(`\nRunning: deno ${installCmd.join(" ")}`)
Expand Down
14 changes: 14 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
"canary_url": "https://raw.githubusercontent.com/Hexagon/pup/main/pup.ts",
"stable": [],
"prerelease": [
{
"version": "1.0.0-rc.38",
"url": "jsr:@pup/[email protected]",
"deno": null,
"deno_unstable": "1.43.0",
"default_permissions": [
"--allow-env",
"--allow-read",
"--allow-write",
"--allow-sys=loadavg,systemMemoryInfo,osUptime,osRelease,uid,gid",
"--allow-net",
"--allow-run"
]
},
{
"version": "1.0.0-rc.37",
"url": "jsr:@pup/[email protected]",
Expand Down

0 comments on commit 029de60

Please sign in to comment.