effect-analyzer 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2534,7 +2534,7 @@ var findEffectPrograms = (sourceFile, _opts) => {
2534
2534
  continue;
2535
2535
  }
2536
2536
  }
2537
- if ((exprText === "gen" || exprText.includes(".gen") && isEffectLikeCallExpression(call, sourceFile, effectImportNames, _opts.knownEffectInternalsRoot)) && !seenCallStarts.has(callStart)) {
2537
+ if ((exprText === "gen" || exprText.endsWith(".gen") && isEffectLikeCallExpression(call, sourceFile, effectImportNames, _opts.knownEffectInternalsRoot)) && !seenCallStarts.has(callStart)) {
2538
2538
  const name = extractProgramName(call) ?? extractEnclosingEffectFnName(call) ?? `program-${programs.length + 1}`;
2539
2539
  programs.push({
2540
2540
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "effect-analyzer",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Static analysis for Effect-TS code. Analyze Effect code to extract structure, calculate complexity, and generate visualizations.",
6
6
  "main": "./dist/index.cjs",
@@ -27,31 +27,38 @@
27
27
  "scripts",
28
28
  "README.md"
29
29
  ],
30
- "scripts": {
31
- "build": "tsup",
32
- "lsp": "node dist/lsp/server.js",
33
- "type-check": "tsc --noEmit",
34
- "test": "vitest run",
35
- "test:watch": "vitest watch",
36
- "lint": "eslint src",
37
- "lint:fix": "eslint src --fix",
38
- "clean": "rm -rf dist",
39
- "quality": "pnpm type-check && pnpm test && pnpm lint",
40
- "effect:fetch": "tsx scripts/fetch-effect-repo.ts"
41
- },
42
30
  "keywords": [
43
- "effect", "effect-ts", "static-analysis", "ts-morph",
44
- "typescript", "visualization", "mermaid", "functional-programming"
31
+ "effect",
32
+ "effect-ts",
33
+ "static-analysis",
34
+ "ts-morph",
35
+ "typescript",
36
+ "visualization",
37
+ "mermaid",
38
+ "functional-programming"
45
39
  ],
46
40
  "author": "Jag Reehal <jag@jagreehal.com>",
47
41
  "license": "MIT",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/jagreehal/effect-analyzer.git",
45
+ "directory": "packages/effect-analyzer"
46
+ },
47
+ "bugs": {
48
+ "url": "https://github.com/jagreehal/effect-analyzer/issues"
49
+ },
50
+ "homepage": "https://github.com/jagreehal/effect-analyzer/tree/main/packages/effect-analyzer#readme",
48
51
  "peerDependencies": {
49
52
  "effect": ">=3.0.0",
50
53
  "@effect/platform": ">=0.70.0"
51
54
  },
52
55
  "peerDependenciesMeta": {
53
- "effect": { "optional": false },
54
- "@effect/platform": { "optional": true }
56
+ "effect": {
57
+ "optional": false
58
+ },
59
+ "@effect/platform": {
60
+ "optional": true
61
+ }
55
62
  },
56
63
  "dependencies": {
57
64
  "effect": "^3.21.0",
@@ -72,5 +79,17 @@
72
79
  "typescript": "^5.9.3",
73
80
  "typescript-eslint": "^8.57.1",
74
81
  "vitest": "^4.1.0"
82
+ },
83
+ "scripts": {
84
+ "build": "tsup",
85
+ "lsp": "node dist/lsp/server.js",
86
+ "type-check": "tsc --noEmit",
87
+ "test": "vitest run",
88
+ "test:watch": "vitest watch",
89
+ "lint": "eslint src",
90
+ "lint:fix": "eslint src --fix",
91
+ "clean": "rm -rf dist",
92
+ "quality": "pnpm type-check && pnpm test && pnpm lint",
93
+ "effect:fetch": "tsx scripts/fetch-effect-repo.ts"
75
94
  }
76
- }
95
+ }