@betterer/betterer
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -14,3 +14,4 @@ import { LoggerCodeInfo } from '@betterer/logger'; | ||
print(): string; | ||
private _normalisePath; | ||
} | ||
export {}; |
@@ -13,4 +13,5 @@ "use strict"; | ||
this._files = {}; | ||
var resultsPath = config.resultsPath; | ||
info.forEach(function (i) { | ||
var relativePath = path.relative(config.resultsPath, i.filePath); | ||
var relativePath = _this._normalisePath(path.relative(resultsPath, i.filePath)); | ||
_this._files[relativePath] = _this._files[relativePath] || []; | ||
@@ -68,2 +69,7 @@ _this._files[relativePath].push(i); | ||
}; | ||
BettererFileInfo.prototype._normalisePath = function (filePath) { | ||
return path.sep === path.posix.sep | ||
? filePath | ||
: filePath.split(path.sep).join(path.posix.sep); | ||
}; | ||
return BettererFileInfo; | ||
@@ -70,0 +76,0 @@ }()); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var ts_node_1 = require("ts-node"); | ||
ts_node_1.register(); | ||
tslib_1.__exportStar(require("./files"), exports); | ||
tslib_1.__exportStar(require("./betterer"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@betterer/betterer", | ||
"description": "Main engine for runing betterer tests", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"license": "MIT", | ||
@@ -24,13 +24,14 @@ "publishConfig": { | ||
"scripts": { | ||
"compile": "tsc" | ||
"compile": "tsc -b ." | ||
}, | ||
"dependencies": { | ||
"@betterer/constraints": "^0.3.0", | ||
"@betterer/logger": "^0.3.0", | ||
"@betterer/constraints": "^0.3.5", | ||
"@betterer/logger": "^0.3.5", | ||
"jest-diff": "^24.9.0", | ||
"lines-and-columns": "^1.1.6", | ||
"safe-string-literal": "^1.0.1", | ||
"ts-node": "^8.5.4", | ||
"tslib": "^1.10.0" | ||
}, | ||
"gitHead": "a6bcdfa9aacec4a29c786ec891c1446140289adb" | ||
"gitHead": "83f190c9df8a774b7de9bb56acaabb26d9470281" | ||
} |
@@ -14,3 +14,3 @@ # `@betterer/betterer` | ||
const cwd = process.cwd(); | ||
const configPath = path.resolve(cwd, './.betterer.js'); | ||
const configPath = path.resolve(cwd, './.betterer.ts'); | ||
const resultsPath = path.resolve(cwd, './.betterer.results'); | ||
@@ -17,0 +17,0 @@ const { worse } = await betterer({ configPath, resultsPath }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45466
608
7
+ Addedts-node@^8.5.4
+ Addedarg@4.1.3(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addeddiff@4.0.2(transitive)
+ Addedmake-error@1.3.6(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-support@0.5.21(transitive)
+ Addedts-node@8.10.2(transitive)
+ Addedtypescript@5.7.2(transitive)
+ Addedyn@3.1.1(transitive)
Updated@betterer/constraints@^0.3.5
Updated@betterer/logger@^0.3.5