Skip to content

Fix javy types #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 148 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// I cant' get this import to work locally. The import in node_modules is
// javy/dist but esbuild requires the import to be javy/fs
//
// @ts-expect-error
import { readFileSync, writeFileSync, STDIO } from "javy/fs";
import {
EmitHint,
FunctionDeclaration,
NewLineKind,
TypeNode,
ScriptKind,
Expand Down
2 changes: 0 additions & 2 deletions src/drivers/mysql2.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { SyntaxKind, NodeFlags, TypeNode, factory } from "typescript";

// import { writeFileSync, STDIO } from "javy/fs";

import { Parameter, Column, Query } from "../gen/plugin/codegen_pb";
import { argName, colName } from "./utlis";

Expand Down
3 changes: 3 additions & 0 deletions src/javy-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module "javy/fs" {
export * from "javy/dist/fs";
}
6 changes: 1 addition & 5 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
// I cant' get this import to work locally. The import in node_modules is
// javy/dist but esbuild requires the import to be javy/fs
//
// @ts-expect-error
import { readFileSync, writeFileSync, STDIO } from "javy/fs";
import { writeFileSync, STDIO } from "javy/fs";

export function log(msg: string) {
const encoder = new TextEncoder();
Expand Down