Skip to content

Commit cf450f1

Browse files
committed
feat:hooks
1 parent 3dd855d commit cf450f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/guide/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ npm install @nativescript/hook --save
183183
Create `postinstall.js` at the root folder of your plugin:
184184

185185
```javascript
186-
require('@nativescript/hook')(__dirname).postinstall();
186+
require('@nativescript/hook')(__dirname).postinstall()
187187
```
188188

189189
**3. Create preuninstall.js**
190190

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

193193
```javascript
194-
require('@nativescript/hook')(__dirname).preuninstall();
194+
require('@nativescript/hook')(__dirname).preuninstall()
195195
```
196196

197197
**4. Update package.json Scripts**

0 commit comments

Comments
 (0)