aws-sdk-js-codemod
aws-sdk-js-codemod copied to clipboard
chore: use node --experimental-strip-types and remove tsx
Issue
https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/#path-rewriting-for-relative-paths
Description
Uses node --experimental-strip-types to run TypeScript code and remove tsx
Testing
CI
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
🦋 Changeset detected
Latest commit: d8d7ad2bf77e67c2238407a2c78a8968cb8dab23
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| aws-sdk-js-codemod | Minor |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
| Diff | Package | Supply Chain Security |
Vulnerability | Quality | Maintenance | License |
|---|---|---|---|---|---|---|
| vitest@2.0.5 | ||||||
| @tsconfig/node16@16.1.3 | ||||||
| @types/jscodeshift@17.3.0 ⏵ 0.12.0 | ||||||
| @types/node@16.18.118 | ||||||
| jscodeshift@17.3.0 ⏵ 17.1.1 | ||||||
| typescript@5.9.2 ⏵ 5.7.2 | ||||||
| @changesets/cli@2.29.5 ⏵ 2.27.9 | ||||||
| @biomejs/biome@2.0.6 ⏵ 1.9.0 |
This was experimental change to check if it's possible
$ node --run generate:tests
(node:25590) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/trivikram/workspace/aws-sdk-js-codemod/scripts/generateNewClientTests/index.ts is not specified and it doesn't parse as CommonJS.
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
To eliminate this warning, add "type": "module" to /Users/trivikram/workspace/aws-sdk-js-codemod/package.json.
(Use `node --trace-warnings ...` to show where the warning was created)
Not planning to push since the module should be changed to ESM to remove this warning. And the extension had to be added to all imports.
This PR can be revisited when --strip-types is unflagged for Node.js 22.x in https://github.com/nodejs/node/pull/57298, or we switch to using Node.js 24.x in development when it goes LTS in October 2025.
--strip-types is likely getting stable in Node.js 22.x as the last blocker from ecosystem is fixed
https://bsky.app/profile/robpalmer.bsky.social/post/3lrunlxiqu22b
[!WARNING] Review the following alerts detected in dependencies.
According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
| Action | Severity | Alert (click "▶" to expand/collapse) |
|---|---|---|
| Warn |
|
Closing as this was experimental PR, and not worth the change in 150+ files
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.