mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat: support esm hooks
This commit is contained in:
7
packages/core/cli-hooks/postinstall.mjs
Normal file
7
packages/core/cli-hooks/postinstall.mjs
Normal 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();
|
||||
Reference in New Issue
Block a user