Skip to content

Commit

Permalink
fix: executable not work
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Mar 10, 2019
1 parent d0fe734 commit d5a4ba9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./ && npm run lint",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"postinstall": "npm run executable && node ./node_modules/vscode/bin/install",
"executable": "cp ./node_modules/conventional-changelog-cli/cli.js ./node_modules/conventional-changelog-cli/cli && chmod +x ./node_modules/conventional-changelog-cli/cli",
"lint": "tslint -p ./ -c tslint.json",
"test": "npm run compile && node ./node_modules/vscode/bin/test",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export function activate(context: VSCODE.ExtensionContext) {
const cli = path.join(
context.extensionPath,
"node_modules",
".bin",
"conventional-changelog"
"conventional-changelog-cli",
"cli",
);

const type = config.type;
Expand Down

0 comments on commit d5a4ba9

Please sign in to comment.