File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ const activate = (context) => {
7373 const disposable = vscode . commands . registerCommand (
7474 "code-replacer-vscode-plugin.entry" ,
7575 async function ( ) {
76- const codeReplacerPath = `${ __dirname } ${ path . sep } ${ " node_modules" } ${
76+ const codeReplacerPath = `${ __dirname } ${ path . sep } node_modules${
7777 path . sep
78- } ${ " code-replacer" } `;
78+ } code-replacer${ path . sep } dist `;
7979 const binPath = path . resolve (
80- `${ codeReplacerPath } ${ path . sep } ${ " index.js" } `
80+ `${ codeReplacerPath } ${ path . sep } src ${ path . sep } index.js`
8181 ) ;
82- const envPath = path . resolve ( `${ codeReplacerPath } ${ path . sep } ${ ".env" } ` ) ;
82+ const envPath = path . resolve ( `${ codeReplacerPath } ${ path . sep } src ${ path . sep } ${ ".env" } ` ) ;
8383 const usageLogPath = path . resolve (
84- `${ codeReplacerPath } ${ path . sep } ${ " usageLog.json" } `
84+ `${ codeReplacerPath } ${ path . sep } src ${ path . sep } usageLog.json`
8585 ) ;
8686 const workspaceName = vscode . workspace . name ;
8787 const workspacePath = vscode . workspace . rootPath ;
Original file line number Diff line number Diff line change 44 "description" : " vscode plugin for code-replacer" ,
55 "publisher" : " code-replacer-vscode-plugin" ,
66 "version" : " 0.0.1" ,
7+ "license" : " MIT" ,
78 "engines" : {
89 "vscode" : " ^1.50.0"
910 },
2829 "scripts" : {
2930 "lint" : " eslint ." ,
3031 "pretest" : " npm run lint" ,
31- "test" : " node ./test/runTest.js"
32+ "test" : " node ./test/runTest.js" ,
33+ "build" : " vsce package" ,
34+ "publish" : " vsce publish"
3235 },
3336 "devDependencies" : {
3437 "@types/vscode" : " ^1.50.0" ,
4043 "mocha" : " ^8.1.3" ,
4144 "typescript" : " ^4.0.2" ,
4245 "vscode-test" : " ^1.4.0" ,
43- "code-replacer" : " github:jopemachine/code-replacer# 0.0.14 "
46+ "code-replacer" : " 0.0.202 "
4447 },
4548 "dependencies" : {
4649 "recursive-readdir" : " ^2.2.2"
You can’t perform that action at this time.
0 commit comments