Skip to content

Commit bf00f11

Browse files
committed
ts noEmit
1 parent d0906c0 commit bf00f11

File tree

11 files changed

+15
-14
lines changed

11 files changed

+15
-14
lines changed

cli/bsc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import { execFileSync } from "node:child_process";
66

7-
import { bsc_exe } from "./_paths.js";
7+
import { bsc_exe } from "#cli/paths";
88

99
const delegate_args = process.argv.slice(2);
1010

File renamed without changes.

cli/_bsb.js renamed to cli/common/bsb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as os from "node:os";
77
import * as path from "node:path";
88
import { WebSocket } from "#lib/minisocket";
99

10-
import { rescript_exe } from "./_paths.js";
10+
import { rescript_exe } from "./paths.js";
1111

1212
const cwd = process.cwd();
1313
const lockFileName = path.join(cwd, ".bsb.lock");

cli/_paths.js renamed to cli/common/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as path from "node:path";
44

5-
export const cliPath = path.join(import.meta.dirname, "rescript.js");
5+
export const cliPath = path.join(import.meta.dirname, "../rescript.js");
66

77
/**
88
* For compatibility reasons, if the architecture is x64, omit it from the bin directory name.

cli/rescript-tools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import * as child_process from "node:child_process";
66

7-
import { rescript_tools_exe } from "./_paths.js";
7+
import { rescript_tools_exe } from "#cli/paths";
88

99
const args = process.argv.slice(2);
1010

cli/rescript.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import * as tty from "node:tty";
1010
import packageJson from "rescript/package.json" with { type: "json" };
1111

12-
import * as bsb from "./_bsb.js";
13-
import { bsc_exe, rescript_exe } from "./_paths.js";
12+
import * as bsb from "#cli/bsb";
13+
import { bsc_exe, rescript_exe } from "#cli/paths";
1414

1515
const cwd = process.cwd();
1616
process.env.BSB_PROJECT_ROOT = cwd;
@@ -112,12 +112,12 @@ if (
112112
break;
113113
}
114114
case "format": {
115-
const mod = await import("./rescript/rescript_format.js");
115+
const mod = await import("./rescript/format.js");
116116
await mod.main(subcmdArgs, rescript_exe, bsc_exe);
117117
break;
118118
}
119119
case "dump": {
120-
const mod = await import("./rescript/rescript_dump.js");
120+
const mod = await import("./rescript/dump.js");
121121
mod.main(subcmdArgs, rescript_exe, bsc_exe);
122122
break;
123123
}

cli/rescript/rescript_dump.js renamed to cli/rescript/dump.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as child_process from "node:child_process";
44
import * as path from "node:path";
55

6-
import * as arg from "../_args.js";
6+
import * as arg from "#cli/args";
77

88
const dump_usage = `Usage: rescript dump <options> [target]
99
\`rescript dump\` dumps the information for the target

cli/rescript/rescript_format.js renamed to cli/rescript/format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as os from "node:os";
88
import * as path from "node:path";
99
import { promisify } from "node:util";
1010

11-
import * as arg from "../_args.js";
11+
import * as arg from "#cli/args";
1212

1313
const asyncExecFile = promisify(child_process.execFile);
1414

cli/rewatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @ts-check
44

55
import * as child_process from "node:child_process";
6-
import { rewatch_exe } from "./bin_path.js";
6+
import { rewatch_exe } from "#cli/paths";
77

88
const args = process.argv.slice(2);
99

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
"./package.json": "./package.json"
7474
},
7575
"imports": {
76-
"#cli/paths": "./cli/_paths.js",
77-
"#lib/minisocket": "./lib/minisocket.js",
78-
"#dev/*": "./lib_dev/*.js"
76+
"#cli/*": "./cli/common/*.js",
77+
"#dev/*": "./lib_dev/*.js",
78+
"#lib/minisocket": "./lib/minisocket.js"
7979
},
8080
"devDependencies": {
8181
"@biomejs/biome": "1.9.4",

tests/gentype_tests/typescript-react-example/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"strict": true,
88
"skipLibCheck": true,
99
"allowJs": true,
10+
"noEmit": true
1011
},
1112
"include": ["src"]
1213
}

0 commit comments

Comments
 (0)