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

Upgrade #155

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Upgrade #155

merged 1 commit into from
Jun 14, 2023

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Jun 12, 2023

About the changes

  • Update CI to build also with latest Node versions
  • Update to Yarn
  • Unify NPM release scripts (use the manual workflow from unleash/unleash)
  • Bump dependencies

This will require major version bump, because of dropped Node v12 support.

Closes #1-951

Important files

  • rollup.config.mjs
  • .github/workflows/release.yml

@Tymek Tymek marked this pull request as ready for review June 12, 2023 15:45
@Tymek Tymek changed the title Dependencies Upgrade Jun 12, 2023
Copy link
Contributor

@sjaanus sjaanus left a comment

Choose a reason for hiding this comment

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

LG

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

LG, but I'd recommend you to pack this as a library, install and test it from the consumer side

"build:web": "rollup -c rollup.config.js",
"fmt": "prettier src --write --loglevel warn",
"lint": "eslint src",
"build": "rm -rf build && tsc && rollup -c rollup.config.mjs",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Here the build is doing a clean & build, which seems like two different steps, but for CI/CD it doesn't matter much because build folder will not exist

Copy link
Member Author

Choose a reason for hiding this comment

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

rm -f will not cause an error if the target doesn't exist

// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./build", /* Redirect output structure to the directory. */
"outDir": "build/cjs", /* Redirect output structure to the directory. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tested importing this as a library? These changes tend to be tricky

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Tested both in CJS and ESM setup (require & import)

@Tymek Tymek enabled auto-merge (squash) June 13, 2023 07:39
@Tymek Tymek mentioned this pull request Jun 13, 2023
@Tymek Tymek closed this Jun 13, 2023
auto-merge was automatically disabled June 13, 2023 09:10

Pull request was closed

@Tymek Tymek reopened this Jun 13, 2023
@Tymek Tymek merged commit e9631b8 into main Jun 14, 2023
3 checks passed
@Tymek Tymek deleted the dependencies branch June 14, 2023 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants