From 86dc002fa68477b3f82d6d8dfff27484246b47fd Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Tue, 5 May 2026 12:36:37 +0200 Subject: [PATCH] add composer script to symlink vendor folder in public to be able to import esm modules from vendor without breaking rewrite mechanism for cache token in urlpath --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index ce6fc71e1..4d37abdbb 100644 --- a/composer.json +++ b/composer.json @@ -533,5 +533,9 @@ "phpmetrics/phpmetrics": "2.*", "sebastian/phpcpd": "3.*", "phpunit/phpunit": "^6" + }, + "scripts": { + "post-install-cmd": "@symlink_vendor_to_public", + "symlink_vendor_to_public": "ln -sfn ../vendor ./public/" } }