Skip to content

Commit

Permalink
chore: Refactor manifest generation E2E tests to unit tests (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 authored Jan 2, 2024
1 parent 4f649fc commit b0eb7da
Show file tree
Hide file tree
Showing 6 changed files with 885 additions and 665 deletions.
6 changes: 4 additions & 2 deletions docs/guide/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ If not provided via the `manifest` config, the [manifest's `name`](https://devel

## `version` and `version_name`

The [manifest's `version` and `version_name`](https://developer.chrome.com/docs/extensions/mv3/manifest/version/) fields are based on your package.json's `version` property.
The [manifest's `version` and `version_name`](https://developer.chrome.com/docs/extensions/mv3/manifest/version/) properties are based on the `version` field listed in your `package.json` or `wxt.config.ts`.

- `version_name` is the exact string listed in your package.json
- `version_name` is the exact string listed in your `package.json` or `wxt.config.ts` file
- `version` is the string cleaned up, with any invalid suffixes removed

If a version is not found, a warning is logged and the version defaults to `"0.0.0"`.

### Example

```json
Expand Down
Loading

0 comments on commit b0eb7da

Please sign in to comment.