onejs-core 0.3.33 → 0.3.34

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onejs-core",
3
3
  "description": "The JS part of OneJS, a UI framework and Scripting Engine for Unity.",
4
- "version": "0.3.33",
4
+ "version": "0.3.34",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./typings.d.ts",
7
7
  "dependencies": {
@@ -16,6 +16,7 @@
16
16
  "rimraf": "^5.0.7",
17
17
  "tailwindcss": "^3.4.1",
18
18
  "tar": "^7.2.0",
19
- "tiny-glob": "^0.2.9"
19
+ "tiny-glob": "^0.2.9",
20
+ "xml2js": "^0.6.2"
20
21
  }
21
22
  }
@@ -54,7 +54,7 @@ async function Process(backend, outputDir) {
54
54
  await extractTgz(downloadedPath, outputDir)
55
55
 
56
56
  // Safe keep asmdef files
57
- const onejsDir = getOneJSUnityDir()
57
+ const onejsDir = await getOneJSUnityDir()
58
58
  const a = path.join(onejsDir, 'Puerts/Editor/com.tencent.puerts.core.Editor.asmdef')
59
59
  const b = path.join(upmDir, 'Editor/com.tencent.puerts.core.Editor.asmdef')
60
60
  const c = path.join(onejsDir, 'Puerts/Runtime/com.tencent.puerts.core.asmdef')
@@ -130,7 +130,7 @@ async function getOneJSUnityDir() {
130
130
 
131
131
  if (searchIndex !== -1) {
132
132
  oneJSPath = normalizedIncludePath.substring(0, searchIndex + 'Assets/OneJS'.length);
133
- oneJSPath = path.resolve(oneJSPath);
133
+ oneJSPath = path.resolve(projectDir, oneJSPath);
134
134
  return oneJSPath;
135
135
  }
136
136
  }