Skip to content

Commit

Permalink
ts-node で動くように微修正 #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed Jul 4, 2024
1 parent c103a6a commit 4da9ff0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
1 change: 1 addition & 0 deletions src/plugin_node.mts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/**
* file: plugin_node.mjs
* node.js のためのプラグイン
Expand Down
15 changes: 11 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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
}
}

0 comments on commit 4da9ff0

Please sign in to comment.