Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding modifiers metadata #8

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading