diff --git a/src/archives/scripts/warmup-remotejson.ts b/src/archives/scripts/warmup-remotejson.ts index 565d809f99..81cbd6a6de 100755 --- a/src/archives/scripts/warmup-remotejson.ts +++ b/src/archives/scripts/warmup-remotejson.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This calls a function directly that is used by our archived enterprise diff --git a/src/article-api/scripts/precompute-pageinfo.ts b/src/article-api/scripts/precompute-pageinfo.ts index cd46fbe4ec..9259dda5e5 100644 --- a/src/article-api/scripts/precompute-pageinfo.ts +++ b/src/article-api/scripts/precompute-pageinfo.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - /** * This script gathers all English pages, computes each page's * 'title', 'intro' and 'product' properties. These things are then stored diff --git a/src/assets/scripts/deleted-assets-pr-comment-1.ts b/src/assets/scripts/deleted-assets-pr-comment-1.ts index 23c41dddac..1bb96a9be1 100755 --- a/src/assets/scripts/deleted-assets-pr-comment-1.ts +++ b/src/assets/scripts/deleted-assets-pr-comment-1.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // For testing the GitHub Action that executes diff --git a/src/assets/scripts/deleted-assets-pr-comment.ts b/src/assets/scripts/deleted-assets-pr-comment.ts index 99c3f39a3d..cc7802a799 100755 --- a/src/assets/scripts/deleted-assets-pr-comment.ts +++ b/src/assets/scripts/deleted-assets-pr-comment.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import * as github from '@actions/github' import core from '@actions/core' diff --git a/src/assets/scripts/find-orphaned-assets.ts b/src/assets/scripts/find-orphaned-assets.ts index 7886077a46..412c9152e2 100755 --- a/src/assets/scripts/find-orphaned-assets.ts +++ b/src/assets/scripts/find-orphaned-assets.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Print a list of all the asset files that can't be found mentioned diff --git a/src/assets/scripts/list-image-sizes.ts b/src/assets/scripts/list-image-sizes.ts index e343dacdd4..d089e4247b 100755 --- a/src/assets/scripts/list-image-sizes.ts +++ b/src/assets/scripts/list-image-sizes.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script lists all local image files, sorted by their dimensions. diff --git a/src/assets/scripts/validate-asset-images.ts b/src/assets/scripts/validate-asset-images.ts index 1caf44fb17..d76817c936 100755 --- a/src/assets/scripts/validate-asset-images.ts +++ b/src/assets/scripts/validate-asset-images.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Makes sure that all the image assets in `assets/` are safe. diff --git a/src/audit-logs/scripts/sync.ts b/src/audit-logs/scripts/sync.ts index 11ac8a1385..b26dd3c5d1 100755 --- a/src/audit-logs/scripts/sync.ts +++ b/src/audit-logs/scripts/sync.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - /** * Required env variables: * diff --git a/src/code-scanning/scripts/generate-code-scanning-query-list.ts b/src/code-scanning/scripts/generate-code-scanning-query-list.ts index 2bc8a6cbb8..9f7e574146 100644 --- a/src/code-scanning/scripts/generate-code-scanning-query-list.ts +++ b/src/code-scanning/scripts/generate-code-scanning-query-list.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - /** * This script generates a block of Markdown that can be saved as a reusable. * The reusable lists all the queries for one programming language, with CWEs, as a Markdown table. diff --git a/src/codeql-cli/scripts/sync.js b/src/codeql-cli/scripts/sync.js index 3cd31f47ae..85cd61fa1e 100755 --- a/src/codeql-cli/scripts/sync.js +++ b/src/codeql-cli/scripts/sync.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import { readFile, writeFile, copyFile } from 'fs/promises' import { existsSync } from 'fs' import walk from 'walk-sync' diff --git a/src/content-linter/lib/helpers/get-lintable-yml.js b/src/content-linter/lib/helpers/get-lintable-yml.js index 436e5426a5..438d7690b7 100755 --- a/src/content-linter/lib/helpers/get-lintable-yml.js +++ b/src/content-linter/lib/helpers/get-lintable-yml.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import yaml from 'js-yaml' import fs from 'fs/promises' diff --git a/src/content-linter/scripts/disable-rules.js b/src/content-linter/scripts/disable-rules.js index 7c06105c19..17be18f977 100755 --- a/src/content-linter/scripts/disable-rules.js +++ b/src/content-linter/scripts/disable-rules.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node // Disables markdownlint rules in markdown files with same-line comments. This is // useful when introducing a new rule that causes many failures. The comments // can be fixed and removed at while updating the file later. diff --git a/src/content-linter/scripts/generate-docs.ts b/src/content-linter/scripts/generate-docs.ts index 4e7f0c27d0..4c25adef8d 100644 --- a/src/content-linter/scripts/generate-docs.ts +++ b/src/content-linter/scripts/generate-docs.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { writeFileSync } from 'fs' import type { Rule, Config } from '../types.ts' import { allRules, allConfig } from '../lib/helpers/get-rules.js' diff --git a/src/content-linter/scripts/lint-content.js b/src/content-linter/scripts/lint-content.js index 218b559e5a..7ae4d46fcf 100755 --- a/src/content-linter/scripts/lint-content.js +++ b/src/content-linter/scripts/lint-content.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import fs from 'fs' import path from 'path' import { execSync } from 'child_process' diff --git a/src/content-linter/scripts/post-lints.js b/src/content-linter/scripts/post-lints.js index 5f13343ede..f1e91243e5 100644 --- a/src/content-linter/scripts/post-lints.js +++ b/src/content-linter/scripts/post-lints.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import { program } from 'commander' import fs from 'fs' import coreLib from '@actions/core' diff --git a/src/content-render/scripts/move-content.js b/src/content-render/scripts/move-content.js index 81e64cfb76..d29c9b8061 100755 --- a/src/content-render/scripts/move-content.js +++ b/src/content-render/scripts/move-content.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Use this script to help you move or rename a single file or a folder. The script will move or rename the file or folder for you, update relevant `children` in the index.md file(s), and add a `redirect_from` to frontmatter in the renamed file(s). Note: You will still need to manually update the `title` if necessary. diff --git a/src/content-render/scripts/reconcile-category-dirs-with-ids.js b/src/content-render/scripts/reconcile-category-dirs-with-ids.js index 6e0d74dfdf..de9c069a0a 100755 --- a/src/content-render/scripts/reconcile-category-dirs-with-ids.js +++ b/src/content-render/scripts/reconcile-category-dirs-with-ids.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script will say which category pages needs to be renamed diff --git a/src/content-render/scripts/reconcile-filenames-with-ids.js b/src/content-render/scripts/reconcile-filenames-with-ids.js index cdc5336894..5eea734204 100755 --- a/src/content-render/scripts/reconcile-filenames-with-ids.js +++ b/src/content-render/scripts/reconcile-filenames-with-ids.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // An automated test checks for discrepancies between filenames and [autogenerated heading IDs](https://www.npmjs.com/package/remark-autolink-headings). diff --git a/src/content-render/scripts/render-content-markdown.js b/src/content-render/scripts/render-content-markdown.js index b920baf725..ea3c06f8fd 100755 --- a/src/content-render/scripts/render-content-markdown.js +++ b/src/content-render/scripts/render-content-markdown.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import fs from 'fs' import path from 'path' import { execSync } from 'child_process' diff --git a/src/dev-toc/generate.js b/src/dev-toc/generate.js index 52aa65f812..e81192711f 100755 --- a/src/dev-toc/generate.js +++ b/src/dev-toc/generate.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import fs from 'fs' import path from 'path' import { execSync } from 'child_process' diff --git a/src/early-access/scripts/migrate-early-access-product.js b/src/early-access/scripts/migrate-early-access-product.js index 3556193934..1f0fd25833 100755 --- a/src/early-access/scripts/migrate-early-access-product.js +++ b/src/early-access/scripts/migrate-early-access-product.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Move the files from an early-access product level docs set into an existing product. diff --git a/src/early-access/scripts/symlink-from-local-repo.js b/src/early-access/scripts/symlink-from-local-repo.js index df8c428aeb..d79c06c640 100755 --- a/src/early-access/scripts/symlink-from-local-repo.js +++ b/src/early-access/scripts/symlink-from-local-repo.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script is run on a writer's machine while developing Early Access content locally. diff --git a/src/early-access/scripts/update-data-and-image-paths.js b/src/early-access/scripts/update-data-and-image-paths.js index 07b3656eb8..2a04f5fcc3 100755 --- a/src/early-access/scripts/update-data-and-image-paths.js +++ b/src/early-access/scripts/update-data-and-image-paths.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script is run on a writer's machine while developing Early Access content locally. It diff --git a/src/early-access/scripts/what-docs-early-access-branch.js b/src/early-access/scripts/what-docs-early-access-branch.js index 0b4e226f9a..d956730440 100755 --- a/src/early-access/scripts/what-docs-early-access-branch.js +++ b/src/early-access/scripts/what-docs-early-access-branch.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import { getOctokit } from '@actions/github' import { setOutput } from '@actions/core' diff --git a/src/ghes-releases/scripts/create-enterprise-issue.js b/src/ghes-releases/scripts/create-enterprise-issue.js index fbfa7f3d2b..ef4fd11d91 100755 --- a/src/ghes-releases/scripts/create-enterprise-issue.js +++ b/src/ghes-releases/scripts/create-enterprise-issue.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import { readFileSync } from 'fs' import { basename } from 'path' import { Liquid } from 'liquidjs' diff --git a/src/ghes-releases/scripts/deprecate/archive-version.ts b/src/ghes-releases/scripts/deprecate/archive-version.ts index 4ec32a8077..37f2cbf228 100755 --- a/src/ghes-releases/scripts/deprecate/archive-version.ts +++ b/src/ghes-releases/scripts/deprecate/archive-version.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Run this script during the Enterprise deprecation process to download diff --git a/src/ghes-releases/scripts/get-liquid-conditionals.js b/src/ghes-releases/scripts/get-liquid-conditionals.js index b8c7711735..2ddf3ae1f7 100644 --- a/src/ghes-releases/scripts/get-liquid-conditionals.js +++ b/src/ghes-releases/scripts/get-liquid-conditionals.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // See https://github.com/harttle/liquidjs/discussions/294#discussioncomment-305068 import { Tokenizer } from 'liquidjs' diff --git a/src/ghes-releases/scripts/release-banner.js b/src/ghes-releases/scripts/release-banner.js index 3537e73364..da02a072d5 100755 --- a/src/ghes-releases/scripts/release-banner.js +++ b/src/ghes-releases/scripts/release-banner.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script creates or removes a release candidate banner for a specified version. diff --git a/src/ghes-releases/scripts/remove-static-files.js b/src/ghes-releases/scripts/remove-static-files.js index 2d3fa72e9d..55d6a15d40 100755 --- a/src/ghes-releases/scripts/remove-static-files.js +++ b/src/ghes-releases/scripts/remove-static-files.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script removes the static GraphQL, REST, and webhook files for any diff --git a/src/ghes-releases/scripts/remove-version-markup.js b/src/ghes-releases/scripts/remove-version-markup.js index 5f095ab502..bb391cede2 100755 --- a/src/ghes-releases/scripts/remove-version-markup.js +++ b/src/ghes-releases/scripts/remove-version-markup.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Run this script after an Enterprise deprecation to remove Liquid statements and frontmatter that diff --git a/src/ghes-releases/scripts/update-enterprise-dates.js b/src/ghes-releases/scripts/update-enterprise-dates.js index c1742e1e7e..0f60612189 100755 --- a/src/ghes-releases/scripts/update-enterprise-dates.js +++ b/src/ghes-releases/scripts/update-enterprise-dates.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script fetches data from https://github.com/github/enterprise-releases/blob/master/releases.json diff --git a/src/github-apps/scripts/enabled-list-schema.js b/src/github-apps/scripts/enabled-list-schema.js index 971c173af6..1d805d62af 100644 --- a/src/github-apps/scripts/enabled-list-schema.js +++ b/src/github-apps/scripts/enabled-list-schema.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node // This schema is used to validate // src/github-apps/data/server-to-server-rest.json // src/github-apps/data/user-to-server-rest.json diff --git a/src/github-apps/scripts/permission-list-schema.js b/src/github-apps/scripts/permission-list-schema.js index 3e1ac5e265..af879eb83c 100644 --- a/src/github-apps/scripts/permission-list-schema.js +++ b/src/github-apps/scripts/permission-list-schema.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node // This schema is used to validate // src/github-apps/data/fine-grained-pat-permissions.json // and src/github-apps/data/server-to-server-permissions.json diff --git a/src/github-apps/scripts/sync.js b/src/github-apps/scripts/sync.js index 9e3c635549..3656818fd2 100755 --- a/src/github-apps/scripts/sync.js +++ b/src/github-apps/scripts/sync.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import { existsSync } from 'fs' import { mkdirp } from 'mkdirp' import { readFile, writeFile } from 'fs/promises' diff --git a/src/graphql/scripts/build-changelog.js b/src/graphql/scripts/build-changelog.js index 1d806966ee..2542a5ffcf 100644 --- a/src/graphql/scripts/build-changelog.js +++ b/src/graphql/scripts/build-changelog.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { diff, ChangeType } from '@graphql-inspector/core' import { loadSchema } from '@graphql-tools/load' import fs from 'fs' diff --git a/src/graphql/scripts/sync.js b/src/graphql/scripts/sync.js index 9a798903cd..9449b24726 100755 --- a/src/graphql/scripts/sync.js +++ b/src/graphql/scripts/sync.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import fs from 'fs/promises' import path from 'path' import { mkdirp } from 'mkdirp' diff --git a/src/graphql/scripts/utils/process-previews.js b/src/graphql/scripts/utils/process-previews.js index 6bdfdfc573..40b43a52aa 100644 --- a/src/graphql/scripts/utils/process-previews.js +++ b/src/graphql/scripts/utils/process-previews.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { sentenceCase } from 'change-case' import GithubSlugger from 'github-slugger' const slugger = new GithubSlugger() diff --git a/src/graphql/scripts/utils/process-schemas.js b/src/graphql/scripts/utils/process-schemas.js index bac3b0515f..4363c159a6 100755 --- a/src/graphql/scripts/utils/process-schemas.js +++ b/src/graphql/scripts/utils/process-schemas.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { sortBy } from 'lodash-es' import { parse, buildASTSchema } from 'graphql' import helpers from './schema-helpers.js' diff --git a/src/graphql/scripts/utils/process-upcoming-changes.js b/src/graphql/scripts/utils/process-upcoming-changes.js index 5077cd5fea..3566a21cd3 100644 --- a/src/graphql/scripts/utils/process-upcoming-changes.js +++ b/src/graphql/scripts/utils/process-upcoming-changes.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import yaml from 'js-yaml' import { groupBy } from 'lodash-es' import { renderContent } from '#src/content-render/index.js' diff --git a/src/graphql/scripts/utils/schema-helpers.js b/src/graphql/scripts/utils/schema-helpers.js index 46ccb3e952..61b72635ac 100644 --- a/src/graphql/scripts/utils/schema-helpers.js +++ b/src/graphql/scripts/utils/schema-helpers.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { renderContent } from '#src/content-render/index.js' import fs from 'fs/promises' import { diff --git a/src/languages/scripts/purge-fastly-edge-cache-per-language.js b/src/languages/scripts/purge-fastly-edge-cache-per-language.js index 9bfd742543..e7cac75f06 100755 --- a/src/languages/scripts/purge-fastly-edge-cache-per-language.js +++ b/src/languages/scripts/purge-fastly-edge-cache-per-language.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import { languageKeys } from '#src/languages/lib/languages.js' import { makeLanguageSurrogateKey } from '#src/frame/middleware/set-fastly-surrogate-key.js' diff --git a/src/links/scripts/check-github-github-links.ts b/src/links/scripts/check-github-github-links.ts index 3934bc6541..1b1a760b85 100755 --- a/src/links/scripts/check-github-github-links.ts +++ b/src/links/scripts/check-github-github-links.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Run this script to get all broken docs.github.com links in github/github diff --git a/src/links/scripts/rendered-content-link-checker-cli.ts b/src/links/scripts/rendered-content-link-checker-cli.ts index fd458e44e5..8e14c780be 100755 --- a/src/links/scripts/rendered-content-link-checker-cli.ts +++ b/src/links/scripts/rendered-content-link-checker-cli.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script goes through all content and renders their HTML and from there diff --git a/src/links/scripts/update-internal-links.ts b/src/links/scripts/update-internal-links.ts index 6218905b65..d36d9ce19c 100755 --- a/src/links/scripts/update-internal-links.ts +++ b/src/links/scripts/update-internal-links.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Run this script to update content's internal links. diff --git a/src/redirects/scripts/get-new-dotcom-path.js b/src/redirects/scripts/get-new-dotcom-path.js index cf796077a5..2012697a9c 100755 --- a/src/redirects/scripts/get-new-dotcom-path.js +++ b/src/redirects/scripts/get-new-dotcom-path.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Pass this script any old dotcom path (e.g., `articles/foo` or `foo.md`) and it diff --git a/src/redirects/scripts/helpers/add-redirect-to-frontmatter.js b/src/redirects/scripts/helpers/add-redirect-to-frontmatter.js index 20c1a71d5f..af7f3d7caa 100644 --- a/src/redirects/scripts/helpers/add-redirect-to-frontmatter.js +++ b/src/redirects/scripts/helpers/add-redirect-to-frontmatter.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node // add a new redirect string to redirect_from frontmatter export default function addRedirectToFrontmatter(redirectFromData, newRedirectString) { diff --git a/src/rest/docs.js b/src/rest/docs.js index e84684dcc9..3bc1ddbbe4 100755 --- a/src/rest/docs.js +++ b/src/rest/docs.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import chalk from 'chalk' import { readFile } from 'fs/promises' import { allVersions } from '#src/versions/lib/all-versions.js' diff --git a/src/rest/scripts/openapi-check.js b/src/rest/scripts/openapi-check.js index 8b63e793e6..c1f182641c 100755 --- a/src/rest/scripts/openapi-check.js +++ b/src/rest/scripts/openapi-check.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Run this script to check if OpenAPI files can be decorated successfully. diff --git a/src/rest/scripts/test-open-api-schema.js b/src/rest/scripts/test-open-api-schema.js index 0fdf0e83b9..7f4cdda72f 100755 --- a/src/rest/scripts/test-open-api-schema.js +++ b/src/rest/scripts/test-open-api-schema.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Run this script to check if OpenAPI operations match versions in content/rest operations diff --git a/src/rest/scripts/update-files.ts b/src/rest/scripts/update-files.ts index 7873887dd4..5d0ea3643e 100755 --- a/src/rest/scripts/update-files.ts +++ b/src/rest/scripts/update-files.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Run this script to generate the updated data files for the rest, diff --git a/src/rest/scripts/utils/create-rest-examples.js b/src/rest/scripts/utils/create-rest-examples.js index d5117de614..9273b52f18 100644 --- a/src/rest/scripts/utils/create-rest-examples.js +++ b/src/rest/scripts/utils/create-rest-examples.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // In the case that there are more than one example requests, and // no content responses, a request with an example key that matches the // status code of a response will be matched. @@ -111,9 +109,9 @@ export function mergeExamples(requestExamples, responseExamples) { /* Create an example object for each example in the requestBody property - of the schema. Each requestBody can have more than one content type. + of the schema. Each requestBody can have more than one content type. Each content type can have more than one example. We create an object - for each permutation of content type and example. + for each permutation of content type and example. Returns an array of objects in the format: { key, @@ -220,9 +218,9 @@ export function getRequestExamples(operation) { /* Create an example object for each example in the response property of the schema. Each response can have more than one status code, - each with more than one content type. And each content type can + each with more than one content type. And each content type can have more than one example. We create an object - for each permutation of status, content type, and example. + for each permutation of status, content type, and example. Returns an array of objects in the format: { key, diff --git a/src/rest/scripts/utils/get-body-params.ts b/src/rest/scripts/utils/get-body-params.ts index d676a73b18..a7556d6a9d 100644 --- a/src/rest/scripts/utils/get-body-params.ts +++ b/src/rest/scripts/utils/get-body-params.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { renderContent } from '@/content-render/index' interface Schema { diff --git a/src/rest/scripts/utils/get-redirects.js b/src/rest/scripts/utils/get-redirects.js index 97caca6872..6636b0a70d 100644 --- a/src/rest/scripts/utils/get-redirects.js +++ b/src/rest/scripts/utils/get-redirects.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { readFile, writeFile } from 'fs/promises' const STATIC_REDIRECTS = 'src/rest/data/client-side-rest-api-redirects.json' const REST_API_OVERRIDES = 'src/rest/lib/rest-api-overrides.json' diff --git a/src/rest/scripts/utils/operation-schema.js b/src/rest/scripts/utils/operation-schema.js index 47699f74da..2a5ae57170 100644 --- a/src/rest/scripts/utils/operation-schema.js +++ b/src/rest/scripts/utils/operation-schema.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node // This schema is used to validate each generated operation object at build time export default { diff --git a/src/rest/scripts/utils/operation.js b/src/rest/scripts/utils/operation.js index e46e93fd07..807cd4a143 100644 --- a/src/rest/scripts/utils/operation.js +++ b/src/rest/scripts/utils/operation.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import httpStatusCodes from 'http-status-code' import { get, isPlainObject } from 'lodash-es' import { parseTemplate } from 'url-template' diff --git a/src/secret-scanning/scripts/sync.ts b/src/secret-scanning/scripts/sync.ts index 45f7ced375..ace504ed43 100755 --- a/src/secret-scanning/scripts/sync.ts +++ b/src/secret-scanning/scripts/sync.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - /** * Required env variables: * diff --git a/src/tests/scripts/copy-fixture-data.js b/src/tests/scripts/copy-fixture-data.js index 0082366af4..6cb23e4052 100755 --- a/src/tests/scripts/copy-fixture-data.js +++ b/src/tests/scripts/copy-fixture-data.js @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // There are certain files that have to be manually copied from the diff --git a/src/versions/scripts/update-versioning-in-files.js b/src/versions/scripts/update-versioning-in-files.js index 052834118b..2d904ec733 100755 --- a/src/versions/scripts/update-versioning-in-files.js +++ b/src/versions/scripts/update-versioning-in-files.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import fs from 'fs' import path from 'path' import walk from 'walk-sync' diff --git a/src/versions/scripts/use-short-versions.js b/src/versions/scripts/use-short-versions.js index 1952fd60a1..c4612bcb11 100755 --- a/src/versions/scripts/use-short-versions.js +++ b/src/versions/scripts/use-short-versions.js @@ -1,4 +1,3 @@ -#!/usr/bin/env node import fs from 'fs' import walk from 'walk-sync' import path from 'path' diff --git a/src/webhooks/scripts/webhook-schema.ts b/src/webhooks/scripts/webhook-schema.ts index 6d304b3dbe..be10531244 100644 --- a/src/webhooks/scripts/webhook-schema.ts +++ b/src/webhooks/scripts/webhook-schema.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env node // This schema is used to validate each generated webhook object at build time export default { diff --git a/src/webhooks/scripts/webhook.ts b/src/webhooks/scripts/webhook.ts index f2a334d439..16f7983574 100644 --- a/src/webhooks/scripts/webhook.ts +++ b/src/webhooks/scripts/webhook.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { get, isPlainObject } from 'lodash-es' import { getJsonValidator } from '@/tests/lib/validate-json-schema' import { renderContent } from '@/content-render/index' diff --git a/src/workflows/check-content-type.ts b/src/workflows/check-content-type.ts index 4dbc97e47f..d9b855e263 100755 --- a/src/workflows/check-content-type.ts +++ b/src/workflows/check-content-type.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import coreLib from '@actions/core' import { checkContentType } from '@/workflows/fm-utils' diff --git a/src/workflows/cmp-files.ts b/src/workflows/cmp-files.ts index b259c1053a..91708766dd 100755 --- a/src/workflows/cmp-files.ts +++ b/src/workflows/cmp-files.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // Given N files. Exit 0 if they all exist and are identical in content. diff --git a/src/workflows/content-changes-table-comment-cli.ts b/src/workflows/content-changes-table-comment-cli.ts index cd03656c03..740197b749 100644 --- a/src/workflows/content-changes-table-comment-cli.ts +++ b/src/workflows/content-changes-table-comment-cli.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // For testing the GitHub Action that executes diff --git a/src/workflows/delete-orphan-translation-files.ts b/src/workflows/delete-orphan-translation-files.ts index a187fd4190..0c20496bb4 100644 --- a/src/workflows/delete-orphan-translation-files.ts +++ b/src/workflows/delete-orphan-translation-files.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - /** * This script will delete files from a translation repo of files that * only exist there and not "here". Here being the docs repo. diff --git a/src/workflows/find-past-built-pr.ts b/src/workflows/find-past-built-pr.ts index 35f3494a27..b0a0f47581 100644 --- a/src/workflows/find-past-built-pr.ts +++ b/src/workflows/find-past-built-pr.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env node import got from 'got' import { setOutput } from '@actions/core' diff --git a/src/workflows/git-utils.ts b/src/workflows/git-utils.ts index 9dc30cedfa..00b988c5de 100644 --- a/src/workflows/git-utils.ts +++ b/src/workflows/git-utils.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env node import crypto from 'crypto' import fs from 'fs/promises' diff --git a/src/workflows/github.ts b/src/workflows/github.ts index f324047e7b..d8ff50f233 100644 --- a/src/workflows/github.ts +++ b/src/workflows/github.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env node import dotenv from 'dotenv' import { Octokit } from '@octokit/rest' import { retry } from '@octokit/plugin-retry' diff --git a/src/workflows/labeler.ts b/src/workflows/labeler.ts index 622640d573..727423d65b 100755 --- a/src/workflows/labeler.ts +++ b/src/workflows/labeler.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // This script adds labels to issues or pull requests. diff --git a/src/workflows/prevent-pushes-to-main.ts b/src/workflows/prevent-pushes-to-main.ts index 3dee8071ff..e89c9265af 100644 --- a/src/workflows/prevent-pushes-to-main.ts +++ b/src/workflows/prevent-pushes-to-main.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // This script is intended to be used as a git "prepush" hook. diff --git a/src/workflows/purge-fastly-edge-cache.ts b/src/workflows/purge-fastly-edge-cache.ts index 82811e29b6..2fa4c07cb5 100755 --- a/src/workflows/purge-fastly-edge-cache.ts +++ b/src/workflows/purge-fastly-edge-cache.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env node import { SURROGATE_ENUMS } from '@/frame/middleware/set-fastly-surrogate-key' import purgeEdgeCache from './purge-edge-cache' diff --git a/src/workflows/purge-old-workflow-runs.ts b/src/workflows/purge-old-workflow-runs.ts index f44bd34f03..779e984611 100755 --- a/src/workflows/purge-old-workflow-runs.ts +++ b/src/workflows/purge-old-workflow-runs.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - /** * * The only mandatory environment variables for this scrips are: diff --git a/src/workflows/test-local-dev.ts b/src/workflows/test-local-dev.ts index e578fc77b5..330ad2de9b 100755 --- a/src/workflows/test-local-dev.ts +++ b/src/workflows/test-local-dev.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import assert from 'node:assert/strict' import fs from 'fs' diff --git a/src/workflows/unallowed-contributions.ts b/src/workflows/unallowed-contributions.ts index e5919f982f..39a8654052 100755 --- a/src/workflows/unallowed-contributions.ts +++ b/src/workflows/unallowed-contributions.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import coreLib from '@actions/core' import { readFileSync } from 'fs' import yaml from 'js-yaml' diff --git a/src/workflows/walk-files.ts b/src/workflows/walk-files.ts index 9bf93f7def..e1343334c1 100644 --- a/src/workflows/walk-files.ts +++ b/src/workflows/walk-files.ts @@ -1,5 +1,3 @@ -#!/usr/bin/env node - // [start-readme] // // A helper that returns an array of files for a given path and file extension.