We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f16b7d commit 572a79fCopy full SHA for 572a79f
sandbox/bin/setup-standalone
@@ -52,10 +52,12 @@ chdir($APP_DIR);
52
* 3/ Install dependencies with standalone bundle
53
*/
54
55
+$branchOrRev = exec('git branch --show-current') ?: exec('git rev-parse HEAD');
56
+
57
exec(sprintf('rm -rf %1$s/vendor %1$s/node_modules', $APP_DIR));
58
putenv('COMPOSER=composer-standalone.json');
-exec('composer require sensiolabs/storybook-bundle:dev-$(git rev-parse HEAD)');
-exec('composer install -n --no-scripts');
59
+exec(sprintf('composer require --no-update sensiolabs/storybook-bundle:dev-%s', $branchOrRev));
60
+exec('composer install -n');
61
exec('npm install --no-package-lock');
62
63
exit(0);
0 commit comments