backfill-config
Advanced tools
Comparing version 3.0.3-alpha.0 to 3.0.5-alpha.0
@@ -59,5 +59,5 @@ "use strict"; | ||
process.chdir(path.join(packageRoot, "packages", "package-1")); | ||
const searchPathsFromPackage1 = index_1.getSearchPaths(); | ||
const searchPathsFromPackage1 = index_1.getSearchPaths(process.cwd()); | ||
process.chdir(path.join(packageRoot, "packages", "package-2")); | ||
const searchPathsFromPackage2 = index_1.getSearchPaths(); | ||
const searchPathsFromPackage2 = index_1.getSearchPaths(process.cwd()); | ||
expect(searchPathsFromPackage1).toStrictEqual([ | ||
@@ -73,3 +73,3 @@ path.join(packageRoot, "backfill.config.js"), | ||
await backfill_utils_test_1.setupFixture("basic"); | ||
const searchPaths = index_1.getSearchPaths(); | ||
const searchPaths = index_1.getSearchPaths(process.cwd()); | ||
expect(searchPaths).toStrictEqual([]); | ||
@@ -88,4 +88,5 @@ }); | ||
await backfill_utils_test_1.setupFixture("basic"); | ||
const config = index_1.createConfig(); | ||
const defaultLocalCacheFolder = index_1.createDefaultConfig().internalCacheFolder; | ||
const config = index_1.createConfig(process.cwd()); | ||
const defaultLocalCacheFolder = index_1.createDefaultConfig(process.cwd()) | ||
.internalCacheFolder; | ||
expect(config.internalCacheFolder).toStrictEqual(defaultLocalCacheFolder); | ||
@@ -95,3 +96,3 @@ }); | ||
await backfill_utils_test_1.setupFixture("config"); | ||
const config = index_1.createConfig(); | ||
const config = index_1.createConfig(process.cwd()); | ||
expect(config.internalCacheFolder).toStrictEqual("foo"); | ||
@@ -102,6 +103,6 @@ }); | ||
await backfill_utils_test_1.setupFixture("config"); | ||
const config = index_1.createConfig(); | ||
const config = index_1.createConfig(process.cwd()); | ||
expect(config.internalCacheFolder).toStrictEqual("bar"); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvX190ZXN0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UM7U0FDOUY7S0FDRjtJQUVELE1BQU0sUUFBUSxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsb0JBQW9CLENBQUMsQ0FBQztJQUNuRCxJQUFJLFFBQVEsRUFBRTtRQUNaLElBQUksMkNBQWlCLENBQUMsUUFBUSxDQUFDLEVBQUU7WUFDL0IsTUFBTSxDQUFDLFVBQVUsQ0FBQyxHQUFHLFFBQVEsQ0FBQztTQUMvQjthQUFNO1lBQ0wsTUFBTSxtRkFBbUYsUUFBUSxJQUFJLENBQUM7U0FDdkc7S0FDRjtJQUVELE1BQU0scUJBQXFCLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxrQ0FBa0MsQ0FBQyxDQUFDO0lBQzlFLElBQUkscUJBQXFCLEVBQUU7UUFDekIsTUFBTSxDQUFDLHVCQUF1QixDQUFDLEdBQUcscUJBQXFCLENBQUM7S0FDekQ7SUFFRCxNQUFNLHNCQUFzQixHQUMxQixPQUFPLENBQUMsR0FBRyxDQUFDLG1DQUFtQyxDQUFDLENBQUM7SUFDbkQsSUFBSSxzQkFBc0IsRUFBRTtRQUMxQixNQUFNLENBQUMsd0JBQXdCLENBQUMsR0FBRyxPQUFPLENBQ3hDLHNCQUFzQixLQUFLLE1BQU0sQ0FDbEMsQ0FBQztLQUNIO0lBRUQsTUFBTSxjQUFjLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQywwQkFBMEIsQ0FBQyxDQUFDO0lBQy9ELElBQUksY0FBYyxFQUFFO1FBQ2xCLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxHQUFHLE9BQU8sQ0FBQyxjQUFjLEtBQUssTUFBTSxDQUFDLENBQUM7S0FDL0Q7SUFFRCxPQUFPLE1BQU0sQ0FBQztBQUNoQixDQUFDO0FBbEVELG9DQWtFQyJ9 |
@@ -30,5 +30,5 @@ import { LogLevels } from "backfill-generic-logger"; | ||
export declare function getName(packageRoot: string): any; | ||
export declare function getSearchPaths(fromPath?: string): string[]; | ||
export declare function createDefaultConfig(fromPath?: string): Config; | ||
export declare function createConfig(fromPath?: string): Config; | ||
export declare function getSearchPaths(fromPath: string): string[]; | ||
export declare function createDefaultConfig(fromPath: string): Config; | ||
export declare function createConfig(fromPath: string): Config; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.getName = getName; | ||
function getSearchPaths(fromPath = process.cwd()) { | ||
function getSearchPaths(fromPath) { | ||
const searchPaths = []; | ||
@@ -44,3 +44,3 @@ let nextPath = fromPath; | ||
exports.getSearchPaths = getSearchPaths; | ||
function createDefaultConfig(fromPath = process.cwd()) { | ||
function createDefaultConfig(fromPath) { | ||
const packageRoot = pkgDir.sync(fromPath) || fromPath; | ||
@@ -72,3 +72,3 @@ const defaultCacheFolder = path.join("node_modules", ".cache", "backfill"); | ||
exports.createDefaultConfig = createDefaultConfig; | ||
function createConfig(fromPath = process.cwd()) { | ||
function createConfig(fromPath) { | ||
const defaultConfig = createDefaultConfig(fromPath); | ||
@@ -95,2 +95,2 @@ const fileBasedConfig = getSearchPaths(fromPath).reduce((acc, configPath) => { | ||
exports.createConfig = createConfig; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw2QkFBNkI7QUFDN0Isa0NBQWtDO0FBQ2xDLGtDQUFrQztBQUtsQywyQ0FBMkM7QUFFM0MsbUNBQThCO0FBQzlCLGlDQUE0QjtBQUlmLFFBQUEsV0FBVyxHQUFHO0lBQ3pCLFNBQVMsRUFBRSxFQUFFO0lBQ2IsVUFBVSxFQUFFLEVBQUU7SUFDZCxVQUFVLEVBQUUsRUFBRTtJQUNkLElBQUksRUFBRSxFQUFFO0NBQ1QsQ0FBQztBQW9CRixTQUFnQixhQUFhLENB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scUVBQXFFLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDO2FBQy9GO1NBQ0Y7UUFFRCxPQUFPO1lBQ0wsR0FBRyxHQUFHO1lBQ04sR0FBRyxNQUFNO1NBQ1YsQ0FBQztJQUNKLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUVQLE1BQU0sY0FBYyxHQUFHLHdCQUFZLEVBQUUsQ0FBQztJQUV0QyxPQUFPO1FBQ0wsR0FBRyxhQUFhO1FBQ2hCLEdBQUcsZUFBZTtRQUNsQixHQUFHLGNBQWM7S0FDbEIsQ0FBQztBQUNKLENBQUM7QUF4QkQsb0NBd0JDIn0= |
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "3.0.3-alpha.0", | ||
"version": "3.0.5-alpha.0", | ||
"main": "lib/index.js", | ||
@@ -20,3 +20,3 @@ "scripts": { | ||
"dependencies": { | ||
"backfill-generic-logger": "^3.0.1-alpha.0", | ||
"backfill-generic-logger": "^3.0.5-alpha.0", | ||
"find-up": "^4.0.0", | ||
@@ -28,3 +28,3 @@ "fs-extra": "^8.1.0", | ||
"@types/fs-extra": "^8.0.0", | ||
"backfill-utils-test": "^3.0.1-alpha.0", | ||
"backfill-utils-test": "^3.0.5-alpha.0", | ||
"backfill-utils-tsconfig": "^2.0.3", | ||
@@ -35,3 +35,3 @@ "jest": "^24.0.12", | ||
}, | ||
"gitHead": "0edd878be38a6f3af6e9fa07b84a8d1f1513760c" | ||
"gitHead": "ec218e9ecf7b2553af7701ae1ee8e84753b1b35d" | ||
} |
@@ -85,6 +85,6 @@ import * as path from "path"; | ||
process.chdir(path.join(packageRoot, "packages", "package-1")); | ||
const searchPathsFromPackage1 = getSearchPaths(); | ||
const searchPathsFromPackage1 = getSearchPaths(process.cwd()); | ||
process.chdir(path.join(packageRoot, "packages", "package-2")); | ||
const searchPathsFromPackage2 = getSearchPaths(); | ||
const searchPathsFromPackage2 = getSearchPaths(process.cwd()); | ||
@@ -102,3 +102,3 @@ expect(searchPathsFromPackage1).toStrictEqual([ | ||
await setupFixture("basic"); | ||
const searchPaths = getSearchPaths(); | ||
const searchPaths = getSearchPaths(process.cwd()); | ||
@@ -122,5 +122,6 @@ expect(searchPaths).toStrictEqual([]); | ||
await setupFixture("basic"); | ||
const config = createConfig(); | ||
const config = createConfig(process.cwd()); | ||
const defaultLocalCacheFolder = createDefaultConfig().internalCacheFolder; | ||
const defaultLocalCacheFolder = createDefaultConfig(process.cwd()) | ||
.internalCacheFolder; | ||
expect(config.internalCacheFolder).toStrictEqual(defaultLocalCacheFolder); | ||
@@ -131,3 +132,3 @@ }); | ||
await setupFixture("config"); | ||
const config = createConfig(); | ||
const config = createConfig(process.cwd()); | ||
@@ -141,3 +142,3 @@ expect(config.internalCacheFolder).toStrictEqual("foo"); | ||
await setupFixture("config"); | ||
const config = createConfig(); | ||
const config = createConfig(process.cwd()); | ||
@@ -144,0 +145,0 @@ expect(config.internalCacheFolder).toStrictEqual("bar"); |
@@ -51,3 +51,3 @@ import * as path from "path"; | ||
export function getSearchPaths(fromPath: string = process.cwd()) { | ||
export function getSearchPaths(fromPath: string) { | ||
const searchPaths = []; | ||
@@ -70,3 +70,3 @@ | ||
export function createDefaultConfig(fromPath: string = process.cwd()): Config { | ||
export function createDefaultConfig(fromPath: string): Config { | ||
const packageRoot = pkgDir.sync(fromPath) || fromPath; | ||
@@ -99,3 +99,3 @@ const defaultCacheFolder = path.join("node_modules", ".cache", "backfill"); | ||
export function createConfig(fromPath: string = process.cwd()): Config { | ||
export function createConfig(fromPath: string): Config { | ||
const defaultConfig = createDefaultConfig(fromPath); | ||
@@ -102,0 +102,0 @@ const fileBasedConfig = getSearchPaths(fromPath).reduce((acc, configPath) => { |
@@ -5,3 +5,3 @@ { | ||
"compilerOptions": { "rootDir": "src", "outDir": "lib" }, | ||
"references": [{ "path": "../logger-generic" }, { "path": "../utils-test" }] | ||
"references": [{ "path": "../generic-logger" }, { "path": "../utils-test" }] | ||
} |
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
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
164858
691
+ Addedbackfill-generic-logger@3.0.5-alpha.0(transitive)
- Removedbackfill-generic-logger@3.0.1-alpha.0(transitive)