Skip to content

Commit d7922f4

Browse files
committed
Copy README
1 parent 87d6f31 commit d7922f4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

npm/cli/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

npm/cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"url": "git+https://github.com/mountain-loop/yaak-cli.git"
88
},
99
"scripts": {
10-
"postinstall": "node ./install.js"
10+
"postinstall": "node ./install.js",
11+
"prepublishOnly": "node ./prepublish.js"
1112
},
1213
"bin": {
1314
"yaakcli": "bin/cli.js"

npm/cli/prepublish.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const fs = require("fs");
2+
const path = require("path");
3+
4+
const readme = path.join(__dirname, '..', '..', 'README.md');
5+
6+
fs.copyFileSync(readme, path.join(__dirname, "README.md"))

0 commit comments

Comments
 (0)