Skip to content

Commit f334448

Browse files
committed
chore: add @ts-check for scripts written in JavaScript
1 parent b1a3975 commit f334448

File tree

7 files changed

+8
-0
lines changed

7 files changed

+8
-0
lines changed

scripts/generate-clients/code-gen-dir.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-check
12
const { join, normalize } = require("path");
23

34
const CODE_GEN_ROOT = normalize(join(__dirname, "..", "..", "codegen"));

scripts/generate-clients/code-gen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-check
12
const path = require("path");
23
const { emptyDirSync } = require("fs-extra");
34
const { copyFileSync, readdirSync, lstatSync } = require("fs");

scripts/generate-clients/code-prettify.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-check
12
const { spawnProcess } = require("./spawn-process");
23

34
const prettifyCode = async (dir) => {

scripts/generate-clients/copy-to-clients.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-check
12
const { join } = require("path");
23
const { copySync, ensureDirSync } = require("fs-extra");
34
const { readdirSync, lstatSync, readFileSync, existsSync, writeFileSync } = require("fs");

scripts/generate-clients/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-check
12
const yargs = require("yargs");
23
const path = require("path");
34
const { emptyDirSync, rmdirSync } = require("fs-extra");

scripts/generate-clients/spawn-process.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-check
12
const { spawn } = require("child_process");
23

34
const spawnProcess = (command, args = [], options = {}) =>

scripts/verdaccio-publish/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
// Reference: https://github.com/aws/aws-encryption-sdk-javascript/pull/276
55

6+
// @ts-check
7+
68
const { spawn, execSync } = require("child_process");
79
const pipeStdIo = { stdio: [process.stdin, process.stdout, process.stderr] };
810

0 commit comments

Comments
 (0)