mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2026-04-06 09:36:53 +00:00
fix: build the action with rollup
On v4, we used the default nodejs resolution logic to allow ES modules in dependencies. This created a breaking change of forcing users of this action to use the .cjs extension instead of .js in config files. With this fix, we now bundle the action with rollup to allow ES modules in dependencies, while keeping the support for .js config files. With this change, the default config file was returned back to .js instead of .cjs. Fixes #194
This commit is contained in:
parent
0cb522abbc
commit
2e578124a5
23 changed files with 15924 additions and 93 deletions
17
package.json
17
package.json
|
|
@ -3,17 +3,17 @@
|
|||
"version": "4.0.2",
|
||||
"description": "commitlint github action",
|
||||
"private": true,
|
||||
"exports": "./run.js",
|
||||
"main": "./dist/run.js",
|
||||
"scripts": {
|
||||
"postinstall": "husky install",
|
||||
"test": "NODE_PATH=./node_modules node --experimental-vm-modules node_modules/.bin/jest",
|
||||
"test": "NODE_PATH=./node_modules jest",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||
"lint": "eslint ."
|
||||
"lint": "eslint .",
|
||||
"build": "rollup -c"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
"node": "16.5.0"
|
||||
},
|
||||
"type": "module",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wagoid/commitlint-github-action.git"
|
||||
|
|
@ -39,11 +39,17 @@
|
|||
"lerna": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.6",
|
||||
"@babel/preset-env": "^7.14.7",
|
||||
"@commitlint/cli": "^12.1.4",
|
||||
"@commitlint/ensure": "^12.1.4",
|
||||
"@commitlint/test": "^9.0.1",
|
||||
"@commitlint/test-environment": "^9.0.1",
|
||||
"@jest/globals": "^27.0.6",
|
||||
"@rollup/plugin-babel": "^5.3.0",
|
||||
"@rollup/plugin-commonjs": "^19.0.1",
|
||||
"@rollup/plugin-node-resolve": "^13.0.1",
|
||||
"babel-jest": "^27.0.6",
|
||||
"commitlint-plugin-function-rules": "^1.3.2",
|
||||
"conventional-changelog-cli": "^2.1.1",
|
||||
"eslint": "^7.29.0",
|
||||
|
|
@ -57,6 +63,7 @@
|
|||
"jest": "^27.0.6",
|
||||
"lint-staged": "^11.0.1",
|
||||
"prettier": "^2.3.2",
|
||||
"rollup": "^2.53.2",
|
||||
"standard-version": "^9.3.1",
|
||||
"testdouble": "^3.16.1",
|
||||
"yaml": "^1.10.2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue