From 4da9ff07591601a8da74a7a4b60d3d8a1cdbf642 Mon Sep 17 00:00:00 2001 From: kujirahand Date: Thu, 4 Jul 2024 22:30:36 +0900 Subject: [PATCH] =?UTF-8?q?ts-node=20=E3=81=A7=E5=8B=95=E3=81=8F=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E5=BE=AE=E4=BF=AE=E6=AD=A3=20#1691?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src/plugin_node.mts | 1 + tsconfig.json | 15 +++++++++++---- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 274cadd6..6ab39913 100644 --- a/package.json +++ b/package.json @@ -151,6 +151,7 @@ "marked": "^13.0.1", "node-fetch": "^3.3.2", "opener": "^1.5.2", - "shell-quote": "^1.8.1" + "shell-quote": "^1.8.1", + "ts-node": "^10.9.2" } } diff --git a/src/plugin_node.mts b/src/plugin_node.mts index 40e7d73a..1f573946 100644 --- a/src/plugin_node.mts +++ b/src/plugin_node.mts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ /** * file: plugin_node.mjs * node.js のためのプラグイン diff --git a/tsconfig.json b/tsconfig.json index 619916b5..870e10ac 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,7 +23,7 @@ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ /* Modules */ - "module": "esnext", /* Specify what module code is generated. */ + "module": "ESNext", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ @@ -96,9 +96,16 @@ /* Completeness */ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "skipLibCheck": true, /* Skip type checking all .d.ts files. */ + /* + "allowImportingTsExtensions": true, + "noEmit": true + */ }, - "extends": "./core/tsconfig.json", + /* "extends": "./core/tsconfig.json", */ "exclude": ["core/deno/*", "deno/*", "utils/*", "core/sample/*"], - "include": ["core/src/*", "src/*"] + "include": ["core/src/*", "src/*"], + "ts-node": { + "esm": true + } }