Commit 2974075 1 parent d5df315 commit 2974075 Copy full SHA for 2974075
File tree 3 files changed +24
-22
lines changed
3 files changed +24
-22
lines changed Original file line number Diff line number Diff line change 56
56
"check-dependencies" : " node ./scripts/check-mismatched-dependencies.js" ,
57
57
"prettier" : " yarn workspaces run prettier" ,
58
58
"lerna" : " lerna" ,
59
- "link-cli" : " node ./scripts/link-cli.js " ,
59
+ "link-cli" : " node ./scripts/link-cli.cjs " ,
60
60
"lint-fix" : " yarn workspaces run lint-fix" ,
61
61
"lint-check" : " yarn workspaces run lint-check" ,
62
62
"test" : " yarn workspaces run test" ,
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env node
2
+
3
+ const fs = require ( 'fs' ) ;
4
+ const path = require ( 'path' ) ;
5
+
6
+ try {
7
+ const script = process . argv [ 2 ] || '/usr/local/bin/agoric' ;
8
+ const cli = path . resolve ( __dirname , '../packages/agoric-cli/bin/agoric' ) ;
9
+ const content = `\
10
+ #! /bin/sh
11
+ # AUTOMATICALLY GENERATED by ${ process . argv [ 1 ] }
12
+ # Always execute the checked-out Agoric CLI with the --sdk flag.
13
+ exec ${ cli } --sdk \${1+"\$@"}
14
+ ` ;
15
+ console . log ( `creating ${ script } ` ) ;
16
+ fs . writeFileSync ( script , content ) ;
17
+ fs . chmodSync ( script , '0755' ) ;
18
+ } catch ( e ) {
19
+ console . error ( err ) ;
20
+ process . exit ( 1 ) ;
21
+ }
22
+
23
+ process . exit ( 0 ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments