@ts-graphviz/ast 2.0.7 → 3.0.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-graphviz/ast",
3
- "version": "2.0.7",
3
+ "version": "3.0.0",
4
4
  "description": "Graphviz AST(Abstract Syntax Tree) Utilities",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/ts-graphviz/ts-graphviz#readme",
@@ -28,26 +28,21 @@
28
28
  "exports": {
29
29
  ".": {
30
30
  "types": "./lib/ast.d.ts",
31
- "require": "./lib/ast.cjs",
32
31
  "default": "./lib/ast.js"
33
32
  },
34
33
  "./package.json": "./package.json"
35
34
  },
36
- "main": "lib/ast.cjs",
37
- "module": "lib/ast.js",
38
- "types": "lib/ast.d.ts",
39
35
  "dependencies": {
40
- "@ts-graphviz/common": "^2.1.5"
36
+ "@ts-graphviz/common": "^3.0.0"
41
37
  },
42
38
  "devDependencies": {
43
- "peggy": "^4.0.3",
44
- "ts-pegjs": "^4.2.1",
45
- "typescript": "^5.4.5",
46
- "vite": "^5.4.8",
47
- "vite-plugin-dts": "^4.2.1"
39
+ "peggy": "^5.0.3",
40
+ "typescript": "^5.8.2",
41
+ "vite": "^7.0.2",
42
+ "vite-plugin-dts": "^4.5.3"
48
43
  },
49
44
  "engines": {
50
- "node": ">=18"
45
+ "node": ">=20"
51
46
  },
52
47
  "publishConfig": {
53
48
  "access": "public",
@@ -55,6 +50,8 @@
55
50
  },
56
51
  "scripts": {
57
52
  "build": "vite build",
58
- "codegen": "peggy --plugin ts-pegjs --extra-options-file src/dot-shim/parser/peggy.options.json -o src/dot-shim/parser/_parse.ts src/dot-shim/parser/dot.peggy"
59
- }
53
+ "codegen": "peggy --dts -d \"{ Builder }:../../builder/index.js\" --extra-options-file src/dot-shim/parser/peggy.options.json -o src/dot-shim/parser/_parse.js src/dot-shim/parser/dot.peggy"
54
+ },
55
+ "module": "lib/ast.js",
56
+ "types": "lib/ast.d.ts"
60
57
  }