Skip to content

Commit

Permalink
build(esw): should alway place a js file as bin field value
Browse files Browse the repository at this point in the history
We use the static js file to ensure that esw symlink alway work in the other packages when lerna boostraps.

Signed-off-by: Liu Bowen <mr_lbw@outlook.com>
  • Loading branch information
lbwa committed Aug 25, 2021
1 parent 33b9cbf commit d580a27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/esw/bin/esw.js
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../dist/bin/esw.js')
2 changes: 1 addition & 1 deletion packages/esw/package.json
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"main": "dist/index.js",
"bin": {
"esw": "dist/bin/esw.js"
"esw": "bin/esw.js"
},
"directories": {
"lib": "dist",
Expand Down

1 comment on commit d580a27

@lbwa
Copy link
Owner Author

@lbwa lbwa commented on d580a27 Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.