Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 2c9dd15

Browse files
author
Simon Hofmann
committed
Restructured scripts and updated version
1 parent fd9ce67 commit 2c9dd15

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencv4nodejs-prebuilt",
3-
"version": "4.15.0-core",
3+
"version": "4.15.1-beta1",
44
"description": "This is a fork of opencv4nodejs which provides pre-built binaries",
55
"keywords": [
66
"opencv",
@@ -33,17 +33,18 @@
3333
"main": "./lib/opencv4nodejs.js",
3434
"typings": "./lib/index.d.ts",
3535
"scripts": {
36-
"preinstall": "node install.js",
37-
"install": "node-gyp rebuild --verbose > build.log 2>&1",
36+
"deps": "node ./install.js",
37+
"install": "prebuild-install --verbose || npm run rebuild",
3838
"configure": "node-gyp configure",
39-
"build": "node-gyp configure build",
40-
"rebuild": "node-gyp rebuild",
39+
"build": "npm run deps && node-gyp configure build",
40+
"rebuild": "npm run deps && node-gyp rebuild",
4141
"clean": "node-gyp clean",
42-
"prebuild": "prebuild",
43-
"build-debug": "node-gyp rebuild --debug"
42+
"prebuild": "npm run deps && prebuild",
43+
"build-debug": "npm run deps && node-gyp rebuild --debug"
4444
},
4545
"gypfile": true,
4646
"dependencies": {
47+
"@nut-tree/opencv-build-darwin": "^3.4.6-patch",
4748
"macro-inferno": "^0.2.3",
4849
"nan": "^2.12.1",
4950
"native-node-utils": "^0.1.5",

0 commit comments

Comments
 (0)