Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat:hooks
  • Loading branch information
jcassidyav committed Oct 24, 2025
commit cf450f1044e92dc17b349ac1407964ceb3d42915
4 changes: 2 additions & 2 deletions content/guide/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ npm install @nativescript/hook --save
Create `postinstall.js` at the root folder of your plugin:

```javascript
require('@nativescript/hook')(__dirname).postinstall();
require('@nativescript/hook')(__dirname).postinstall()
```

**3. Create preuninstall.js**

Create `preuninstall.js` at the root folder of your plugin:

```javascript
require('@nativescript/hook')(__dirname).preuninstall();
require('@nativescript/hook')(__dirname).preuninstall()
```

**4. Update package.json Scripts**
Expand Down