-
-
Notifications
You must be signed in to change notification settings - Fork 637
Check published types in CI #1702
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,11 @@ jobs: | |
run: yarn start format.listDifferent | ||
- name: Type-check TypeScript | ||
run: yarn run type-check | ||
- name: Lint package publishing | ||
# --profile because we don't care about node10 | ||
# --ignore-rules CJS default export can't be resolved at the moment, | ||
# revisit in 15.0.0 | ||
Comment on lines
+92
to
+93
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, maybe we could fix it by using Babel to compile TS instead of TSC. I'm not sure it's worth the effort at the moment. |
||
run: yarn run attw --pack . --profile node16 --ignore-rules cjs-only-exports-default | ||
# We only download and run Actionlint if there is any difference in GitHub Action workflows | ||
# https://github.com/rhysd/actionlint/blob/main/docs/usage.md#on-github-actions | ||
- name: Check for GitHub Actions changes | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "react-on-rails", | ||
"version": "14.1.1", | ||
"description": "react-on-rails JavaScript for react_on_rails Ruby gem", | ||
"main": "node_package/lib/ReactOnRails.js", | ||
"main": "node_package/lib/ReactOnRails.full.js", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have that file anymore. |
||
"exports": { | ||
".": { | ||
"node": "./node_package/lib/ReactOnRails.node.js", | ||
|
@@ -14,6 +14,7 @@ | |
"doc": "docs" | ||
}, | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.17.4", | ||
"@babel/core": "^7.20.12", | ||
"@babel/preset-env": "^7.20.2", | ||
"@tsconfig/node14": "^14.1.2", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolving
ReactOnRails/client
under--moduleResolution node
is technically possible, but better just to tell people to update their TS config. It isn't a breaking change because nobody needed to resolve it before (and the other change fixes resolution forReactOnRails
itself).