Skip to content

Commit

Permalink
➕ Add reflect-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Sep 29, 2024
1 parent 2f680d9 commit 4bcd1e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/abi.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
},
"dependencies": {
"@deno/shim-deno": "^0.19.2",
"buno.js": "^0.1.11"
"buno.js": "^0.1.11",
"reflect-metadata": "^0.2.2"
}
}
1 change: 1 addition & 0 deletions packages/abi.js/src/container.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'reflect-metadata';
import { parse_params } from './parser';

export function reflect<T extends Function | object>(
Expand Down
2 changes: 2 additions & 0 deletions packages/abi.js/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"declaration": true,
"declarationDir": "dist/node",
"emitDeclarationOnly": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowImportingTsExtensions": true,
"lib": ["ESNext", "DOM", "webworker", "DOM.Iterable"],
"module": "ESNext",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4bcd1e8

Please sign in to comment.