Skip to content

Commit 874dd42

Browse files
saraiva132zhrebicek
authored andcommitted
fix: npm publish had incorrect url
1 parent 7c6fb71 commit 874dd42

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

.github/npm/getBinary.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ function getBinary() {
2828
const platform = getPlatform();
2929
const version = require('../package.json').version;
3030
const url = `https://github.com/coralogix/protofetch/releases/download/v${ version }/protofetch_${ platform }.tar.gz`;
31-
return new Binary(url, { name: 'protofetch' });
31+
const name = 'cx-protofetch';
32+
return new Binary(name, url, );
3233
}
3334

3435
module.exports = getBinary;

.github/npm/scripts.js

-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ function getBinary({ fatal }) {
66
}
77
}
88

9-
if (process.argv.includes('uninstall')) {
10-
const binary = getBinary({ fatal: false });
11-
if (binary) binary.uninstall();
12-
}
13-
149
if (process.argv.includes('install')) {
1510
const binary = getBinary({ fatal: true });
1611
if (binary) binary.install();

.github/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"protofetch": "npm/run.js"
1010
},
1111
"scripts": {
12-
"preinstall": "node npm/scripts.js uninstall",
1312
"postinstall": "node npm/scripts.js install"
1413
},
1514
"dependencies": {

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
![CI](https://github.com/coralogix/protofetch/workflows/CI/badge.svg)
33
[![Apache 2 License License](http://img.shields.io/badge/license-APACHE2-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
44
[![Crates.io](https://img.shields.io/crates/v/protofetch.svg)](https://crates.io/crates/protofetch)
5-
[![npm version](https://img.shields.io/npm/v/cx-protofetch.svg??style=flat)](https://www.npmjs.com/package/protofetch)
5+
[![npm version](https://img.shields.io/npm/v/cx-protofetch.svg??style=flat)](https://www.npmjs.com/package/cx-protofetch)
66
![GitHub Stars](https://img.shields.io/github/stars/coralogix/protofetch.svg)
77

88
A source dependency management tool for Protobuf files.

0 commit comments

Comments
 (0)