File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed
Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 394394 "test" : " node ./out/test/runTest.js" ,
395395 "download-api" : " vscode-dts dev" ,
396396 "postdownload-api" : " vscode-dts main" ,
397- "_postinstall" : " npm run download-api"
397+ "_postinstall" : " npm run download-api" ,
398+ "version" : " node scripts/updateVersions.js"
398399 },
399400 "extensionDependencies" : [
400401 " ms-python.python"
429430 "typescript" : " ^4.4.3" ,
430431 "vsce" : " ^1.99.0" ,
431432 "vscode-debugadapter-testsupport" : " ^1.49.0" ,
433+ "vscode-dts" : " ^0.3.1" ,
432434 "vscode-test" : " ^1.6.1" ,
433435 "webpack" : " ^5.52.1" ,
434436 "webpack-cli" : " ^4.8.0" ,
435- "vscode-dts " : " ^0.3.1 "
437+ "replace-in-file " : " ^6.2.0 "
436438 }
437439}
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " robotcode"
33version = " 0.2.0-alpha.0"
4- description = " "
4+ description = " RobotCode language server,debugger and tools for RobotFramework "
55authors = [" Daniel Biehl <daniel.biehl@imbus.de>" ]
66include = [" robotcode/py.typed" , " README.md" ]
77exclude = [" robotcode/external" ]
Original file line number Diff line number Diff line change 1+ const { env } = require ( "process" ) ;
2+ const { replaceInFile } = require ( "replace-in-file" ) ;
3+
4+ const config = {
5+ files : [ "robotcode/_version.py" , "pyproject.toml" ] ,
6+ from : / ( ^ _ * v e r s i o n _ * \s * = \s * [ ' " ] ) ( [ ^ ' " ] * ) ( [ ' " ] ) / gm,
7+ to : "$1" + env . npm_package_version + "$3" ,
8+ } ;
9+ replaceInFile ( config , function ( error , results ) {
10+ if ( error ) {
11+ console . error ( error ) ;
12+ }
13+ if ( results ) {
14+ for ( const result of results ) {
15+ console . log ( `${ result . file } has ${ result . hasChanged ? "" : "not " } changed` ) ;
16+ }
17+ }
18+ } ) ;
You can’t perform that action at this time.
0 commit comments