Skip to content

Commit e15e5db

Browse files
committed
More wording changes because I'm dumb
1 parent ccdd0fd commit e15e5db

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/content/docs/dev/mappings.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,21 @@ type Exports = {
5454
export default Exports;
5555
```
5656

57-
When adding a new module, or adding types to an existing module:
57+
When adding a new module:
58+
59+
- `node generate.js imports --write` to write the new `src/modules.ts`
60+
61+
When adding types to a module:
5862

5963
- Add its path and a name to `generate.js`
6064
- Name should be the last part of the path except in cases where it breaks syntax (e.g. `highlight.js` -> `HighlightJS`)
6165
- Mappings for CSS class names should replace `.css` with `CSS`
6266
- `node generate.js types --write` to generate the new type index
63-
- Format with Prettier
6467
- `node generate.js declares "@moonlight-mod/wp/" > ../moonlight/packages/types/src/mappings.d.ts` to update import statements in moonlight
6568
- You don't have to do this unless you're a moonlight core developer
6669

70+
Remember to format with Prettier!
71+
6772
## Finding names
6873

6974
Names in the mappings repo are a combination of:

0 commit comments

Comments
 (0)