diff --git a/package.json b/package.json index 5cad199..1ed0121 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "dist/lib/index.js", "typings": "dist/lib/index.d.ts", "scripts": { - "install": "prebuild-install || node-gyp rebuild", + "install": "node skip.js || prebuild-install || node-gyp rebuild", "build": "tsc", "pretest": "yarn build", "test": "jest -c jest.json", diff --git a/skip.js b/skip.js new file mode 100644 index 0000000..df13f8a --- /dev/null +++ b/skip.js @@ -0,0 +1,5 @@ +const platform = process.env.npm_config_platform || process.platform + +if (platform === 'win32') { + process.exit(1) +}