docs: update docs to use globs in includes

This commit is contained in:
daimond113 2024-11-24 17:42:28 +01:00
parent 37a7c34084
commit b6a4d39c51
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C
4 changed files with 8 additions and 9 deletions

View file

@ -12,15 +12,14 @@ Before you can publish a package, you must configure the required fields in your
### `includes`
The `includes` field is a list of files and directories that should be included
in the package.
The `includes` field is a list of globs that should be included in the package.
```toml
includes = [
"pesde.toml",
"README.md",
"LICENSE",
"init.luau",
"src/**/*.luau",
]
```

View file

@ -99,7 +99,7 @@ includes = [
"pesde.toml",
"LICENSE",
"README.md",
"src",
"src/**/*.luau",
]
[target]

View file

@ -88,8 +88,8 @@ has access to the index repository. We recommend using a separate account
for this purpose.
<Aside>
For a GitHub account the password **must** be a personal access token. For instructions on how to
create a personal access token, see the [GitHub
For a GitHub account the password **must** be a personal access token. For
instructions on how to create a personal access token, see the [GitHub
documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).
The access token must have read and write access to the index repository.
</Aside>

View file

@ -71,8 +71,8 @@ package cannot be published to the registry.
### `includes`
List of top-level files and directories to include in the package when
publishing. Files not listed here will not be published.
List of globs to include in the package when publishing. Files and directories
not listed here will not be published.
```toml
includes = [
@ -80,7 +80,7 @@ includes = [
"README.md",
"LICENSE",
"init.luau",
"docs",
"docs/**/*.md",
]
```