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 394
394
"test" : " node ./out/test/runTest.js" ,
395
395
"download-api" : " vscode-dts dev" ,
396
396
"postdownload-api" : " vscode-dts main" ,
397
- "_postinstall" : " npm run download-api"
397
+ "_postinstall" : " npm run download-api" ,
398
+ "version" : " node scripts/updateVersions.js"
398
399
},
399
400
"extensionDependencies" : [
400
401
" ms-python.python"
429
430
"typescript" : " ^4.4.3" ,
430
431
"vsce" : " ^1.99.0" ,
431
432
"vscode-debugadapter-testsupport" : " ^1.49.0" ,
433
+ "vscode-dts" : " ^0.3.1" ,
432
434
"vscode-test" : " ^1.6.1" ,
433
435
"webpack" : " ^5.52.1" ,
434
436
"webpack-cli" : " ^4.8.0" ,
435
- "vscode-dts " : " ^0.3.1 "
437
+ "replace-in-file " : " ^6.2.0 "
436
438
}
437
439
}
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " robotcode"
3
3
version = " 0.2.0-alpha.0"
4
- description = " "
4
+ description = " RobotCode language server,debugger and tools for RobotFramework "
5
5
authors = [
" Daniel Biehl <[email protected] >" ]
6
6
include = [" robotcode/py.typed" , " README.md" ]
7
7
exclude = [" 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