Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaciras committed Jun 13, 2024
1 parent 15f4ca9 commit 3a5e310
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ts-directly",
"version": "1.0.3",
"description": "Let Node execute TypeScript files directly with the compiler you installed, support SWC, esbuild, and tsc compilers",
"version": "1.1.0",
"description": "Let Node execute TypeScript files directly with the compiler you installed, support SWC, esbuild, and tsc",
"license": "MIT",
"author": "Kaciras <Kaciras@outlook.com>",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async function esbuildCompiler(): Promise<CompileFn> {
};
}

async function tsCompiler(): Promise<CompileFn> {
async function tscCompiler(): Promise<CompileFn> {
const { default: ts } = await import("typescript");

return async (code, fileName, isESM) => {
Expand Down Expand Up @@ -151,7 +151,7 @@ async function tsCompiler(): Promise<CompileFn> {
}

// Fast compiler first, benchmarks are in benchmark/loader.ts
export const compilers = [swcCompiler, esbuildCompiler, tsCompiler];
export const compilers = [swcCompiler, esbuildCompiler, tscCompiler];

let compile: CompileFn;

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/require-ne.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { stdout } = require("process");

stdout.write(require("./nested.cjs").default);
stdout.write(require("./nested.cjs").default as any);

0 comments on commit 3a5e310

Please sign in to comment.