Skip to content

Commit

Permalink
Merge branch 'main' into merge-monorepo-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ozhanefemeral authored Jul 24, 2024
2 parents 9292f55 + 4ac1682 commit d865bc2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
17 changes: 17 additions & 0 deletions .turbo/turbo-build.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$ tsup src/index.ts --format cjs,esm --dts --minify --clean
CLI Building entry: src\index.ts
CLI Using tsconfig: tsconfig.json
CLI tsup v8.2.1
CLI Using tsup config: C:\Users\ozhan\Desktop\oz\self\visual-ts\packages\ts-generator\package.json
CLI Target: es2022
CLI Cleaning output folder
CJS Build start
ESM Build start
ESM dist\index.mjs 3.56 KB
ESM ⚡️ Build success in 41ms
CJS dist\index.js 4.25 KB
CJS ⚡️ Build success in 42ms
DTS Build start
DTS ⚡️ Build success in 1940ms
DTS dist\index.d.ts 2.79 KB
DTS dist\index.d.mts 2.79 KB
2 changes: 1 addition & 1 deletion src/module-parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export {
parseFunctionsFromFile,

Check failure on line 3 in src/module-parser/index.ts

View workflow job for this annotation

GitHub Actions / build

'"./parser"' has no exported member named 'parseFunctionsFromFile'. Did you mean 'parseFunctionsFromText'?
parseFunctionsFromText,
} from "./parser";
export { getFunctionVariables } from "./utils";
export { getFunctionVariables } from "./utils";
9 changes: 0 additions & 9 deletions src/module-parser/parser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Node, Project } from "ts-morph";
import type { FunctionInfo } from "../types";
import { getFunctionVariables } from "./utils";
import fs from "fs";
export function getFunctionInfoFromNode(node: Node): FunctionInfo | null {
if (Node.isFunctionDeclaration(node)) {
const name = node.getName() || "anonymous";
Expand Down Expand Up @@ -49,11 +48,3 @@ export function parseFunctionsFromText(sourceCode: string): {

return { functionsInfo, usedTypes };
}

export function parseFunctionsFromFile(filePath: string): {
functionsInfo: FunctionInfo[];
usedTypes: string[];
} {
const sourceCode = fs.readFileSync(filePath, "utf-8");
return parseFunctionsFromText(sourceCode);
}

0 comments on commit d865bc2

Please sign in to comment.