Skip to content

Commit

Permalink
regen
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxstorm committed May 17, 2024
1 parent 5b60aaf commit 25d5e2d
Show file tree
Hide file tree
Showing 1,337 changed files with 252,084 additions and 11,121 deletions.
44 changes: 44 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Makefile for building a TypeScript GitHub Action

# Variables
SHELL := /bin/bash
SRC_DIR := src
BUILD_DIR := lib
ENTRY_POINT := $(SRC_DIR)/index.ts

# Binaries
TS_NODE := ./node_modules/.bin/ts-node
TS_C := ./node_modules/.bin/tsc
ESLINT := ./node_modules/.bin/eslint
PRETTIER := ./node_modules/.bin/prettier

# Targets
.PHONY: all clean install build format

all: clean install build

# Clean up the dist directory
clean:
rm -rf $(BUILD_DIR)

# Install npm dependencies
install:
npm install

# Build the TypeScript code
build: clean
$(TS_C) --outDir $(BUILD_DIR) --rootDir $(SRC_DIR)

# Lint the TypeScript code
lint:
$(ESLINT) $(SRC_DIR)

# Format the TypeScript code
format:
$(PRETTIER) --write "$(SRC_DIR)/**/*.ts"

# Run the action locally (for testing purposes)
run: build
node $(BUILD_DIR)/index.js


10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


export default [
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function getCacheDirectory() {
return cacheDirectory;
}
function getExtractFn(assetName) {
if (assetName.endsWith('.tar.gz') || assetName.endsWith('.tar.bz2')) {
if (assetName.endsWith('.tar.gz') || assetName.endsWith('.tar.bz2') || assetName.endsWith('.tgz')) {
return tc.extractTar;
}
else if (assetName.endsWith('.zip')) {
Expand Down
1 change: 1 addition & 0 deletions node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/eslint

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/js-yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/node-which

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 25d5e2d

Please sign in to comment.