File tree 5 files changed +25
-10
lines changed
5 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 5
5
* Added ` {{archive_ext}} ` to recognize ` .zip ` packages on Windows and ` .tar.gz ` on macOS and Linux.
6
6
* Fixed error when trying to remove the binary from a previous installation.
7
7
* Add support for local npm prefix ([ #1 ] ( https://github.com/go-task/go-npm/pull/1 ) ).
8
+ * Added support for [ pnpm] ( https://pnpm.io/ ) ([ #3 ] ( https://github.com/go-task/go-npm/pull/3 ) ).
8
9
9
10
### (@gzuidhof ): MODIFICATIONS FROM BASE ` go-npm ` PACKAGE
10
11
* Support for zip and non-compressed binaries.
Original file line number Diff line number Diff line change 1
1
version : ' 3'
2
2
3
3
tasks :
4
+ npm:install :
5
+ desc : Runs npm install
6
+ cmds :
7
+ - npm install
8
+ sources :
9
+ - package.json
10
+ - package-lock.json
11
+
4
12
build :
5
13
desc : Build project using esbuild
14
+ deps : [npm:install]
6
15
cmds :
7
16
- npm run build
8
17
sources :
9
18
- ./src/**/*.js
10
19
- package.json
11
20
- package-lock.json
21
+ generates :
22
+ - bin/index.js
12
23
13
24
publish :
14
25
desc : Publish release to npm
15
26
deps : [build]
16
27
cmds :
17
28
- npm publish --access=public
29
+
30
+ clean :
31
+ desc : Clean build files
32
+ cmds :
33
+ - rm -rf bin/
Original file line number Diff line number Diff line change 18
18
"url" : " https://github.com/go-task/go-npm.git"
19
19
},
20
20
"homepage" : " https://github.com/go-task/go-npm" ,
21
- "dependencies" : {
22
- "used-pm" : " ^1.0.0"
23
- },
24
21
"devDependencies" : {
25
22
"esbuild" : " ^0.12.17" ,
26
23
"jest" : " ^24.5.0" ,
27
24
"mkdirp" : " ^1.0.4" ,
28
25
"request" : " ^2.88.2" ,
29
26
"tar" : " ^2.2.2" ,
30
- "unzipper" : " 0.10.10"
27
+ "unzipper" : " 0.10.10" ,
28
+ "used-pm" : " ^1.0.0"
31
29
}
32
30
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const { join } = require('path');
2
2
const { exec } = require ( 'child_process' ) ;
3
3
const { existsSync, readFileSync } = require ( 'fs' ) ;
4
4
const mkdirp = require ( 'mkdirp' ) ;
5
- const usedPM = require ( 'used-pm' ) ;
5
+ const usedPM = require ( 'used-pm' ) ;
6
6
7
7
// Mapping from Node's `process.arch` to Golang's `$GOARCH`
8
8
const ARCH_MAPPING = {
You can’t perform that action at this time.
0 commit comments