Skip to content

Commit e48f18e

Browse files
committed
fix: remove commonjs distribution due to upstream pkg
BREAKING CHANGE: Remove CJS distribution due to ESM requirement by keycloak-admin-client
1 parent 253e185 commit e48f18e

File tree

3 files changed

+21
-139
lines changed

3 files changed

+21
-139
lines changed

package-lock.json

+2-127
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"author": "Yagiz Nizipli <[email protected]>",
66
"license": "MIT",
77
"readmeFilename": "README.md",
8-
"main": "dist/main/index.js",
9-
"module": "dist/module/index.js",
10-
"types": "dist/main/index.d.ts",
8+
"main": "dist/index.js",
9+
"module": "dist/index.js",
10+
"types": "dist/index.d.ts",
1111
"files": [
1212
"dist/**/*",
1313
"*.md"
@@ -16,9 +16,7 @@
1616
"style:check": "eslint src --ext .js,.ts",
1717
"style": "eslint src --ext .js,.ts --fix",
1818
"start:dev": "tsc -w",
19-
"build": "concurrently \"npm run build:module\" \"npm run build:main\"",
20-
"build:module": "tsc -p tsconfig.json --module ESNext --target ESNext --outDir dist/module",
21-
"build:main": "tsc -p tsconfig.json --module commonjs --target ES2017 --outDir dist/main",
19+
"build": "tsc",
2220
"prepare": "npm run build",
2321
"release": "semantic-release"
2422
},
@@ -64,7 +62,6 @@
6462
"@types/ws": "^8.5.3",
6563
"@typescript-eslint/eslint-plugin": "^5.33.0",
6664
"@typescript-eslint/parser": "^5.33.0",
67-
"concurrently": "^7.3.0",
6865
"cz-conventional-changelog": "3.3.0",
6966
"eslint": "^8.21.0",
7067
"husky": "^8.0.1",
@@ -102,4 +99,4 @@
10299
}
103100
]
104101
}
105-
}
102+
}

tsconfig.json

+14-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,18 @@
1111
"incremental": true,
1212
"esModuleInterop": true,
1313
"moduleResolution": "node",
14-
"forceConsistentCasingInFileNames": true
14+
"forceConsistentCasingInFileNames": true,
15+
"module": "ESNext",
16+
"target": "ESNext"
1517
},
16-
"include": ["src"],
17-
"exclude": [".github", "node_modules", "**/src/**/*.spec.ts", "example", "dist"]
18-
}
18+
"include": [
19+
"src"
20+
],
21+
"exclude": [
22+
".github",
23+
"node_modules",
24+
"**/src/**/*.spec.ts",
25+
"example",
26+
"dist"
27+
]
28+
}

0 commit comments

Comments
 (0)