From 4eeced440d989426aa6dfeb3f5e3d11cde6680ef Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:08:33 +0100 Subject: [PATCH] chore: update urls to use pesde org --- Cargo.toml | 2 +- README.md | 4 ++-- docs/astro.config.mjs | 2 +- docs/src/content/docs/guides/dependencies.mdx | 2 +- docs/src/content/docs/guides/roblox.mdx | 2 +- .../content/docs/guides/self-hosting-registries.mdx | 6 +++--- docs/src/content/docs/installation.mdx | 2 +- docs/src/content/docs/quickstart.mdx | 4 ++-- docs/src/content/docs/reference/cli.mdx | 4 ++-- docs/src/content/docs/reference/manifest.mdx | 10 +++++----- fly.toml | 2 +- registry/Cargo.toml | 2 +- src/cli/config.rs | 8 ++------ website/src/routes/(app)/Hamburger.svelte | 2 +- website/src/routes/(app)/Header.svelte | 2 +- .../[[version]]/[[target]]/dependencies/+page.svelte | 5 ++++- 16 files changed, 29 insertions(+), 30 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5253124..ff07824 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" authors = ["daimond113 "] description = "A package manager for the Luau programming language, supporting multiple runtimes including Roblox and Lune" homepage = "https://pesde.daimond113.com" -repository = "https://github.com/daimond113/pesde" +repository = "https://github.com/pesde-pkg/pesde" include = ["src/**/*", "Cargo.toml", "Cargo.lock", "README.md", "LICENSE", "CHANGELOG.md"] [features] diff --git a/README.md b/README.md index 2fa94d5..5d79939 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@
- pesde logo + pesde logo

@@ -14,7 +14,7 @@ designed with multiple targets in mind, namely Roblox, Lune, and Luau. ## Installation pesde can be installed from GitHub Releases. You can find the latest release -[here](https://github.com/daimond113/pesde/releases). Once you have downloaded +[here](https://github.com/pesde-pkg/pesde/releases). Once you have downloaded the binary, run the following command to install it: ```sh diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 41d2334..d8e3ef7 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -10,7 +10,7 @@ export default defineConfig({ starlight({ title: "pesde docs", social: { - github: "https://github.com/daimond113/pesde", + github: "https://github.com/pesde-pkg/pesde", }, sidebar: [ { diff --git a/docs/src/content/docs/guides/dependencies.mdx b/docs/src/content/docs/guides/dependencies.mdx index 55232d8..08a1128 100644 --- a/docs/src/content/docs/guides/dependencies.mdx +++ b/docs/src/content/docs/guides/dependencies.mdx @@ -17,7 +17,7 @@ dependencies on packages published to a [pesde registry](https://pesde.daimond11 ```toml title="pesde.toml" [indices] -default = "https://github.com/daimond113/pesde-index" +default = "https://github.com/pesde-pkg/index" [dependencies] hello = { name = "pesde/hello", version = "^1.0.0" } diff --git a/docs/src/content/docs/guides/roblox.mdx b/docs/src/content/docs/guides/roblox.mdx index 44386f4..675b9f3 100644 --- a/docs/src/content/docs/guides/roblox.mdx +++ b/docs/src/content/docs/guides/roblox.mdx @@ -9,7 +9,7 @@ pesde can be used in Roblox projects, however this requires some extra setup. Namely, you need to specify a `roblox_sync_config_generator` script in order to generate the adequate configuration for the sync tool you are using. -The [`pesde-scripts`](https://github.com/daimond113/pesde-scripts) +The [`pesde-scripts`](https://github.com/pesde-pkg/scripts) repository contains a list of scripts for different sync tools. If the tool you are using is not supported, you can write your own script and submit a PR to get it added. diff --git a/docs/src/content/docs/guides/self-hosting-registries.mdx b/docs/src/content/docs/guides/self-hosting-registries.mdx index c856d4d..82dfa38 100644 --- a/docs/src/content/docs/guides/self-hosting-registries.mdx +++ b/docs/src/content/docs/guides/self-hosting-registries.mdx @@ -80,7 +80,7 @@ The registry is a web server that provides package downloads and the ability to publish packages. The official registry implementation is available in the -[pesde GitHub repository](https://github.com/daimond113/pesde/tree/0.5/registry). +[pesde GitHub repository](https://github.com/pesde-pkg/pesde/tree/0.5/registry). Configuring the registry is done using environment variables. In order to allow the registry to access the index repository, you must use an account that @@ -97,7 +97,7 @@ for this purpose. ### General configuration - **INDEX_REPO_URL**: The URL of the index repository. This is required.\ - Example: `https://github.com/daimond113/pesde-index.git` + Example: `https://github.com/pesde-pkg/index.git` - **GIT_USERNAME**: The username of a Git account that has push access to the index repository. This is required. @@ -193,7 +193,7 @@ The registry supports [Sentry](https://sentry.io/) for error tracking. First clone the repository and navigate to the repository directory: ```sh -git clone https://github.com/daimond113/pesde.git +git clone https://github.com/pesde-pkg/pesde.git cd pesde ``` diff --git a/docs/src/content/docs/installation.mdx b/docs/src/content/docs/installation.mdx index 3cb8f8c..39f422f 100644 --- a/docs/src/content/docs/installation.mdx +++ b/docs/src/content/docs/installation.mdx @@ -17,7 +17,7 @@ You can follow the installation instructions in the -1. Go to the [GitHub releases page](https://github.com/daimond113/pesde/releases/latest). +1. Go to the [GitHub releases page](https://github.com/pesde-pkg/pesde/releases/latest). 2. Download the corresponding archive for your operating system. You can choose whether to use the `.zip` or `.tar.gz` files. diff --git a/docs/src/content/docs/quickstart.mdx b/docs/src/content/docs/quickstart.mdx index 2c564f8..ab6472f 100644 --- a/docs/src/content/docs/quickstart.mdx +++ b/docs/src/content/docs/quickstart.mdx @@ -54,7 +54,7 @@ the path to the main script of our package. + bin = "main.luau" [indices] - default = "https://github.com/daimond113/pesde-index" + default = "https://github.com/pesde-pkg/index" ``` Don't forget to save the file after making the changes. @@ -98,7 +98,7 @@ You should see that `pesde.toml` has been updated with the new dependency. bin = "main.luau" [indices] - default = "https://github.com/daimond113/pesde-index" + default = "https://github.com/pesde-pkg/index" + [dependencies] + hello = { name = "pesde/hello", version = "^1.0.0" } diff --git a/docs/src/content/docs/reference/cli.mdx b/docs/src/content/docs/reference/cli.mdx index dc3de81..7784c22 100644 --- a/docs/src/content/docs/reference/cli.mdx +++ b/docs/src/content/docs/reference/cli.mdx @@ -49,7 +49,7 @@ is printed. - `-r, --reset`: Resets the default index. -The default index is [`pesde-index`](https://github.com/daimond113/pesde-index). +The default index is [`pesde-index`](https://github.com/pesde-pkg/index). ### `pesde config scripts-repo` @@ -62,7 +62,7 @@ scripts repository is printed. - `-r, --reset`: Resets the scripts repository. -The default scripts repository is [`pesde-scripts`](https://github.com/daimond113/pesde-scripts). +The default scripts repository is [`pesde-scripts`](https://github.com/pesde-pkg/scripts). ## `pesde init` diff --git a/docs/src/content/docs/reference/manifest.mdx b/docs/src/content/docs/reference/manifest.mdx index 8851ab0..1e9cd16 100644 --- a/docs/src/content/docs/reference/manifest.mdx +++ b/docs/src/content/docs/reference/manifest.mdx @@ -28,7 +28,7 @@ may only contain lowercase letters, numbers, and underscores. The first one to publish to a given scope gets to own it. If you want multiple people to be able to publish to the same scope, you can send a pull request to -the [pesde-index GitHub repository](https://github.com/daimond113/pesde-index) +the [pesde-index GitHub repository](https://github.com/pesde-pkg/index) and add the GitHub user ID of the other person to the `owners` field of the `scope.toml` file of the given scope. For more information, see [policies](/registry/policies#package-ownership). @@ -178,7 +178,7 @@ of files specified within the [`target.build_files`](#build_files) of the package. You can find template scripts inside the -[`pesde-scripts` repository](https://github.com/daimond113/pesde-scripts) +[`pesde-scripts` repository](https://github.com/pesde-pkg/scripts) for various sync tools. ### `sourcemap_generator` @@ -205,7 +205,7 @@ through `process.args`. ## `[indices]` @@ -215,7 +215,7 @@ installed from. ```toml [indices] -default = "https://github.com/daimond113/pesde-index" +default = "https://github.com/pesde-pkg/index" acme = "https://github.com/acme/pesde-index" ``` diff --git a/fly.toml b/fly.toml index b930aa6..fd677c6 100644 --- a/fly.toml +++ b/fly.toml @@ -10,7 +10,7 @@ ADDRESS = '0.0.0.0' PORT = '8080' COMMITTER_GIT_NAME = 'pesde index updater' COMMITTER_GIT_EMAIL = 'pesde@daimond113.com' -INDEX_REPO_URL = 'https://github.com/daimond113/pesde-index' +INDEX_REPO_URL = 'https://github.com/pesde-pkg/index' [http_service] internal_port = 8080 diff --git a/registry/Cargo.toml b/registry/Cargo.toml index 3455de2..05d0709 100644 --- a/registry/Cargo.toml +++ b/registry/Cargo.toml @@ -2,7 +2,7 @@ name = "pesde-registry" version = "0.7.0" edition = "2021" -repository = "https://github.com/daimond113/pesde-index" +repository = "https://github.com/pesde-pkg/index" publish = false [dependencies] diff --git a/src/cli/config.rs b/src/cli/config.rs index 2049d51..add7097 100644 --- a/src/cli/config.rs +++ b/src/cli/config.rs @@ -25,12 +25,8 @@ pub struct CliConfig { impl Default for CliConfig { fn default() -> Self { Self { - default_index: "https://github.com/daimond113/pesde-index" - .try_into() - .unwrap(), - scripts_repo: "https://github.com/daimond113/pesde-scripts" - .try_into() - .unwrap(), + default_index: "https://github.com/pesde-pkg/index".try_into().unwrap(), + scripts_repo: "https://github.com/pesde-pkg/scripts".try_into().unwrap(), tokens: Tokens(Default::default()), diff --git a/website/src/routes/(app)/Hamburger.svelte b/website/src/routes/(app)/Hamburger.svelte index a8db89c..32641f9 100644 --- a/website/src/routes/(app)/Hamburger.svelte +++ b/website/src/routes/(app)/Hamburger.svelte @@ -60,7 +60,7 @@ diff --git a/website/src/routes/(app)/packages/[scope]/[name]/[[version]]/[[target]]/dependencies/+page.svelte b/website/src/routes/(app)/packages/[scope]/[name]/[[version]]/[[target]]/dependencies/+page.svelte index de660fe..d5df99c 100644 --- a/website/src/routes/(app)/packages/[scope]/[name]/[[version]]/[[target]]/dependencies/+page.svelte +++ b/website/src/routes/(app)/packages/[scope]/[name]/[[version]]/[[target]]/dependencies/+page.svelte @@ -52,7 +52,10 @@ : (dependencyInfo.target ?? $page.params.target ?? data.pkg.targets[0].kind)} {@const isOfficialRegistry = isWally ? dependencyInfo.index.toLowerCase() === "https://github.com/upliftgames/wally-index" - : dependencyInfo.index.toLowerCase() === "https://github.com/daimond113/pesde-index"} + : [ + "https://github.com/daimond113/pesde-index", + "https://github.com/pesde-pkg/index", + ].includes(dependencyInfo.index.toLowerCase())}