@geastack/compiler 1.0.26 → 1.0.27
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.
|
@@ -286,7 +286,11 @@ const modulesReachableFrom = (start) => {
|
|
|
286
286
|
return seen;
|
|
287
287
|
};
|
|
288
288
|
/** The declaration file mirroring this source file, or `null`. */
|
|
289
|
-
const declarationPathFor = (
|
|
289
|
+
const declarationPathFor = (spelledFileName) => {
|
|
290
|
+
// A Windows program spells files with backslashes (`...\node_modules\three\...`)
|
|
291
|
+
// wherever the module graph stated them; matched as-is, no JS file there ever
|
|
292
|
+
// found its `@types` mirror and three's sources compiled untyped.
|
|
293
|
+
const fileName = spelledFileName.replaceAll('\\', '/');
|
|
290
294
|
const marker = '/node_modules/';
|
|
291
295
|
const at = fileName.lastIndexOf(marker);
|
|
292
296
|
if (at < 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geastack/compiler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
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": {
|