@geastack/core 0.1.43 → 0.1.44
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/index.d.ts +1 -1
- package/package.json +1 -1
- package/scripts/build-gea-vite-geatsc.mjs +4 -4
package/index.d.ts
CHANGED
|
@@ -1693,7 +1693,7 @@ export interface MagnetometerController {
|
|
|
1693
1693
|
close(): void
|
|
1694
1694
|
/** Number of board-defined sensors, whether open or closed. */
|
|
1695
1695
|
count(): number
|
|
1696
|
-
/**
|
|
1696
|
+
/** Board-defined sensor index, 0 to count() - 1. */
|
|
1697
1697
|
read(index: number): MagnetometerReading
|
|
1698
1698
|
}
|
|
1699
1699
|
export declare const Magnetometer: MagnetometerController
|
package/package.json
CHANGED
|
@@ -491,9 +491,9 @@ function resolveAppleNativeAliasModules(appDir) {
|
|
|
491
491
|
// another target replaces with its own implementation.
|
|
492
492
|
// Each replacement names the app's STAGED copy when there is one: the compat
|
|
493
493
|
// build compiles the staged tree, so an alias into the app directory itself
|
|
494
|
-
// pulled a second copy of every module the replacement imports (
|
|
495
|
-
//
|
|
496
|
-
//
|
|
494
|
+
// pulled a second copy of every module the replacement imports (a game's
|
|
495
|
+
// board-specific index brought its own copy of a shared types module, and the
|
|
496
|
+
// two copies of one record type refused to convert).
|
|
497
497
|
function resolveAppModuleAliases(appDir, stagedAppDir = appDir) {
|
|
498
498
|
let manifest = {}
|
|
499
499
|
try {
|
|
@@ -580,7 +580,7 @@ function writeCompatViteConfig({ configPath, compatSrcDir, appDir, stagedAppDir,
|
|
|
580
580
|
// disambiguate, and — with all types erased — geatsc is forced to lower the
|
|
581
581
|
// whole reactive runtime dynamically (gea_cpp_value, ill-formed auto-vectors,
|
|
582
582
|
// proxy derefs). From source, everything is typed and lowers natively, exactly
|
|
583
|
-
// like
|
|
583
|
+
// like the third-party libraries an app imports. The env var still wins when explicitly set;
|
|
584
584
|
// otherwise follow ordinary package resolution, including hoisted installs.
|
|
585
585
|
const compilerRuntimeEntry = process.env.GEA_COMPILER_RUNTIME_SOURCE || resolveCompilerRuntimeEntry([appDir, coreRoot])
|
|
586
586
|
const compilerRuntimeAlias = compilerRuntimeEntry && fs.existsSync(compilerRuntimeEntry)
|