diff --git a/package.json b/package.json index 91d95f6..2673566 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "main": "lib/index.js", "scripts": { "prebuild": "npm i ncc", - "build": "ncc build src/run.ts -o lib", + "build": "ncc build src/index.ts -o lib", "test": "jest", "test-coverage": "jest --coverage", "format": "prettier --write .", diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..aa8f295 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,5 @@ +import {run} from './run' +import * as core from '@actions/core' + + +run().catch(core.setFailed) \ No newline at end of file diff --git a/src/run.ts b/src/run.ts index dbef9f9..0d7e8ea 100644 --- a/src/run.ts +++ b/src/run.ts @@ -155,5 +155,3 @@ export var walkSync = function (dir, filelist, fileToFind) { }) return filelist } - -run().catch(core.setFailed)