Use esbuild to generate esm bundle

This commit is contained in:
Alex Miller 2024-09-11 13:14:51 +12:00
parent e5970628e0
commit c4f6f6794a
8 changed files with 316 additions and 30 deletions

View file

@ -3,27 +3,26 @@
"version": "1.0.0",
"private": true,
"description": "Execute your workflow steps only if relevant files are modified.",
"main": "lib/main.js",
"type": "module",
"scripts": {
"build": "tsc -b tsconfig.build.json",
"tscheck": "tsc",
"build": "pnpm run build:types && pnpm run build:bundle",
"build:bundle": "node ./esbuild.config.mjs",
"build:types": "tsc",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint",
"pack": "ncc build -m",
"test": "vitest",
"all": "pnpm run build && pnpm run tscheck && pnpm run lint && pnpm run format && pnpm run pack && pnpm test run"
"all": "pnpm run build && pnpm run lint && pnpm run format && pnpm test run"
},
"repository": {
"type": "git",
"url": "git+https://github.com/actions/typescript-action.git"
"url": "git+https://github.com/AurorNZ/paths-filter.git"
},
"keywords": [
"actions",
"node",
"setup"
],
"author": "YourNameOrOrganization",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
@ -44,7 +43,8 @@
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"@vercel/ncc": "^0.38.1",
"chalk": "^5.3.0",
"esbuild": "^0.23.1",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",