Skip to content

Commit 764a56e

Browse files
authored
Merge pull request #16 from Aeliot-Tm/fix-release
Work around base path in config for Box
2 parents 8512442 + 06e8f6f commit 764a56e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
"baseline"
4242
],
4343
"scripts": {
44-
"build": "php scripts/box/prepare-config.php && tools/box.phar compile --config=scripts/box/config.json",
44+
"build": [
45+
"php scripts/box/prepare-config.php",
46+
"tools/box.phar compile --config=scripts/box/config.json"
47+
],
4548
"cs-check": "@cs-fixer-check",
4649
"cs-fix": "@cs-fixer-fix",
4750
"cs-fixer-check": "vendor/bin/php-cs-fixer fix --dry-run",

scripts/box/prepare-config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
$configPath = __DIR__ . '/config.json';
1515
$config = json_decode(file_get_contents($configPath), true, 512, \JSON_THROW_ON_ERROR);
1616

17-
$config['base-path'] = dirname($configPath, 2) . '/';
17+
$config['base-path'] = dirname($configPath, 3) . '/';
1818

19-
file_put_contents($configPath, json_encode($config, \JSON_THROW_ON_ERROR));
19+
file_put_contents($configPath, json_encode($config, \JSON_THROW_ON_ERROR | \JSON_PRETTY_PRINT));

0 commit comments

Comments
 (0)