@crossworks/app-build 0.232.385 → 0.234.4

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/package.json +2 -2
  2. package/src/index.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossworks/app-build",
3
- "version": "0.232.385",
3
+ "version": "0.234.4",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -11,7 +11,7 @@
11
11
  "src"
12
12
  ],
13
13
  "dependencies": {
14
- "@mantle/share-ui": "npm:@crossworks/share-ui@0.232.385",
14
+ "@mantle/share-ui": "npm:@crossworks/share-ui@0.234.4",
15
15
  "@tailwindcss/oxide": "^4.3.3",
16
16
  "esbuild": "^0.28.2",
17
17
  "lucide-react": "^1.41.0",
package/src/index.ts CHANGED
@@ -98,7 +98,7 @@ function resolveInTree(
98
98
  `${base}/index.tsx`,
99
99
  `${base}/index.ts`,
100
100
  ];
101
- for (const c of candidates) if (c in files) return c;
101
+ for (const c of candidates) if (Object.hasOwn(files, c)) return c;
102
102
  return null;
103
103
  }
104
104
 
@@ -347,7 +347,7 @@ export async function buildApp(
347
347
 
348
348
  async function buildAppInner(source: AppSource): Promise<BuildResult> {
349
349
  const entry = normKey(source.entry || 'App.tsx');
350
- if (!(entry in source.files)) {
350
+ if (!Object.hasOwn(source.files, entry)) {
351
351
  return {
352
352
  ok: false,
353
353
  errors: [{ text: `Entry file '${entry}' not found in source`, location: null }],