diff --git a/dist/index.js b/dist/index.js index 3c0f64c..d8724ee 100644 --- a/dist/index.js +++ b/dist/index.js @@ -19,7 +19,13 @@ module.exports = /******/ }; /******/ /******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ var threw = true; +/******/ try { +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ threw = false; +/******/ } finally { +/******/ if(threw) delete installedModules[moduleId]; +/******/ } /******/ /******/ // Flag the module as loaded /******/ module.l = true; diff --git a/package.json b/package.json index 687c594..931b937 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,12 @@ "main": "dist/index.js", "scripts": { "build": "tsc", - "release": "ncc build src/upload-artifact.ts && git add -f dist/", + "release": "node_modules/.bin/ncc build src/upload-artifact.ts && git add -f dist/", "check-all": "concurrently \"npm:format-check\" \"npm:lint\" \"npm:test\" \"npm:build\"", "format": "prettier --write **/*.ts", "format-check": "prettier --check **/*.ts", "lint": "eslint **/*.ts", - "test": "jest --testTimeout 10000" + "test": "node_modules/.bin/jest --testTimeout 10000" }, "repository": { "type": "git",