-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,4 @@ inputs: | |
default: "autocomplete" | ||
runs: | ||
using: "node20" | ||
main: "dist/index.js" | ||
main: "dist/main.js" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { createRequire } from 'node:module'; | ||
import path from 'node:path'; | ||
import url from 'node:url'; | ||
|
||
globalThis.require = createRequire(import.meta.url); | ||
globalThis.__filename = url.fileURLToPath(import.meta.url); | ||
globalThis.__dirname = path.dirname(__filename); |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import * as esbuild from "esbuild"; | ||
|
||
await esbuild.build({ | ||
bundle: true, | ||
entryPoints: ["src/main.ts"], | ||
outdir: "dist", | ||
minify: true, | ||
keepNames: true, | ||
platform: "node", | ||
format: "esm", | ||
chunkNames: "chunks/[name]-[hash]", | ||
splitting: true, | ||
inject: ['cjs-shim.js'], | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
{ | ||
"name": "push-to-fig-autocomplete-action", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"private": true, | ||
"description": "Action to automatically open a new PR to the withfig/autocomplete repo", | ||
"type": "module", | ||
"main": "lib/main.js", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"format": "prettier --write '**/*.ts'", | ||
"format-check": "prettier --check '**/*.ts'", | ||
"lint": "eslint src/**/*.ts", | ||
"package": "esbuild --bundle src/main.ts --outfile=dist/index.js --minify --keep-names --sourcemap --platform=node", | ||
"package": "tsc && rm -rf dist && mkdir dist && node esbuild.js", | ||
"test": "vitest --run --passWithNoTests", | ||
"all": "npm run format && npm run lint && npm run package && npm test", | ||
"prepare": "husky install" | ||
|
@@ -32,10 +33,10 @@ | |
"author": "Grant Gurvis <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@actions/artifact": "^2.1.4", | ||
"@actions/artifact": "^2.1.7", | ||
"@actions/core": "^1.10.1", | ||
"@actions/github": "^6.0.0", | ||
"@fig/autocomplete-merge": "^1.3.0" | ||
"@fig/autocomplete-merge": "^1.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/eslint": "^8.56.5", | ||
|
@@ -49,7 +50,7 @@ | |
"js-yaml": "^4.1.0", | ||
"prettier": "^3.3.0", | ||
"ts-loader": "^9.5.1", | ||
"typescript": "^5.3.3", | ||
"typescript": "^5.4.5", | ||
"vitest": "^1.6.0" | ||
} | ||
} |