You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awaitwriteFile(join(overrideSource,"src","ArtifactCompiler","ArtifactCompiler.php"),"<?php\nnamespace Automattic\\BlocksEngine\\PhpTransformer\\ArtifactCompiler;\nfinal class ArtifactCompiler {}\n")
// The class must be relocated to the consumer's recorded PSR-4 path so the
74
-
// consumer autoloader resolves it after the vendor-path mount.
79
+
// A shared wrapper layout moves the complete hydrated package, keeping its
80
+
// bootstrap, package-local autoloader, and classmap base directory coherent.
75
81
assert.equal(awaitexists(join(staged,"php-transformer","src","ArtifactCompiler","ArtifactCompiler.php")),true,"override class relocated to consumer PSR-4 layout")
82
+
assert.equal(awaitexists(join(staged,"php-transformer","php-transformer.php")),true,"package bootstrap moves with its source")
83
+
assert.equal(awaitexists(join(staged,"php-transformer","vendor","autoload.php")),true,"package-local autoloader moves with its source")
84
+
assert.equal(awaitexists(join(staged,"php-transformer","vendor","composer","autoload_classmap.php")),true,"package-local classmap moves with its source")
76
85
assert.equal(awaitexists(join(staged,"src","ArtifactCompiler","ArtifactCompiler.php")),false,"override source layout no longer shadows the consumer path")
86
+
assert.equal(awaitexists(join(staged,"php-transformer.php")),false,"bootstrap is not stranded at the old package root")
87
+
assert.equal(awaitexists(join(staged,"vendor","autoload.php")),false,"package-local autoloader is not stranded at the old package root")
0 commit comments