Skip to content

Commit 724c07b

Browse files
mikolalysenkoclaude
andcommitted
Switch to CommonJS module system for compatibility
Change from ES modules to CommonJS to fix ERR_REQUIRE_ESM errors when the package is consumed by CommonJS projects. This ensures broader compatibility with existing Node.js projects that use require(). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent d6d0316 commit 724c07b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "@socketsecurity/socket-patch-cli",
33
"version": "0.1.0",
44
"description": "CLI tool for applying security patches to dependencies",
5-
"type": "module",
65
"main": "dist/index.js",
76
"types": "dist/index.d.ts",
87
"bin": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "ES2022",
4+
"module": "CommonJS",
55
"lib": ["ES2022"],
66
"moduleResolution": "node",
77
"outDir": "./dist",

0 commit comments

Comments
 (0)