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

Support CJS again #797

Merged
merged 11 commits into from
Apr 2, 2024
Merged

Support CJS again #797

merged 11 commits into from
Apr 2, 2024

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Apr 1, 2024

We will also support CJS to make it a dual package. It seems that for Typescript, it needs to be version 5.3 or higher.

Additionally, I have introduced two validators for the dual package.

  1. publint https://publint.dev/
  2. arethetypeswrong https://arethetypeswrong.github.io/

@@ -18,6 +17,6 @@
"@types/express": "^4.17.17",
"@types/node": "^20.6.3",
"rimraf": "^5.0.1",
"typescript": "^5.2.2"
"typescript": "^5.4.3"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

typescript version < 5.3 can't compile this project now. Let me investigate it ...

@Yang-33 Yang-33 marked this pull request as ready for review April 2, 2024 00:34
@Yang-33 Yang-33 force-pushed the 03-add-esm-test-project branch from 403e115 to 5a813e3 Compare April 2, 2024 00:42
Base automatically changed from 03-add-esm-test-project to master April 2, 2024 00:44
@Yang-33 Yang-33 force-pushed the 04-support-cjs-again branch from 94043db to 3ddcc78 Compare April 2, 2024 00:45
@Yang-33
Copy link
Contributor Author

Yang-33 commented Apr 2, 2024

@Yang-33 Yang-33 merged commit 09c61db into master Apr 2, 2024
5 checks passed
@Yang-33 Yang-33 deleted the 04-support-cjs-again branch April 2, 2024 00:48
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.

2 participants