playcademy 0.11.10 → 0.11.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5139,17 +5139,17 @@ async function bundleBackend(config, options = {}) {
|
|
|
5139
5139
|
customRoutes: customRouteData
|
|
5140
5140
|
};
|
|
5141
5141
|
const entryCode = generateEntryCode(customRouteData);
|
|
5142
|
-
const
|
|
5143
|
-
const embeddedEdgeSrc = join3(
|
|
5144
|
-
const monorepoEdgeSrc = join3(
|
|
5142
|
+
const currentDir2 = new URL(".", import.meta.url).pathname;
|
|
5143
|
+
const embeddedEdgeSrc = join3(currentDir2, "edge-play", "src");
|
|
5144
|
+
const monorepoEdgeSrc = join3(currentDir2, "../../../edge-play/src");
|
|
5145
5145
|
const isBuiltPackage = existsSync3(embeddedEdgeSrc);
|
|
5146
5146
|
const edgePlaySrc = isBuiltPackage ? embeddedEdgeSrc : monorepoEdgeSrc;
|
|
5147
|
-
const cliPackageRoot = isBuiltPackage ? join3(
|
|
5147
|
+
const cliPackageRoot = isBuiltPackage ? join3(currentDir2, "..") : join3(currentDir2, "../../..");
|
|
5148
5148
|
const nodeModulesRoot = isBuiltPackage ? cliPackageRoot : getMonorepoRoot();
|
|
5149
|
-
const embeddedConstantsSrcA = join3(
|
|
5150
|
-
const embeddedConstantsSrcB = join3(
|
|
5149
|
+
const embeddedConstantsSrcA = join3(currentDir2, "@playcademy/constants/src");
|
|
5150
|
+
const embeddedConstantsSrcB = join3(currentDir2, "node_modules/@playcademy/constants/src");
|
|
5151
5151
|
const embeddedConstantsSrc = existsSync3(embeddedConstantsSrcA) ? embeddedConstantsSrcA : embeddedConstantsSrcB;
|
|
5152
|
-
const monorepoConstantsSrc = join3(
|
|
5152
|
+
const monorepoConstantsSrc = join3(currentDir2, "../../../constants/src");
|
|
5153
5153
|
const constantsSrc = isBuiltPackage ? embeddedConstantsSrc : monorepoConstantsSrc;
|
|
5154
5154
|
const result = await esbuild.build({
|
|
5155
5155
|
stdin: {
|