Skip to content

Commit

Permalink
Merge pull request #8 from codibre/modifier-metadata
Browse files Browse the repository at this point in the history
feat: adding modifiers metadata
  • Loading branch information
Farenheith authored Sep 24, 2024
2 parents 521d21d + 71cb319 commit 6ba4bdd
Show file tree
Hide file tree
Showing 20 changed files with 948 additions and 96 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.ts": "npm run lint:fix",
"*.js": "npm run lint:fix"
}
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Now, to use this plugin, do the following steps:
```json
"compilerOptions": {
"plugins": [
"nestjs-auto-reflect-metadata-emitter"
"nestjs-auto-reflect-metadata-emitter/plugin"
]
}
```
Expand All @@ -46,9 +46,8 @@ Finally, metadata may be a sensitive data of your application, so, you can erase
## What we're not doing yet.

* We're not generating metadata of get and set accessors;
* We're not discriminating between private and public properties;

Those are points of evolution of this library and we'll address them as soon as possible. If you have any suggestions or contributions to do, feel free to contact us!
This is a point of evolution of this library and we'll address them as soon as possible. If you have any suggestions or contributions to do, feel free to contact us!

## How to use it with Jest?

Expand All @@ -60,7 +59,7 @@ You can set the transformer of this library to run with jest following the examp
"ts-jest",
{
"astTransformers": {
"before": ["node_modules/nestjs-auto-reflect-metadata-emitter"]
"before": ["node_modules/nestjs-auto-reflect-metadata-emitter/plugin"]
}
}
]
Expand Down
2 changes: 0 additions & 2 deletions index.js

This file was deleted.

Loading

0 comments on commit 6ba4bdd

Please sign in to comment.