Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

fix(npm/js_api): Ensure JS API build contains dist folder #3648

Merged
merged 6 commits into from
Nov 10, 2022

Conversation

MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented Nov 10, 2022

Summary

The build extracted the dist artifacts in the npm directory instead of npm/js-api/dist.

Fixes #3646

Test Plan

I added test logging to the build and triggered a manual build.

You can now see that the dist folder is present in the npm/js-api/dist folder before running npm publish

Run ls npm/js-api
README.md
dist
package.json
pnpm-lock.yaml
scripts
src
tests
tsconfig.json
vitest.config.js

@netlify
Copy link

netlify bot commented Nov 10, 2022

Deploy Preview for docs-rometools ready!

Name Link
🔨 Latest commit 59a4ca9
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/636cfdd02cda8a00099d1aa1
😎 Deploy Preview https://deploy-preview-3648--docs-rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@MichaReiser MichaReiser changed the title fix(npm/js_api): Build workflow fix(npm/js_api): Ensure JS API build contains dist files Nov 10, 2022
"rome": "^0.10.1-next",
"@rometools/wasm-nodejs": "^0.10.1-next",
"@rometools/backend-jsonrpc": "^0.10.1-next"
"rome": "^10.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should probably automate this

@@ -1 +0,0 @@
dist/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Already covered by the root gitignore

@MichaReiser MichaReiser marked this pull request as ready for review November 10, 2022 13:36
@MichaReiser MichaReiser requested a review from a team November 10, 2022 13:36
@calibre-analytics
Copy link

Comparing fix(npm/js_api): Ensure JS API build contains dist files Snapshot #1 to median since last deploy of rome.tools.

LCP? CLS? TBT?
Overall
Median across all pages and test profiles
275ms
from 218ms
0.049
from 0.009
21ms
from 12ms
Chrome Desktop
Chrome Desktop • Cable
275ms
from 218ms
0.044
from 0.005
102ms
from 69ms
iPhone, 4G LTE
iPhone 12 • 4G LTE
192ms
from 188ms
0.082
from 0.009
7ms
no change
Motorola Moto G Power, 3G connection
Motorola Moto G Power • Regular 3G
560ms
from 506ms
0.049
from 0.036
21ms
from 12ms

1 page tested

 Home

Browser previews

Chrome Desktop iPhone, 4G LTE Motorola Moto G Power, 3G connection
Chrome Desktop iPhone, 4G LTE Motorola Moto G Power, 3G connection

Most significant changes

Value Budget
Cumulative Layout Shift
iPhone, 4G LTE
0.082
from 0.009
Cumulative Layout Shift
Chrome Desktop
0.044
from 0.005
JS Parse & Compile
iPhone, 4G LTE
80ms
from 10ms
Total JavaScript Size in Bytes
Chrome Desktop
1.55 MB
from 309 KB
Total JavaScript Size in Bytes
iPhone, 4G LTE
1.55 MB
from 309 KB

13 other significant changes: Total JavaScript Size in Bytes on Motorola Moto G Power, 3G connection, Number of Requests on Chrome Desktop, Number of Requests on iPhone, 4G LTE, Number of Requests on Motorola Moto G Power, 3G connection, Total Page Size in Bytes on Chrome Desktop, Total Page Size in Bytes on iPhone, 4G LTE, Total Page Size in Bytes on Motorola Moto G Power, 3G connection, Total Image Size in Bytes on Chrome Desktop, Total Image Size in Bytes on iPhone, 4G LTE, Total Image Size in Bytes on Motorola Moto G Power, 3G connection, Total HTML Size in Bytes on Chrome Desktop, Total HTML Size in Bytes on iPhone, 4G LTE, Total HTML Size in Bytes on Motorola Moto G Power, 3G connection

Calibre: Site dashboard | View this PR | Edit settings | View documentation

@MichaReiser MichaReiser changed the title fix(npm/js_api): Ensure JS API build contains dist files fix(npm/js_api): Ensure JS API build contains dist folder Nov 10, 2022
@MichaReiser MichaReiser merged commit b6a9634 into main Nov 10, 2022
@MichaReiser MichaReiser deleted the fix/js-api-build branch November 10, 2022 14:44
jeysal added a commit to jeysal/rometools that referenced this pull request Nov 10, 2022
* upstream/main:
  fix(npm/js-api): Import type from @rometools/backend-jsonrpc (rome#3647)
  doc(npm/js-api): Add experimental warning to README
  fix(npm/js-api): Lazy load backend implementations (rome#3652)
  feat(rome_lsp): stop the daemon after the last client disconnects (rome#3643)
  fix(npm/js_api): Ensure JS API build contains `dist` folder (rome#3648)
  fix(rome_cli): ensures the service only connects to compatible versions (rome#3642)
  feat(playground): add settings button and group IR (rome#3559)
  release: v10.0.1 (rome#3649)
  fix(rome_js_analyze): False positives for interactive elements in `useKeyWithClickEvents` (rome#3644)
  fix(rome_js_semantic): support for object and array bindings when exporting (rome#3620)
  doc(editors): Clarify Rome discovery (rome#3639)
  fix(rome_js_analyze): improve the detection of `ReactDOM.render` calls in `noRenderReturnValue` (rome#3626)
  chore(npm): add license (rome#3629)
  Add rustdocs index
  Add environment
  Change rust docs to use Netlify
  fix(rome_js_analyze): useValidAnchor considering all possible expressions (rome#3599)
  fix(rome_js_formatter): Trailing comma inside import rome#3600 (rome#3624)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 @rometools/js-api has no exported members
2 participants