-
Notifications
You must be signed in to change notification settings - Fork 30
fix: Update readme links for Akamai SDKs #157
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
Conversation
], | ||
"scripts": { | ||
"doc": "npx typedoc --entryPointStrategy resolve src/index.ts", | ||
"doc": "npx typedoc --name \"Akamai LaunchDarkly EdgeWorker SDK ${npm_package_version}\" --readme none --entryPointStrategy resolve src/index.ts", |
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.
Not sure if anyone has a better way to bring in the description here.
${npm_package_description}
doesn't seem to be a supported feature anymore.
**Note: ** The version works correctly and uses the version from the package.json
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.
i think it should be '$npm_package_description'
and then run npm run doc
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.
doc-name.sh
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.
Which contains
node -p "let pj = require('./$1/package.json');\
${pj.description} (${pj.version})`";`
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.
Basically uses node to load the package.json, then makes an interpolated string with the description and version.
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.
"doc": "npx typedoc --name \"$(../../../scripts/doc-name.sh .)\" --readme none --entryPointStrategy resolve src/index.ts"
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.
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.
Nice! I tried that command and I still got the same error but I trust you when you say that it ran haha. Updating the code now
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.
I'm on linux, so maybe a mac thing?
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.
Possibly. I've been seeing this error for a while now and I think it might be specific to silicon based macs.
🤖 I have created a release *beep* *boop* --- <details><summary>akamai-server-base-sdk: 0.3.1</summary> ## [0.3.1](akamai-server-base-sdk-v0.3.0...akamai-server-base-sdk-v0.3.1) (2023-06-12) ### Bug Fixes * Update readme links for Akamai SDKs ([#157](#157)) ([8a138c1](8a138c1)) </details> <details><summary>akamai-server-edgekv-sdk: 0.3.1</summary> ## [0.3.1](akamai-server-edgekv-sdk-v0.3.0...akamai-server-edgekv-sdk-v0.3.1) (2023-06-12) ### Bug Fixes * Update readme links for Akamai SDKs ([#157](#157)) ([8a138c1](8a138c1)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Using correct readme links in Akamai SDKs
Updated
doc
script to include package description and package versionNote
${npm_package_version}
to work correctly so I just added the description manually