beatrizsmerino / beatrizsmerino/angular-setup

feat(package): add `author` metadata as `JSON` object to `package.json`

Open
#11 0 comments 0 reactions 1 assignee Claimed by @beatrizsmerino View on GitHub
configuration enhancement
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# feat(package): add `author` metadata as `JSON` object to `package.json`

| ⏱️ Estimate | πŸ“Š Priority | πŸ“ Size | πŸ“… Start | πŸ“… End |
| --- | --- | --- | --- | --- |
| 1h | P2 | XS | 02-03-2026 | 02-03-2026 |

## πŸ“Έ Screenshots

| Current | Expected |
| :---: | :---: |
| N/A β€” This change has no visual impact. | N/A β€” This change has no visual impact. |

## πŸ“ Summary

- Add `author` field to `package.json` as a JSON object with `name`, `email` and `url` properties
- Use structured metadata instead of a plain string value

## πŸ’‘ Why this change?

- A JSON object allows tools and registries to parse each field independently
- Follows the npm recommended object format for `author` metadata

## βœ… Benefits

- The `name`, `email` and `url` are individually accessible by npm, bundlers and documentation generators
- Follows the npm recommended object format for `author` metadata

## πŸ“‹ Steps

### Phase 1: Add author field
- [x] Add `author` field to `package.json`:

```diff
{
"name": "angular-setup",
"version": "0.0.0",
+ "author": {
+ "name": "Beatriz SopeΓ±a Merino",
+ "email": "beatrizsmerino@gmail.com",
+ "url": "https://github.com/beatrizsmerino"
+ },
"license": "MIT",
...
}
```

## πŸ§ͺ Tests

- [x] Verify `package.json` is valid:

```bash
npm install
```

## πŸ”— References

### Files to modify
- `package.json`

### Documentation
- https://docs.npmjs.com/cli/v10/configuring-npm/package-json#people-fields-author-contributors

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.