Skip to content

refactor: simplify api.js bundling - #4277

Merged
lucasfernog merged 22 commits into
devfrom
refactor/api.js/tsup
Oct 4, 2022
Merged

refactor: simplify api.js bundling#4277
lucasfernog merged 22 commits into
devfrom
refactor/api.js/tsup

Conversation

@amrbashir

@amrbashir amrbashir commented Jun 5, 2022

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

@amrbashir
amrbashir requested a review from a team June 5, 2022 11:01
@amrbashir amrbashir changed the title Refactor/api.js/tsup refactor: simplify api.js bundling Jun 5, 2022
@amrbashir
amrbashir requested a review from a team as a code owner June 5, 2022 11:16
@amrbashir
amrbashir requested a review from a team June 5, 2022 11:16
@amrbashir
amrbashir marked this pull request as draft June 5, 2022 11:23
@amrbashir
amrbashir marked this pull request as ready for review June 5, 2022 12:16
@lucasfernog

Copy link
Copy Markdown
Member

We need to test this on Webpack and CRA. #2360 (comment)

@amrbashir

Copy link
Copy Markdown
Member Author

The target bump in tsconfig is not really important and can be reverted, will test CRA anyways.

@amrbashir

Copy link
Copy Markdown
Member Author

CRA template created with create-react-app works fine.

Comment thread tooling/api/tsup.config.ts
@amrbashir
amrbashir requested a review from a team as a code owner July 10, 2022 17:06
mrquantumoff
mrquantumoff previously approved these changes Sep 6, 2022

@mrquantumoff mrquantumoff left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks nice!

Comment thread tooling/api/src/index.ts
import * as tauri from './tauri'
import * as updater from './updater'
import * as window from './window'
import * as os from './os'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This bothers me because it's the only non-alphabetised one on the list ;)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I will fix that once we are ready to merge this PR

Comment thread tooling/api/package.json
},
"engines": {
"node": ">= 12.22.0",
"node": ">= 14.6.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we really need to bump this? if so we need to add it to the changelog

@amrbashir amrbashir Sep 28, 2022

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

node 12 has reached end of life 5 months ago

@lucasfernog lucasfernog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's keep an eye to see if this doen't break any app, I've tested it on Quasar and CRA

@lucasfernog
lucasfernog merged commit 1129f4f into dev Oct 4, 2022
@lucasfernog
lucasfernog deleted the refactor/api.js/tsup branch October 4, 2022 19:56
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.

6 participants