-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release/0.0.3 #7
Conversation
Quality Gate passedIssues Measures |
@@ -4,5 +4,6 @@ | |||
# But include these files and directories | |||
!package.json | |||
!README.md | |||
!LICENSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Top!
@@ -10,7 +10,7 @@ describe('ServerMetaInfo', () => { | |||
test('initializes with correct values', () => { | |||
const serverMetaInfo = new ServerMetaInfo(); | |||
expect(serverMetaInfo.platformIdentifier).toBe(`${os.platform()}, node version is: ${process.version}`); | |||
expect(serverMetaInfo.sdkIdentifier).toBe('NodeServerSDK/v0.0.2'); | |||
expect(serverMetaInfo.sdkIdentifier).toBe('NodeServerSDK/v0.0.3'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Als improvement können wir die Version auch aus der package.json
laden, heißt aber auch, wenn es Probleme mit dem File-System gibt kann das failen. Allerdings könnte man das Modul dann auch nicht importen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hatte ich zuerst, aber dann sah der dist ordner nicht mehr geil aus, weil sich die root ebene geändert hat ^^
sed -i '' "s/NodeServerSDK\/v[0-9]*\.[0-9]*\.[0-9]*/NodeServerSDK\/v$NEW_VERSION/g" ${SERVER_META_INFO_PATH} | ||
sed -i '' "s/NodeServerSDK\/v[0-9]*\.[0-9]*\.[0-9]*/NodeServerSDK\/v$NEW_VERSION/g" ${SERVER_META_INFO_TEST_PATH} | ||
sed -i '' "s/\"pcp-server-nodejs-sdk\": \"[0-9]*\.[0-9]*\.[0-9]*\"/\"pcp-server-nodejs-sdk\": \"$NEW_VERSION\"/g" ${EXAMPLE_APP_PACKAGE_JSON_PATH} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, dass das hier nur mit sed
. jq
wäre zwar minimal safer, allerdings ist es so portabel, da sed
POSIX standard ist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool 🚀
No description provided.