mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
docs: update docs to use globs in includes
This commit is contained in:
parent
37a7c34084
commit
b6a4d39c51
4 changed files with 8 additions and 9 deletions
|
@ -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",
|
||||
]
|
||||
```
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ includes = [
|
|||
"pesde.toml",
|
||||
"LICENSE",
|
||||
"README.md",
|
||||
"src",
|
||||
"src/**/*.luau",
|
||||
]
|
||||
|
||||
[target]
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
]
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue