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

Unrevert prerelease fix, and fix release error #4353

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Aug 20, 2024

  • Reapply "Add "type" = "module" to ensure it is present (Ensure "type" = "module" ES declaration in pre-release.sh #4350)"

  • Mark prettier config file as CommonJS

    I think this will fix a problem with the release process in which we saw an error:

    Error:  Invalid configuration for file "/home/runner/work/matrix-js-sdk/matrix-js-sdk/package.json":
    Error:  module is not defined in ES module scope
    Error:  This file is being treated as an ES module because it has a '.js' file extension and '/home/runner/work/matrix-js-sdk/matrix-js-sdk/package.json' contains   "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    

I *think* this will fix a problem with the release process in which we saw an
error:

```
Error:  Invalid configuration for file "/home/runner/work/matrix-js-sdk/matrix-js-sdk/package.json":
Error:  module is not defined in ES module scope
Error:  This file is being treated as an ES module because it has a '.js' file extension and '/home/runner/work/matrix-js-sdk/matrix-js-sdk/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
```
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

Nice, thanks for looking at that.

@richvdh richvdh added this pull request to the merge queue Aug 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 20, 2024
@dbkr dbkr added this pull request to the merge queue Aug 20, 2024
Merged via the queue into develop with commit 2544c14 Aug 20, 2024
33 of 35 checks passed
@dbkr dbkr deleted the rav/unrevert-prerelease-fix branch August 20, 2024 13:33
dbkr added a commit to matrix-org/matrix-react-sdk that referenced this pull request Aug 20, 2024
github-merge-queue bot pushed a commit to matrix-org/matrix-react-sdk that referenced this pull request Aug 20, 2024
dbkr added a commit to matrix-org/matrix-react-sdk that referenced this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants