playcademy 0.11.5 → 0.11.7

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5146,6 +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 embeddedConstantsSrc = join3(distDir, "../../node_modules/@playcademy/constants/src");
5150
+ const monorepoConstantsSrc = join3(distDir, "../../../../constants/src");
5151
+ const constantsSrc = isBuiltPackage ? embeddedConstantsSrc : monorepoConstantsSrc;
5149
5152
  const result = await esbuild.build({
5150
5153
  stdin: {
5151
5154
  contents: entryCode,
@@ -5177,6 +5180,15 @@ async function bundleBackend(config, options = {}) {
5177
5180
  * user's game project, enabling esbuild to bundle custom routes into the worker.
5178
5181
  */
5179
5182
  "@game-api": join3(workspace, "api"),
5183
+ /**
5184
+ * @playcademy/constants alias for edge-play sources
5185
+ *
5186
+ * Edge-play sources import from @playcademy/constants. When bundling,
5187
+ * we need to resolve this to the actual source location:
5188
+ * - In built package: embedded in dist/node_modules/@playcademy/constants
5189
+ * - In development: monorepo packages/constants
5190
+ */
5191
+ "@playcademy/constants": constantsSrc,
5180
5192
  /**
5181
5193
  * Node.js module polyfills for Cloudflare Workers environment
5182
5194
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playcademy",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "exports": {