@flomsstaar/expression-tree 0.1.1 → 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.
Files changed (2) hide show
  1. package/README.md +5 -7
  2. package/package.json +14 -11
package/README.md CHANGED
@@ -29,10 +29,14 @@ This is a simple expression tree implementation in TypeScript. It allows you to
29
29
  - [ ] trigonometric functions (sin, cos, tan)
30
30
  - [ ] logarithm
31
31
 
32
+ ## Prerequisites
33
+
34
+ - [Bun](https://bun.sh/) (version 1.0.0 or higher)
35
+
32
36
  ## Example
33
37
 
34
38
  ```shell
35
- $ bun run index.ts
39
+ $ bun run examples/example.ts
36
40
  ```
37
41
 
38
42
  Output:
@@ -75,9 +79,3 @@ To install dependencies:
75
79
  ```bash
76
80
  bun install
77
81
  ```
78
-
79
- To run:
80
-
81
- ```bash
82
- bun run index.ts
83
- ```
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "@flomsstaar/expression-tree",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "build/index.js",
5
+ "types": "build/index.d.ts",
5
6
  "type": "module",
6
7
  "files": [
7
8
  "build"
8
9
  ],
9
10
  "exports": {
10
- ".": "./build/index.js"
11
+ ".": {
12
+ "default": "./build/index.js",
13
+ "types": "./build/index.d.ts"
14
+ }
11
15
  },
12
16
  "scripts": {
13
17
  "dev": "bun index.ts",
@@ -16,21 +20,20 @@
16
20
  "format": "prettier --check src index.ts",
17
21
  "format:fix": "prettier --write src index.ts",
18
22
  "test": "vitest",
19
- "coverage": "vitest run --coverage",
20
- "typecheck": "bun run tsc --noEmit",
23
+ "coverage": "rm -rf coverage && vitest run --coverage",
24
+ "typecheck": "tsc --noEmit",
21
25
  "build": "rm -rf build && tsc"
22
26
  },
23
27
  "devDependencies": {
24
- "@adonisjs/eslint-config": "^2.1.0",
28
+ "@adonisjs/eslint-config": "^2.1.2",
25
29
  "@adonisjs/prettier-config": "^1.4.5",
26
- "@adonisjs/tsconfig": "^1.4.1",
27
- "@vitest/coverage-v8": "3.2.4",
28
- "eslint": "^9.29.0",
29
- "prettier": "^3.6.0",
30
- "vitest": "^3.2.4"
30
+ "@vitest/coverage-v8": "4.0.16",
31
+ "eslint": "^9.39.2",
32
+ "prettier": "^3.7.4",
33
+ "vitest": "^4.0.16"
31
34
  },
32
35
  "peerDependencies": {
33
- "typescript": "^5.8.3"
36
+ "typescript": "^5.9.3"
34
37
  },
35
38
  "author": "Florent Marques <florent.marques19@gmail.com>",
36
39
  "license": "MIT",