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

fix: use rollup to output js files #2916

Merged
merged 3 commits into from Aug 7, 2023
Merged

Conversation

UziTech
Copy link
Member

@UziTech UziTech commented Aug 3, 2023

Marked version: v6.0.0

Description

Fix umd output by removing tsup and adding rollup

Add umd-test to check umd adds global marked

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

@vercel
Copy link

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marked-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2023 10:00pm

Copy link
Contributor

@calculuschild calculuschild left a comment

Choose a reason for hiding this comment

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

Lgtm

@UziTech
Copy link
Member Author

UziTech commented Aug 6, 2023

@styfle any issue with merging this?

@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2021",
"target": "es2022",
Copy link
Member

Choose a reason for hiding this comment

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

I believe we chose ES2021 to support Node.js 16

Copy link
Member Author

Choose a reason for hiding this comment

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

Es 2021 doesn't support private methods that we already use. This still passes with node 16 with 2022.

"test:update": "node test/update-specs.js",
"rules": "node test/rules.js",
"bench": "npm run build && node test/bench.js",
"lint": "eslint --fix .",
"type-check": "tsc",
Copy link
Member

@styfle styfle Aug 7, 2023

Choose a reason for hiding this comment

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

Maybe I'm missing it, but where do we run tsc using the root tsconfig.json? Did you verify that a type error will fail the build?

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 rollup handles running tsc and will fail to build on typescript error

@UziTech UziTech merged commit 610bc45 into markedjs:master Aug 7, 2023
12 checks passed
@UziTech UziTech deleted the umd-test branch August 7, 2023 22:50
github-actions bot pushed a commit that referenced this pull request Aug 7, 2023
## [7.0.1](v7.0.0...v7.0.1) (2023-08-07)

### Bug Fixes

* use rollup to output js files ([#2916](#2916)) ([610bc45](610bc45))
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.0 broke the build
3 participants