@geastack/compiler 1.0.40 → 1.0.41
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.
|
@@ -432,7 +432,10 @@ export const createPackageSourceHost = (host = ts.sys, packages = []) => {
|
|
|
432
432
|
if (candidates.length === 1 && candidates[0])
|
|
433
433
|
return candidates[0];
|
|
434
434
|
}
|
|
435
|
-
|
|
435
|
+
// A host that names files only by its own spelling (a virtual host, on
|
|
436
|
+
// Windows where `resolve` turns `/src/a.js` into `C:\src\a.js`) is asked
|
|
437
|
+
// again with the path it gave.
|
|
438
|
+
return host.fileExists(absolute) ? absolute : file;
|
|
436
439
|
};
|
|
437
440
|
const view = {
|
|
438
441
|
...host,
|
|
@@ -442,7 +445,7 @@ export const createPackageSourceHost = (host = ts.sys, packages = []) => {
|
|
|
442
445
|
if (aliases.some((entry) => inside(entry.prefix, resolve(directory))))
|
|
443
446
|
return true;
|
|
444
447
|
const dir = unalias(directory);
|
|
445
|
-
if (host.directoryExists?.(dir))
|
|
448
|
+
if (host.directoryExists?.(dir) || (dir === resolve(directory) && host.directoryExists?.(directory)))
|
|
446
449
|
return true;
|
|
447
450
|
const root = packageOf(`${dir}/__module__.ts`);
|
|
448
451
|
const record = root ? readRecord(root) : undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/compiler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"description": "The geastack TypeScript-to-C++ compiler: one semantic spine, no source-shaped authority, no boxing of statically typed values.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|