-
Notifications
You must be signed in to change notification settings - Fork 3
feat!: migrate @doist/react-interpolate to tsdown #56
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 22.18.0 |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,9 +8,10 @@ function assert(condition, message) { | |
| } | ||
|
|
||
| async function main() { | ||
| const cjsPackage = require('..') | ||
| const esmPackage = await import('../dist/react-interpolate.mjs') | ||
| const cjsPackage = require('@doist/react-interpolate') | ||
|
gnapse marked this conversation as resolved.
Member
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. [P2] This file still relies on Node self-referencing instead of testing a packed tarball. Since you noted in the previous review that this smoke test would be removed, it appears it was mistakenly modified instead. If it's no longer needed, remember to delete this file and remove its execution from the |
||
| const esmPackage = await import('@doist/react-interpolate') | ||
|
|
||
| assert(typeof cjsPackage === 'object', 'CJS package should be a namespace object') | ||
| assert(typeof cjsPackage.default === 'function', 'CJS default export should be a function') | ||
| assert(typeof esmPackage.default === 'function', 'ESM default export should be a function') | ||
| assert(cjsPackage.TOKEN_PLACEHOLDER === esmPackage.TOKEN_PLACEHOLDER, 'Named exports should match') | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| module.exports = { | ||
| testEnvironment: 'jsdom', | ||
| transform: { | ||
| '^.+\\.(ts|tsx)$': [ | ||
| '@swc/jest', | ||
| { | ||
| jsc: { | ||
| parser: { | ||
| syntax: 'typescript', | ||
| tsx: true, | ||
| }, | ||
| transform: { | ||
| react: { | ||
| runtime: 'classic', | ||
| }, | ||
| }, | ||
| }, | ||
| module: { | ||
| type: 'commonjs', | ||
| }, | ||
| }, | ||
| ], | ||
| }, | ||
| } |
This file was deleted.
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.
[P2] This workflow now only exercises the single version pinned in
.node-version, butpackage.jsonnewly declares support for>=24.0.0as well. That means the Node 24 part of the published engines contract is untested in CI. Add a second 24.x job/matrix entry here, or narrowengines.nodeto the version(s) you actually verify.