File tree 4 files changed +3
-8
lines changed
4 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ function getBinary() {
28
28
const platform = getPlatform ( ) ;
29
29
const version = require ( '../package.json' ) . version ;
30
30
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 , ) ;
32
33
}
33
34
34
35
module . exports = getBinary ;
Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ function getBinary({ fatal }) {
6
6
}
7
7
}
8
8
9
- if ( process . argv . includes ( 'uninstall' ) ) {
10
- const binary = getBinary ( { fatal : false } ) ;
11
- if ( binary ) binary . uninstall ( ) ;
12
- }
13
-
14
9
if ( process . argv . includes ( 'install' ) ) {
15
10
const binary = getBinary ( { fatal : true } ) ;
16
11
if ( binary ) binary . install ( ) ;
Original file line number Diff line number Diff line change 9
9
"protofetch" : " npm/run.js"
10
10
},
11
11
"scripts" : {
12
- "preinstall" : " node npm/scripts.js uninstall" ,
13
12
"postinstall" : " node npm/scripts.js install"
14
13
},
15
14
"dependencies" : {
Original file line number Diff line number Diff line change 2
2
![ CI] ( https://github.com/coralogix/protofetch/workflows/CI/badge.svg )
3
3
[ ![ Apache 2 License License] ( http://img.shields.io/badge/license-APACHE2-blue.svg )] ( http://www.apache.org/licenses/LICENSE-2.0 )
4
4
[ ![ 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 )
6
6
![ GitHub Stars] ( https://img.shields.io/github/stars/coralogix/protofetch.svg )
7
7
8
8
A source dependency management tool for Protobuf files.
You can’t perform that action at this time.
0 commit comments