@mothership/rebill-model-api 0.2.1

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 ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@mothership/rebill-model-api",
3
+ "version": "0.2.1",
4
+ "description": "TypeScript API for querying Rebill model predictions from Databricks",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "keywords": [
8
+ "databricks",
9
+ "rebill",
10
+ "mothership",
11
+ "ml",
12
+ "predictions"
13
+ ],
14
+ "author": "cameron@mothership.com",
15
+ "license": "UNLICENSED",
16
+ "dependencies": {
17
+ "@databricks/sql": "^1.9.1"
18
+ },
19
+ "devDependencies": {
20
+ "@biomejs/biome": "^2.3.4",
21
+ "@jsdevtools/version-bump-prompt": "^6.1.0",
22
+ "dotenv": "^16.4.5",
23
+ "@swc/core": "^1.15.1",
24
+ "@types/node": "^20.0.0",
25
+ "@vitest/coverage-v8": "^2.1.8",
26
+ "husky": "^8.0.1",
27
+ "rimraf": "^5.0.0",
28
+ "tslib": "^2.8.1",
29
+ "tsx": "^4.19.0",
30
+ "typescript": "^5.7.2",
31
+ "unplugin-swc": "^1.5.8",
32
+ "vitest": "^2.1.8"
33
+ },
34
+ "engines": {
35
+ "node": ">=18.0.0"
36
+ },
37
+ "scripts": {
38
+ "build": "rm -rf ./dist && tsc",
39
+ "watch": "tsc --watch",
40
+ "clean": "rimraf dist coverage",
41
+ "format:check": "biome format .",
42
+ "format:fix": "biome format --write .",
43
+ "lint:check": "biome lint .",
44
+ "lint:fix": "biome check --write .",
45
+ "lint": "biome check .",
46
+ "test": "vitest run",
47
+ "test:watch": "vitest watch",
48
+ "test:coverage": "vitest run --coverage",
49
+ "example": "tsx example.ts",
50
+ "add-hooks": "husky || true",
51
+ "release": "pnpm bump package.json --commit \"release @mothership/rebill-model-api v%s\" --tag \"rebill-model-api-v%s\" --push"
52
+ }
53
+ }
@@ -0,0 +1,4 @@
1
+ onlyBuiltDependencies:
2
+ - '@swc/core'
3
+ - esbuild
4
+ - lz4
@@ -0,0 +1,42 @@
1
+ import swc from 'unplugin-swc'
2
+ import { defineConfig } from 'vitest/config'
3
+
4
+ export default defineConfig({
5
+ plugins: [
6
+ swc.vite({
7
+ jsc: {
8
+ parser: {
9
+ decorators: true,
10
+ syntax: 'typescript',
11
+ },
12
+ transform: {
13
+ decoratorMetadata: true,
14
+ legacyDecorator: true,
15
+ },
16
+ },
17
+ }),
18
+ ],
19
+ test: {
20
+ coverage: {
21
+ exclude: [
22
+ '/node_modules/',
23
+ '/dist/',
24
+ '**/*.test.ts',
25
+ '**/*.unit.test.ts',
26
+ 'src/rebill-model.client.ts', // External service client (istanbul ignore file)
27
+ ],
28
+ include: ['src/**/*.ts'],
29
+ provider: 'v8',
30
+ thresholds: {
31
+ branches: 80,
32
+ functions: 80,
33
+ lines: 80,
34
+ statements: 80,
35
+ },
36
+ },
37
+ environment: 'node',
38
+ exclude: ['/node_modules/', '/dist/', '**/*.integration.test.ts', '**/*.e2e.test.ts'],
39
+ include: ['src/**/*.test.ts', 'src/**/*.unit.test.ts'],
40
+ testTimeout: 10000,
41
+ },
42
+ })