diff --git a/packages/build/tests/core/snapshots/tests.js.md b/packages/build/tests/core/snapshots/tests.js.md index d16240ca44..fb4143f97b 100644 --- a/packages/build/tests/core/snapshots/tests.js.md +++ b/packages/build/tests/core/snapshots/tests.js.md @@ -21,6 +21,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/build/tests/core/snapshots/tests.js.snap b/packages/build/tests/core/snapshots/tests.js.snap index 4da8a2880a..4f69a1fa93 100644 Binary files a/packages/build/tests/core/snapshots/tests.js.snap and b/packages/build/tests/core/snapshots/tests.js.snap differ diff --git a/packages/config/src/main.js b/packages/config/src/main.js index 0586ba2482..8147f92504 100644 --- a/packages/config/src/main.js +++ b/packages/config/src/main.js @@ -74,7 +74,7 @@ const resolveConfig = async function(opts) { const { config: configA, buildDir } = await handleFiles({ config, repositoryRoot, baseRelDir: baseRelDirA }) - const result = { siteInfo, configPath, buildDir, config: configA, context, branch, api, logs } + const result = { siteInfo, configPath, buildDir, config: configA, repositoryRoot, context, branch, api, logs } logResult(result, { logs, debug }) return result } diff --git a/packages/config/tests/api/snapshots/tests.js.md b/packages/config/tests/api/snapshots/tests.js.md index 195a7cfd4c..2279bdabc3 100644 --- a/packages/config/tests/api/snapshots/tests.js.md +++ b/packages/config/tests/api/snapshots/tests.js.md @@ -19,6 +19,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "id": "test"␊ }␊ @@ -40,6 +41,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -59,6 +61,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "id": "test"␊ }␊ @@ -80,6 +83,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "id": "test"␊ }␊ @@ -101,6 +105,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -119,6 +124,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "id": "test"␊ }␊ @@ -140,6 +146,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "build_settings": {␊ "base": null,␊ @@ -184,6 +191,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "build_settings": {␊ "base": "base",␊ @@ -225,6 +233,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "id": "test"␊ }␊ @@ -246,6 +255,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "id": "test"␊ }␊ @@ -267,6 +277,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -285,6 +296,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "id": "test"␊ }␊ @@ -306,6 +318,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "build_settings": {␊ "repo_url": "test"␊ @@ -331,6 +344,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -364,6 +378,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "build_settings": {␊ "base": "base",␊ diff --git a/packages/config/tests/api/snapshots/tests.js.snap b/packages/config/tests/api/snapshots/tests.js.snap index c3d4525fb7..7adcd2c958 100644 Binary files a/packages/config/tests/api/snapshots/tests.js.snap and b/packages/config/tests/api/snapshots/tests.js.snap differ diff --git a/packages/config/tests/base/snapshots/tests.js.md b/packages/config/tests/base/snapshots/tests.js.md index 2a4d17b81d..483ed11e0d 100644 --- a/packages/config/tests/base/snapshots/tests.js.md +++ b/packages/config/tests/base/snapshots/tests.js.md @@ -29,6 +29,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -49,6 +50,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -69,6 +71,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -91,5 +94,6 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/config/tests/base/snapshots/tests.js.snap b/packages/config/tests/base/snapshots/tests.js.snap index b3da363f28..fcd4cc8b1d 100644 Binary files a/packages/config/tests/base/snapshots/tests.js.snap and b/packages/config/tests/base/snapshots/tests.js.snap differ diff --git a/packages/config/tests/cli/snapshots/tests.js.md b/packages/config/tests/cli/snapshots/tests.js.md index dda9ec5827..50a70d61e6 100644 --- a/packages/config/tests/cli/snapshots/tests.js.md +++ b/packages/config/tests/cli/snapshots/tests.js.md @@ -65,6 +65,7 @@ Generated by [AVA](https://ava.li). "stderr": [],␊ "stdout": []␊ },␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -82,6 +83,7 @@ Generated by [AVA](https://ava.li). "environment": {}␊ }␊ },␊ + "repositoryRoot": "/file/path",␊ "context": "production",␊ "branch": "branch",␊ "logs": {␊ @@ -109,6 +111,7 @@ Generated by [AVA](https://ava.li). "stderr": [],␊ "stdout": []␊ },␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -131,6 +134,7 @@ Generated by [AVA](https://ava.li). "stderr": [],␊ "stdout": []␊ },␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/config/tests/cli/snapshots/tests.js.snap b/packages/config/tests/cli/snapshots/tests.js.snap index 367c66d0c5..e922b07356 100644 Binary files a/packages/config/tests/cli/snapshots/tests.js.snap and b/packages/config/tests/cli/snapshots/tests.js.snap differ diff --git a/packages/config/tests/context/snapshots/tests.js.md b/packages/config/tests/context/snapshots/tests.js.md index b31eadcf91..1cedcc0400 100644 --- a/packages/config/tests/context/snapshots/tests.js.md +++ b/packages/config/tests/context/snapshots/tests.js.md @@ -23,6 +23,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -44,6 +45,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -63,6 +65,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -82,6 +85,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "testContext",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -101,6 +105,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -120,6 +125,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -139,6 +145,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -158,6 +165,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -177,6 +185,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -196,5 +205,6 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "testContext",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/config/tests/context/snapshots/tests.js.snap b/packages/config/tests/context/snapshots/tests.js.snap index c157d5e7e0..7f81f9661b 100644 Binary files a/packages/config/tests/context/snapshots/tests.js.snap and b/packages/config/tests/context/snapshots/tests.js.snap differ diff --git a/packages/config/tests/cwd/snapshots/tests.js.md b/packages/config/tests/cwd/snapshots/tests.js.md index 1b15f6d503..5cb2fa1894 100644 --- a/packages/config/tests/cwd/snapshots/tests.js.md +++ b/packages/config/tests/cwd/snapshots/tests.js.md @@ -31,6 +31,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -49,6 +50,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -67,6 +69,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -97,6 +100,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -116,5 +120,6 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/config/tests/cwd/snapshots/tests.js.snap b/packages/config/tests/cwd/snapshots/tests.js.snap index a5072ca463..c26e37c0c6 100644 Binary files a/packages/config/tests/cwd/snapshots/tests.js.snap and b/packages/config/tests/cwd/snapshots/tests.js.snap differ diff --git a/packages/config/tests/load/snapshots/tests.js.md b/packages/config/tests/load/snapshots/tests.js.md index c8ba5c2d9c..2ec23b3191 100644 --- a/packages/config/tests/load/snapshots/tests.js.md +++ b/packages/config/tests/load/snapshots/tests.js.md @@ -20,6 +20,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -39,6 +40,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {␊ "id": "test"␊ }␊ @@ -61,6 +63,7 @@ Generated by [AVA](https://ava.li). "configPath": "/file/path",␊ "context": "production",␊ "hasApi": true,␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -86,6 +89,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -104,6 +108,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -131,6 +136,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -163,6 +169,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -182,6 +189,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -207,6 +215,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -224,5 +233,6 @@ Generated by [AVA](https://ava.li). "plugins": []␊ },␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/config/tests/load/snapshots/tests.js.snap b/packages/config/tests/load/snapshots/tests.js.snap index 9110ede2a4..797af32900 100644 Binary files a/packages/config/tests/load/snapshots/tests.js.snap and b/packages/config/tests/load/snapshots/tests.js.snap differ diff --git a/packages/config/tests/log/snapshots/tests.js.md b/packages/config/tests/log/snapshots/tests.js.md index 684c0ca7ac..83f8c12421 100644 --- a/packages/config/tests/log/snapshots/tests.js.md +++ b/packages/config/tests/log/snapshots/tests.js.md @@ -46,6 +46,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -86,6 +87,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -132,6 +134,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -171,5 +174,6 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/config/tests/log/snapshots/tests.js.snap b/packages/config/tests/log/snapshots/tests.js.snap index 663be9a37f..f25ad9221d 100644 Binary files a/packages/config/tests/log/snapshots/tests.js.snap and b/packages/config/tests/log/snapshots/tests.js.snap differ diff --git a/packages/config/tests/normalize/snapshots/tests.js.md b/packages/config/tests/normalize/snapshots/tests.js.md index cfea93ce1e..3bdb0088c9 100644 --- a/packages/config/tests/normalize/snapshots/tests.js.md +++ b/packages/config/tests/normalize/snapshots/tests.js.md @@ -31,6 +31,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -61,6 +62,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "testContext",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -91,6 +93,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` @@ -109,5 +112,6 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/config/tests/normalize/snapshots/tests.js.snap b/packages/config/tests/normalize/snapshots/tests.js.snap index 0160f08d2c..9e53f55fc1 100644 Binary files a/packages/config/tests/normalize/snapshots/tests.js.snap and b/packages/config/tests/normalize/snapshots/tests.js.snap differ diff --git a/packages/config/tests/parse/snapshots/tests.js.md b/packages/config/tests/parse/snapshots/tests.js.md index d8591e01fa..7ea24f0682 100644 --- a/packages/config/tests/parse/snapshots/tests.js.md +++ b/packages/config/tests/parse/snapshots/tests.js.md @@ -20,6 +20,7 @@ Generated by [AVA](https://ava.li). },␊ "configPath": "/file/path",␊ "context": "production",␊ + "repositoryRoot": "/file/path",␊ "siteInfo": {}␊ }` diff --git a/packages/config/tests/parse/snapshots/tests.js.snap b/packages/config/tests/parse/snapshots/tests.js.snap index 4eb05a528f..29f57236ad 100644 Binary files a/packages/config/tests/parse/snapshots/tests.js.snap and b/packages/config/tests/parse/snapshots/tests.js.snap differ