Skip to content

Commit

Permalink
1.0.5 delete prebuildify
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobaidadada committed Jan 3, 2025
1 parent b1ffe2b commit 25790e7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-process-watcher",
"version": "1.0.4",
"version": "1.0.5",
"description": "Get process information in real time",
"main": "./src/index.js",
"types": "./src/index.d.ts",
Expand All @@ -9,13 +9,11 @@
"url": "git@github.com:xiaobaidadada/node-process-watcher.git"
},
"scripts": {
"install": "npm run build || prebuild-install --verbose",
"build": "node-gyp-build",
"install": "prebuild-install --verbose || npm run install_build",
"install_build": "npm install node-addon-api node-gyp --save-dev && node-gyp rebuild --release",
"cc-rebuild": " node-gyp rebuild",
"cc-configure": "node-gyp configure",
"go": "npm run cc-configure && node-gyp build ",
"prebuildify": "prebuildify --napi "
"go": "npm run cc-configure && node-gyp build "
},
"keywords": [
"进程信息",
Expand All @@ -34,9 +32,7 @@
"author": "xiaobaidadada",
"license": "MIT",
"dependencies": {
"prebuild-install": "^7.1.2",
"node-addon-api": "^7.1.1",
"node-gyp-build": "^4.8.4"
"prebuild-install": "^7.1.2"
},
"files": [
"binding.gyp",
Expand All @@ -45,7 +41,8 @@
],
"devDependencies": {
"mocha": "^10.7.3",
"prebuildify": "6.0.1",
"node-addon-api": "^7.1.1",
"node-gyp": "^10.2.0",
"prebuild": "^13.0.1"
}
}
Binary file removed prebuilds/linux-x64/node-process-watcher.node
Binary file not shown.
Binary file removed prebuilds/win32-x64/node-process-watcher.node
Binary file not shown.
7 changes: 3 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const path = require('path');
// const node_word_detection = require("../build/Release/node-word-detection.node")
var binding = require('node-gyp-build')(path.join(__dirname,'..')) // 自动找到 .node
module.exports.node_process_watcher = binding;

const node_process_watcher = require("../build/Release/node-process-watcher.node")
module.exports.node_process_watcher = node_process_watcher;

0 comments on commit 25790e7

Please sign in to comment.