diff --git a/package-lock.json b/package-lock.json index 8f56daac..1c2e02cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "textlint-rule-preset-ja-technical-writing": "12.0.2", "textlint-rule-terminology": "5.2.16", "tsc": "2.0.4", - "tsx": "4.22.1", + "tsx": "4.22.3", "typescript": "6.0.3" }, "engines": { @@ -8110,9 +8110,9 @@ } }, "node_modules/tsx": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.22.1.tgz", - "integrity": "sha512-TvncJykhxAzFCk0VQZKBTClall4Pm7qXDSodb6uxi8QFa8X8mT6ABjxxsQ2opDRYxG7AzcRWXaFtruz5HJKuWg==", + "version": "4.22.3", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.22.3.tgz", + "integrity": "sha512-mdoNxBC/cSQObGGVQ5Bpn5i+yv7j68gk3Nfm3wFjcJg3Z0Mix9jzAFfP12prmm5eVGmDKtp0yyArrs0Q+8gZHg==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index f5b9f11e..a60ee9df 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "textlint-rule-preset-ja-technical-writing": "12.0.2", "textlint-rule-terminology": "5.2.16", "tsc": "2.0.4", - "tsx": "4.22.1", + "tsx": "4.22.3", "typescript": "6.0.3" }, "engines": { diff --git a/scripts/update_readme/update_readme/get_inputs_markdown.ts b/scripts/update_readme/update_readme/get_inputs_markdown.ts index 4d177fe6..5f058fed 100644 --- a/scripts/update_readme/update_readme/get_inputs_markdown.ts +++ b/scripts/update_readme/update_readme/get_inputs_markdown.ts @@ -1,5 +1,8 @@ +import { createRequire } from "module"; import { readFileSync } from "fs"; -import * as yaml from "js-yaml"; + +const require = createRequire(import.meta.url); +const yaml = require("js-yaml") as typeof import("js-yaml"); export function script(): string { const ymlFile = yaml.load(readFileSync("action.yml", "utf8")) as { diff --git a/tsconfig.json b/tsconfig.json index 27cc9388..093797f9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,5 +8,6 @@ "moduleResolution": "bundler", "types": ["node"], "isolatedModules": true - } + }, + "include": ["src/*.ts"] }