Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@
- More soon™

## How to install

1. Download the latest `index.js` from the [GitHub releases page](https://github.com/maltejur/directus-extension-generate-types/releases).
2. Put this `index.js` file into `<root of your project>/extensions/modules/generate-types/index.js`
2. 2. Put this `index.js` file into `<root of your project>/extensions/modules/generate-types/index.js`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michael-scheurer is this a typo?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. fixed now.

3. Go into the `Project Settings` of your directus project (`/admin/settings/project`) and enable the `Generate Types` module at the bottom of the page.

### Extra steps if using Directus version >= 11
2. Put the `index.js` file instead into `<root of your project>/extensions/generate-types/dist`
3. Copy and paste the https://github.com/maltejur/directus-extension-generate-types/blob/master/package.json file into `<root of your project>/extensions/generate-types`

## Contribute

Since I don't know all of the typing systems out there, I would greatly appreciate if you
Expand Down