Skip to content

Commit 4f80012

Browse files
committed
Bundle action using esbuild
Remove node_modules from repository to reduce cost to download repository. Because node_modules is no longer included, `npm install` must be run before performing various tasks.
1 parent 3ba65e9 commit 4f80012

File tree

18,751 files changed

+3099
-4725013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

18,751 files changed

+3099
-4725013
lines changed

.github/actions/prepare-test/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ outputs:
1919
runs:
2020
using: composite
2121
steps:
22+
- name: npm install
23+
shell: bash
24+
run: npm install
2225
- name: Move codeql-action
2326
shell: bash
2427
run: |

.github/actions/update-bundle/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ runs:
88
shell: bash
99
run: npm install -g ts-node
1010

11+
- name: Install
12+
shell: bash
13+
run: npm install
14+
1115
- name: Run update script
1216
working-directory: ${{ github.action_path }}
1317
shell: bash

.github/workflows/pr-checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v4
2828

29+
- name: Install
30+
run: npm install
31+
2932
- name: Lint
3033
id: lint
3134
run: npm run-script lint-ci

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Ignore for example failing-tests.json from AVA
2-
node_modules/.cache/
1+
# actions are bundled to make this repository lightweight for consumers
2+
node_modules/
33
# Java build files
44
.gradle/
55
*.class
@@ -8,4 +8,4 @@ node_modules/.cache/
88
# eslint sarif report
99
eslint.sarif
1010
# for local incremental compilation
11-
tsconfig.tsbuildinfo
11+
tsconfig.tsbuildinfo

analyze/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ outputs:
9292
description: The ID of the uploaded SARIF file.
9393
runs:
9494
using: node20
95-
main: "../lib/analyze-action.js"
96-
post: "../lib/analyze-action-post.js"
95+
main: "analyze-action.js"
96+
post: "analyze-action-post.js"

analyze/analyze-action-post.js

Lines changed: 379 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analyze/analyze-action.js

Lines changed: 230 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

autobuild/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ inputs:
1616
required: false
1717
runs:
1818
using: node20
19-
main: '../lib/autobuild-action.js'
19+
main: 'autobuild-action.js'

autobuild/autobuild-action.js

Lines changed: 180 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export default [
3131
"tests/**/*",
3232
"eslint.config.mjs",
3333
".github/**/*",
34+
"*/*-action.js",
35+
"*/*-action-post.js",
3436
],
3537
},
3638
...fixupConfigRules(

init/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,5 @@ outputs:
147147
description: The version of the CodeQL binary used for analysis
148148
runs:
149149
using: node20
150-
main: '../lib/init-action.js'
151-
post: '../lib/init-action-post.js'
150+
main: 'init-action.js'
151+
post: 'init-action-post.js'

init/init-action-post.js

Lines changed: 379 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

init/init-action.js

Lines changed: 187 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/acorn

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/ava

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/browserslist

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/browserslist-lint

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/crc32

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/dot-object

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/eslint

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/eslint-config-prettier

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/eslint-ignore-errors

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/esparse

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/esvalidate

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/fxparser

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/get-folder-size

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/glob

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/is-docker

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/is-inside-container

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/js-yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/json5

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/mkdirp

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/node-which

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/prettier

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/protoc

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/protoc-gen-dump

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/protoc-gen-ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/protoc-gen-twirp_ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/removeNPMAbsolutePaths

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/resolve

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/rimraf

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/semver

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/tsc

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/tsserver

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/uuid

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)