Skip to content
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

Merged
merged 11 commits into from
Aug 13, 2024
Merged

Release/0.0.3 #7

merged 11 commits into from
Aug 13, 2024

Conversation

Blackfaded
Copy link
Collaborator

No description provided.

@Blackfaded Blackfaded marked this pull request as ready for review August 13, 2024 06:49
Copy link

@@ -4,5 +4,6 @@
# But include these files and directories
!package.json
!README.md
!LICENSE
Copy link
Collaborator

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');
Copy link
Collaborator

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

Copy link
Collaborator Author

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}
Copy link
Collaborator

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.

Copy link
Collaborator

@lrosenfeldt lrosenfeldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 🚀

@Blackfaded Blackfaded merged commit dcff53a into develop Aug 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants