mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 07:26:11 +08:00
chore: use esm with hooks
This commit is contained in:
@ -1,2 +1,7 @@
|
||||
const path = require('path');
|
||||
require('@nativescript/hook')(path.join(__dirname, "..")).postinstall();
|
||||
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