@meowlynxsea/koi 0.2.13 → 0.2.14
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 +1 -1
- package/scripts/postinstall.ts +6 -1
package/package.json
CHANGED
package/scripts/postinstall.ts
CHANGED
|
@@ -40,7 +40,12 @@ export default module.default;
|
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
42
|
for (const moduleName of platformModules) {
|
|
43
|
-
|
|
43
|
+
// Platform modules are in the parent node_modules (global install), not in koi's node_modules
|
|
44
|
+
// rootDir is like C:\Users\Acro\node_modules\@meowlynxsea\koi
|
|
45
|
+
// dirname(rootDir) = C:\Users\Acro\node_modules
|
|
46
|
+
const parentDir = dirname(rootDir);
|
|
47
|
+
const modulePath = join(parentDir, moduleName);
|
|
48
|
+
|
|
44
49
|
if (!existsSync(modulePath)) continue;
|
|
45
50
|
|
|
46
51
|
const indexJsPath = join(modulePath, "index.js");
|