Skip to content

Commit 242f982

Browse files
committed
Stop generating code
1 parent e48a889 commit 242f982

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

.github/workflows/ci.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ jobs:
3030
- name: Install dependencies
3131
run: npm ci
3232

33-
- name: Install tool dependencies
34-
working-directory: ./tools/TypeScript-DOM-lib-generator
35-
run: npm ci
36-
37-
- name: Generate ReScript code
38-
working-directory: ./tools/TypeScript-DOM-lib-generator
33+
- name: Build ReScript code
3934
run: npm run build
4035

4136
- name: Run tests

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/lib/
33
.bsb.lock
44
.astro
5-
dist/
5+
dist/
6+
tmp/

tools/TypeScript-DOM-lib-generator/src/build/emitter.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ type interfaceSettings = {
260260
const currentFileName = fileURLToPath(import.meta.url);
261261
const currentDir = path.dirname(currentFileName);
262262
const repoRoot = path.resolve(currentDir, "..", "..", "..", "..");
263-
const outputFolder = path.join(repoRoot, "src");
263+
const outputFolder = path.join(repoRoot, "tmp");
264264

265265
export async function emitRescriptBindings(webidl: Browser.WebIdl) {
266266
// Global print target
@@ -2912,7 +2912,6 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
29122912
await emitGlobalModule();
29132913

29142914
execSync("npx rescript format -all", { cwd: repoRoot, stdio: "inherit" });
2915-
execSync("npx rewatch", { cwd: repoRoot, stdio: "inherit" });
29162915

29172916
// let remainers = allInterfaces.filter((i) => {
29182917
// return !interfaceHierarchy.some((h) => {

0 commit comments

Comments
 (0)