feat: support esm hooks

This commit is contained in:
Nathan Walker
2025-07-07 19:11:17 -07:00
parent 5796cd9bce
commit 2fba017113
6 changed files with 96 additions and 401 deletions

View File

@@ -0,0 +1,7 @@
import path from 'path';
import hook from '@nativescript/hook';
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
hook(path.join(__dirname, "..")).postinstall();