Change from pnpm to npm, add ./link.sh shortcut for npm style package linking master
authorNick Downing <nick@ndcode.org>
Mon, 3 Jan 2022 03:59:05 +0000 (14:59 +1100)
committerNick Downing <nick@ndcode.org>
Mon, 3 Jan 2022 04:28:19 +0000 (15:28 +1100)
.gitignore
link.sh [new file with mode: 0755]
package.json

index e9d2a61..d9209b2 100644 (file)
@@ -5,4 +5,4 @@
 /index.vocab.0
 /ndcode-zettair-*.tgz
 /node_modules
-/pnpm-lock.yaml
+/package-lock.json
diff --git a/link.sh b/link.sh
new file mode 100755 (executable)
index 0000000..41f600e
--- /dev/null
+++ b/link.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+rm -rf node_modules package-lock.json
+npm install
+npm link
index e2687bf..b217fff 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "@ndcode/zettair",
-  "version": "0.1.3",
+  "version": "0.1.4",
   "description": "Bindings to zettair search engine.",
   "keywords": [
     "Zettair",
@@ -25,5 +25,8 @@
     "bindings": "^1.5.0",
     "node-addon-api": "^4.2.0"
   },
+  "scripts": {
+    "install": "node-gyp rebuild"
+  },
   "gypfile": true
 }