diff --git a/package.json b/package.json index a0965967..1a26e171 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "lint": "eslint --ext js --ext jsx src/ test/", "lint:fix": "npm run lint -- --fix", "test": "nyc mocha --forbid-only \"test/**/*.test.js\"", - "posttest": "eslint --ignore-path .gitignore . && npm audit --audit-level=moderate" + "posttest": "eslint --ignore-path .gitignore . && npm audit --audit-level=moderate", + "preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions" }, "dependencies": { "@actions/core": "^1.0.0", @@ -64,6 +65,9 @@ "sinon": "^9.0.2", "tmp": "^0.2.1" }, + "resolutions": { + "ansi-regex": "5.0.1" + }, "optionalDependencies": { "keytar": "^7.6.0" },