Refactored to use esbuild

This commit is contained in:
Corey Butler 2022-10-12 20:49:37 -05:00
parent a4acf0cff0
commit bacfccaa39
No known key found for this signature in database
GPG Key ID: 11C5CD9E1B4C7F8F
11 changed files with 29110 additions and 16 deletions

View File

@ -62,4 +62,4 @@ outputs:
description: \"yes\" or \"no\", indicating the tag represents a semantic version build.
runs:
using: "node16"
main: "app/main.js"
main: "dist/main.js"

27315
dist/main.js vendored Normal file

File diff suppressed because one or more lines are too long

1778
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,27 @@
{
"name": "action-autotag-test",
"version": "1.1.1",
"description": "This is a test file for the action.",
"main": "index.js",
"dependencies": {},
"devDependencies": {},
"name": "autotag-action",
"version": "1.1.3",
"private": true,
"description": "Automatically create a tag whenever the version changes in package.json",
"main": "app/main.js",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^2.1.0",
"semver": "^7.3.4"
},
"devDependencies": {
"esbuild": "^0.15.10"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "esbuild --bundle ./src/main.js --platform=node --outdir=dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ButlerLogic/action-autotag.git"
},
"author": "",
"license": "ISC",
"author": "Corey Butler",
"license": "MIT",
"bugs": {
"url": "https://github.com/ButlerLogic/action-autotag/issues"
},

View File

@ -18,10 +18,5 @@
],
"author": "ButlerLogic",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^2.1.0",
"semver": "^7.3.4"
},
"type": "module"
}