From 13ec307e439546bdef8fcf9018391e2265ecf063 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Thu, 14 Aug 2025 13:43:22 +0000 Subject: [PATCH] fix(github-actions): add module type to github actions package.json This address the below warnings ``` node:9480) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///C:/a/_actions/angular/dev-infra/7f2c99469dcf64fd466abf6cb53bede791d7599d/github-actions/bazel/configure-remote/configure-remote.js is not specified and it doesn't parse as CommonJS. Reparsing as ES module because module syntax was detected. This incurs a performance overhead. To eliminate this warning, add "type": "module" to C:\a\_actions\angular\dev-infra\7f2c99469dcf64fd466abf6cb53bede791d7599d\github-actions\bazel\configure-remote\package.json. (Use `node --trace-warnings ...` to show where the warning was created) ``` --- github-actions/bazel/configure-remote/package.json | 1 + github-actions/branch-manager/package.json | 1 + github-actions/browserstack/package.json | 1 + github-actions/feature-request/package.json | 1 + github-actions/google-internal-tests/package.json | 1 + github-actions/org-file-sync/package.json | 1 + github-actions/post-approval-changes/package.json | 1 + github-actions/pull-request-labeling/package.json | 1 + github-actions/saucelabs/package.json | 1 + github-actions/unified-status-check/package.json | 1 + 10 files changed, 10 insertions(+) diff --git a/github-actions/bazel/configure-remote/package.json b/github-actions/bazel/configure-remote/package.json index 7aa04513a..7241a9089 100644 --- a/github-actions/bazel/configure-remote/package.json +++ b/github-actions/bazel/configure-remote/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@types/node": "24.2.0" diff --git a/github-actions/branch-manager/package.json b/github-actions/branch-manager/package.json index c5910d82b..dbd71d80a 100644 --- a/github-actions/branch-manager/package.json +++ b/github-actions/branch-manager/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@actions/github": "6.0.1", diff --git a/github-actions/browserstack/package.json b/github-actions/browserstack/package.json index 7aa04513a..7241a9089 100644 --- a/github-actions/browserstack/package.json +++ b/github-actions/browserstack/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@types/node": "24.2.0" diff --git a/github-actions/feature-request/package.json b/github-actions/feature-request/package.json index 16851604a..6c936f887 100644 --- a/github-actions/feature-request/package.json +++ b/github-actions/feature-request/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@actions/github": "6.0.1", diff --git a/github-actions/google-internal-tests/package.json b/github-actions/google-internal-tests/package.json index 1de520aac..6aed90278 100644 --- a/github-actions/google-internal-tests/package.json +++ b/github-actions/google-internal-tests/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@actions/github": "6.0.1", diff --git a/github-actions/org-file-sync/package.json b/github-actions/org-file-sync/package.json index cbe830c56..c48f93290 100644 --- a/github-actions/org-file-sync/package.json +++ b/github-actions/org-file-sync/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@actions/github": "6.0.1", diff --git a/github-actions/post-approval-changes/package.json b/github-actions/post-approval-changes/package.json index b5791a312..5e2a98581 100644 --- a/github-actions/post-approval-changes/package.json +++ b/github-actions/post-approval-changes/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@actions/github": "6.0.1", diff --git a/github-actions/pull-request-labeling/package.json b/github-actions/pull-request-labeling/package.json index 1de520aac..6aed90278 100644 --- a/github-actions/pull-request-labeling/package.json +++ b/github-actions/pull-request-labeling/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@actions/github": "6.0.1", diff --git a/github-actions/saucelabs/package.json b/github-actions/saucelabs/package.json index 7aa04513a..7241a9089 100644 --- a/github-actions/saucelabs/package.json +++ b/github-actions/saucelabs/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@types/node": "24.2.0" diff --git a/github-actions/unified-status-check/package.json b/github-actions/unified-status-check/package.json index 130f85b25..bcf52ea63 100644 --- a/github-actions/unified-status-check/package.json +++ b/github-actions/unified-status-check/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "@actions/core": "1.11.1", "@actions/github": "6.0.1",