@trapi/metadata
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -147,3 +147,5 @@ "use strict"; | ||
const result = new Set(); | ||
const options = { cwd: process.cwd() }; | ||
const options = { | ||
cwd: this.config.rootPath || process.cwd(), | ||
}; | ||
sourceFilesExpressions.forEach((pattern) => { | ||
@@ -150,0 +152,0 @@ const matches = (0, glob_1.sync)(pattern, options); |
@@ -11,2 +11,8 @@ import { ArrayType, BaseType, Config as DecoratorConfig, NestedObjectLiteralType, RefObjectType, ReferenceTypes } from '@trapi/decorator'; | ||
/** | ||
* Root path. | ||
* | ||
* Default: process.cwd() | ||
*/ | ||
rootPath?: string; | ||
/** | ||
* Directory to ignore during TypeScript files scan. | ||
@@ -13,0 +19,0 @@ * Default: [] |
{ | ||
"name": "@trapi/metadata", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Generate REST-API metadata scheme from TypeScript Decorators.", | ||
@@ -57,3 +57,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "769f19ac38122c322327fe2ab7633306115cdf5f" | ||
"gitHead": "838fc1946ec351daa39544f3448b8abc1dd0f627" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
125222
1743
0