@statoscope/config
Advanced tools
Comparing version 5.27.0 to 5.28.1
import { Config } from '@statoscope/types/types/config'; | ||
export declare type RequiredConfig = { | ||
export type RequiredConfig = { | ||
path: string; | ||
@@ -4,0 +4,0 @@ config: Config; |
import { ReporterConfig } from '@statoscope/types/types/validation/config'; | ||
import { Reporter } from '@statoscope/types/types/validation/reporter'; | ||
export declare type ReporterConstructor<TOptions> = { | ||
export type ReporterConstructor<TOptions> = { | ||
new (options?: TOptions): Reporter; | ||
}; | ||
export declare function makeReporterInstance(item: ReporterConfig, rootDir: string): Reporter; |
@@ -14,3 +14,3 @@ "use strict"; | ||
PackageAliasType["REPORTER"] = "REPORTER"; | ||
})(PackageAliasType = exports.PackageAliasType || (exports.PackageAliasType = {})); | ||
})(PackageAliasType || (exports.PackageAliasType = PackageAliasType = {})); | ||
function normalizePath(source, rootDir) { | ||
@@ -61,6 +61,5 @@ return source.replace('<rootDir>', rootDir); | ||
} | ||
const greyChalk = chalk_1.default.bgKeyword('grey'); | ||
errorMessage += 'Try installing the package locally:\n'; | ||
errorMessage += `- with ${italicChalk('npm')}: ${greyChalk('npm i -D ' + providedAlias)} (or corresponding package alias)\n`; | ||
errorMessage += `- with ${italicChalk('yarn')}: ${greyChalk('yarn add -D ' + providedAlias)} (or corresponding package alias)\n`; | ||
errorMessage += `- with ${italicChalk('npm')}: ${chalk_1.default.bgGrey('npm i -D ' + providedAlias)} (or corresponding package alias)\n`; | ||
errorMessage += `- with ${italicChalk('yarn')}: ${chalk_1.default.bgGrey('yarn add -D ' + providedAlias)} (or corresponding package alias)\n`; | ||
return errorMessage; | ||
@@ -67,0 +66,0 @@ } |
{ | ||
"name": "@statoscope/config", | ||
"version": "5.27.0", | ||
"version": "5.28.1", | ||
"description": "Statoscope config utils", | ||
@@ -10,4 +10,3 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"build": "../../node_modules/.bin/tsc", | ||
"prepublishOnly": "npm run build" | ||
"build": "../../node_modules/.bin/tsc" | ||
}, | ||
@@ -22,6 +21,6 @@ "repository": "https://github.com/statoscope/statoscope.git", | ||
"dependencies": { | ||
"@statoscope/types": "5.27.0", | ||
"@statoscope/types": "5.28.1", | ||
"chalk": "^4.1.2" | ||
}, | ||
"gitHead": "9fbcea0159a2e50316d9618c73b312fd41091a79" | ||
"gitHead": "a89f68a6251a1c914791e22b643dd94ca2a70253" | ||
} |
11596
197
+ Added@statoscope/stats@5.28.1(transitive)
+ Added@statoscope/types@5.28.1(transitive)
- Removed@statoscope/stats@5.14.1(transitive)
- Removed@statoscope/types@5.27.0(transitive)
Updated@statoscope/types@5.28.1