An open API service indexing awesome lists of open source software.

https://github.com/bang9/changesets-playground

changesets playground
https://github.com/bang9/changesets-playground

Last synced: about 1 month ago
JSON representation

changesets playground

Awesome Lists containing this project

README

        

# changesets-playground

## .changeset/config.json

### options
https://github.com/changesets/changesets/blob/main/docs/config-file-options.md

### custom commit message

Use default generator

```json
{
commit: true
}
```

Use custom generator

```json
{
commit: ['./scripts/commit.js', { customOption: true }]
}
```

```ts
// scripts/commit.js

// type VersionType = 'major' | 'minor' | 'patch';
// type Release = {
// name: string;
// type: VersionType;
// }
// type Changeset = {
// summary: string;
// releases: Array;
// }
async function getAddMessage(changeset: Changeset, commitOptions: any): Promise {
}

// type NewChangeset = Changeset & {
// id: string;
// };
// type ComprehensiveRelease = {
// name: string;
// type: VersionType;
// oldVersion: string;
// newVersion: string;
// changesets: string[];
// };
// type ReleasePlan = {
// changesets: NewChangeset[];
// releases: ComprehensiveRelease[];
// preState: PreState | undefined;
// };
async function getVersionMessage(releasePlan: ReleasePlan, commitOptions: any): Promise {

}

module.exports = {
getAddMessage,
getVersionMessage
}
```