@build-qube/takeoff-calculator 2.0.4 → 2.3.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.
Files changed (5) hide show
  1. package/README.md +4 -0
  2. package/browser.js +1 -1
  3. package/index.d.ts +308 -70
  4. package/index.js +204 -196
  5. package/package.json +14 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@build-qube/takeoff-calculator",
3
- "version": "2.0.4",
3
+ "version": "2.3.0",
4
4
  "description": "Template project for writing node package with napi-rs",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -60,57 +60,38 @@
60
60
  "@faker-js/faker": "^10.2.0",
61
61
  "@napi-rs/cli": "^3.5.1",
62
62
  "@napi-rs/wasm-runtime": "^1.1.0",
63
- "@oxc-node/core": "^0.0.35",
64
63
  "@taplo/cli": "^0.7.0",
65
64
  "@tybys/wasm-util": "^0.10.0",
66
- "ava": "^6.4.1",
67
65
  "chalk": "^5.6.2",
68
66
  "emnapi": "^1.5.0",
69
67
  "npm-run-all2": "^8.0.4",
70
- "oxlint": "^1.14.0",
71
68
  "prettier": "^3.6.2",
72
69
  "tinybench": "^6.0.0",
70
+ "tsx": "^4.21.0",
73
71
  "typescript": "^5.9.2",
74
72
  "vitest": "^4.0.15"
75
73
  },
76
- "ava": {
77
- "extensions": {
78
- "ts": "module"
79
- },
80
- "timeout": "2m",
81
- "workerThreads": false,
82
- "environmentVariables": {
83
- "TS_NODE_PROJECT": "./tsconfig.json"
84
- },
85
- "nodeArguments": [
86
- "--import",
87
- "@oxc-node/core/register"
88
- ]
89
- },
90
74
  "optionalDependencies": {
91
- "@build-qube/takeoff-calculator-darwin-x64": "2.0.4",
92
- "@build-qube/takeoff-calculator-darwin-arm64": "2.0.4",
93
- "@build-qube/takeoff-calculator-linux-x64-gnu": "2.0.4",
94
- "@build-qube/takeoff-calculator-win32-x64-msvc": "2.0.4",
95
- "@build-qube/takeoff-calculator-linux-x64-musl": "2.0.4",
96
- "@build-qube/takeoff-calculator-linux-arm64-gnu": "2.0.4",
97
- "@build-qube/takeoff-calculator-linux-arm-gnueabihf": "2.0.4",
98
- "@build-qube/takeoff-calculator-linux-arm64-musl": "2.0.4",
99
- "@build-qube/takeoff-calculator-win32-arm64-msvc": "2.0.4",
100
- "@build-qube/takeoff-calculator-wasm32-wasi": "2.0.4"
75
+ "@build-qube/takeoff-calculator-darwin-x64": "2.3.0",
76
+ "@build-qube/takeoff-calculator-darwin-arm64": "2.3.0",
77
+ "@build-qube/takeoff-calculator-linux-x64-gnu": "2.3.0",
78
+ "@build-qube/takeoff-calculator-win32-x64-msvc": "2.3.0",
79
+ "@build-qube/takeoff-calculator-linux-x64-musl": "2.3.0",
80
+ "@build-qube/takeoff-calculator-linux-arm64-gnu": "2.3.0",
81
+ "@build-qube/takeoff-calculator-linux-arm-gnueabihf": "2.3.0",
82
+ "@build-qube/takeoff-calculator-linux-arm64-musl": "2.3.0",
83
+ "@build-qube/takeoff-calculator-win32-arm64-msvc": "2.3.0",
84
+ "@build-qube/takeoff-calculator-wasm32-wasi": "2.3.0"
101
85
  },
102
86
  "scripts": {
103
87
  "artifacts": "napi artifacts",
88
+ "clean": "git clean -xdf node_modules .turbo .next target *.node *.wasm",
104
89
  "create-npm-dirs": "napi create-npm-dirs",
105
- "bench": "node --import @oxc-node/core/register benchmark/bench.ts",
90
+ "bench": "tsx --tsconfig tsconfig.bench.json benchmark/bench.mts",
106
91
  "build": "napi build --platform --release",
107
92
  "build:wasm": "napi build --platform --target wasm32-wasip1-threads --release",
108
93
  "build:debug": "napi build --platform",
109
- "format": "run-p format:prettier",
110
- "format:fix": "oxlint --fix",
111
- "format:prettier": "prettier . -w",
112
94
  "format:toml": "taplo format",
113
- "lint": "oxlint",
114
95
  "test": "vitest run",
115
96
  "test:local": "vitest run",
116
97
  "test:watch": "vitest watch",