mirror of
https://github.com/actions/add-to-project.git
synced 2026-01-08 11:08:03 +08:00
Automate regex fix for CI builds
- Updated build:package script to run fix-regex.js before bundling - Updated postinstall script to apply fix after npm install - Ensures CI builds will have the fix applied automatically - Fixes misleading operator precedence in /^text\/|charset=utf-8$/ regex
This commit is contained in:
@@ -48,13 +48,13 @@
|
||||
"scripts": {
|
||||
"build": "npm run fix:format && npm run check && npm run build:compile && npm run build:package",
|
||||
"build:compile": "tsc",
|
||||
"build:package": "ncc build --source-map --no-source-map-register --license licenses.txt",
|
||||
"build:package": "node fix-regex.js && ncc build --source-map --no-source-map-register --license licenses.txt",
|
||||
"check": "concurrently -n check: -c red,green,blue -g npm:check:*",
|
||||
"check:build": "tsc --noEmit",
|
||||
"check:format": "prettier --check .",
|
||||
"check:lint": "eslint .",
|
||||
"fix:format": "prettier --write .",
|
||||
"test": "jest",
|
||||
"postinstall": "patch-package"
|
||||
"postinstall": "node fix-regex.js"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user