playcademy 0.11.9 → 0.11.10
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 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5146,7 +5146,9 @@ async function bundleBackend(config, options = {}) {
|
|
|
5146
5146
|
const edgePlaySrc = isBuiltPackage ? embeddedEdgeSrc : monorepoEdgeSrc;
|
|
5147
5147
|
const cliPackageRoot = isBuiltPackage ? join3(distDir, "../..") : join3(distDir, "../../..");
|
|
5148
5148
|
const nodeModulesRoot = isBuiltPackage ? cliPackageRoot : getMonorepoRoot();
|
|
5149
|
-
const
|
|
5149
|
+
const embeddedConstantsSrcA = join3(distDir, "../../@playcademy/constants/src");
|
|
5150
|
+
const embeddedConstantsSrcB = join3(distDir, "../../node_modules/@playcademy/constants/src");
|
|
5151
|
+
const embeddedConstantsSrc = existsSync3(embeddedConstantsSrcA) ? embeddedConstantsSrcA : embeddedConstantsSrcB;
|
|
5150
5152
|
const monorepoConstantsSrc = join3(distDir, "../../../../constants/src");
|
|
5151
5153
|
const constantsSrc = isBuiltPackage ? embeddedConstantsSrc : monorepoConstantsSrc;
|
|
5152
5154
|
const result = await esbuild.build({
|
|
@@ -5183,12 +5185,11 @@ async function bundleBackend(config, options = {}) {
|
|
|
5183
5185
|
/**
|
|
5184
5186
|
* @playcademy/constants alias for edge-play sources
|
|
5185
5187
|
*
|
|
5186
|
-
*
|
|
5187
|
-
*
|
|
5188
|
-
* - In built package: embedded in dist/node_modules/@playcademy/constants
|
|
5189
|
-
* - In development: monorepo packages/constants
|
|
5188
|
+
* Map the bare import to the package entry file, and also support
|
|
5189
|
+
* subpath imports if they are added in the future.
|
|
5190
5190
|
*/
|
|
5191
|
-
"@playcademy/constants": constantsSrc,
|
|
5191
|
+
"@playcademy/constants": join3(constantsSrc, "index.ts"),
|
|
5192
|
+
"@playcademy/constants/*": join3(constantsSrc, "*"),
|
|
5192
5193
|
/**
|
|
5193
5194
|
* Node.js module polyfills for Cloudflare Workers environment
|
|
5194
5195
|
*
|