From 6cca1a1dedd468348249775e33313973f63aad9a Mon Sep 17 00:00:00 2001 From: Thiago Date: Fri, 27 Sep 2024 08:59:43 -0300 Subject: [PATCH] fix: making tsconfig-paths dev dependency --- decorator.js | 2 ++ package.json | 6 ++---- src/plugin/emitter.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 decorator.js diff --git a/decorator.js b/decorator.js new file mode 100644 index 0000000..4c3e1f7 --- /dev/null +++ b/decorator.js @@ -0,0 +1,2 @@ +module.exports = require('./dist/plugin/decorators'); +module.exports.default = module.exports; diff --git a/package.json b/package.json index 24880af..c67bf53 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "main": "dist/index.js", "files": [ "dist", + "decorator.js", "plugin.js" ], "scripts": { @@ -36,10 +37,7 @@ "typescript": "^5.3.3" }, "peerDependencies": { - "@nestjs/cli": "*", - "reflect-metadata": "*", - "tsconfig-paths": "*", - "typescript": "^5.3.3" + "reflect-metadata": "*" }, "contributors": [ "Thiago O Santos " diff --git a/src/plugin/emitter.ts b/src/plugin/emitter.ts index e3db68e..5ca36d3 100644 --- a/src/plugin/emitter.ts +++ b/src/plugin/emitter.ts @@ -115,7 +115,7 @@ export function before() { undefined, [ tsBinary.factory.createStringLiteral( - 'nestjs-auto-reflect-metadata-emitter/plugin', + 'nestjs-auto-reflect-metadata-emitter/decorators', ), ], );