Skip to content

Commit 3d26907

Browse files
committed
chore: remove some libraries, use local-helpers from sdk
1 parent 4617b4d commit 3d26907

File tree

27 files changed

+43
-60
lines changed

27 files changed

+43
-60
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
"license": "MIT",
1919
"devDependencies": {
2020
"@eslint/js": "^9.29.0",
21-
"@swc/core": "^1.12.5",
2221
"@types/node": "^20.17.24",
2322
"eslint": "~9.29.0",
24-
"npm-run-all": "^4.1.5",
2523
"prettier": "^3.5.3",
2624
"tsup": "^8.5.0",
2725
"tsx": "^4.20.3",

packages/cli/package.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,22 @@
2929
"dependencies": {
3030
"@zenstackhq/language": "workspace:*",
3131
"@zenstackhq/sdk": "workspace:*",
32-
"async-exit-hook": "^2.0.1",
3332
"colors": "1.4.0",
3433
"commander": "^8.3.0",
3534
"langium": "catalog:",
3635
"ora": "^5.4.1",
3736
"package-manager-detector": "^1.3.0",
38-
"tiny-invariant": "^1.3.3",
3937
"ts-pattern": "catalog:"
4038
},
4139
"peerDependencies": {
4240
"prisma": "catalog:"
4341
},
4442
"devDependencies": {
45-
"@types/async-exit-hook": "^2.0.0",
4643
"@types/better-sqlite3": "^7.6.13",
47-
"@types/semver": "^7.3.13",
48-
"@types/tmp": "^0.2.6",
44+
"@zenstackhq/eslint-config": "workspace:*",
4945
"@zenstackhq/runtime": "workspace:*",
5046
"@zenstackhq/testtools": "workspace:*",
5147
"@zenstackhq/typescript-config": "workspace:*",
52-
"@zenstackhq/eslint-config": "workspace:*",
53-
"better-sqlite3": "^11.8.1",
54-
"tmp": "^0.2.3"
48+
"better-sqlite3": "^11.8.1"
5549
}
5650
}

packages/create-zenstack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"ora": "^5.4.1"
3636
},
3737
"devDependencies": {
38-
"@zenstackhq/typescript-config": "workspace:*",
39-
"@zenstackhq/eslint-config": "workspace:*"
38+
"@zenstackhq/eslint-config": "workspace:*",
39+
"@zenstackhq/typescript-config": "workspace:*"
4040
}
4141
}

packages/ide/vscode/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
"license": "MIT",
3131
"packageManager": "[email protected]",
3232
"dependencies": {
33+
"@zenstackhq/language": "workspace:*",
3334
"langium": "catalog:",
3435
"vscode-languageclient": "^9.0.1",
35-
"vscode-languageserver": "^9.0.1",
36-
"@zenstackhq/language": "workspace:*"
36+
"vscode-languageserver": "^9.0.1"
3737
},
3838
"devDependencies": {
3939
"@types/vscode": "^1.63.0",
40-
"@zenstackhq/typescript-config": "workspace:*",
41-
"@zenstackhq/eslint-config": "workspace:*"
40+
"@zenstackhq/eslint-config": "workspace:*",
41+
"@zenstackhq/typescript-config": "workspace:*"
4242
},
4343
"files": [
4444
"dist",

packages/language/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
},
5050
"devDependencies": {
5151
"@types/pluralize": "^0.0.33",
52-
"langium-cli": "~3.3.0",
52+
"@zenstackhq/eslint-config": "workspace:*",
5353
"@zenstackhq/typescript-config": "workspace:*",
54-
"@zenstackhq/eslint-config": "workspace:*"
54+
"langium-cli": "~3.3.0"
5555
},
5656
"volta": {
5757
"node": "18.19.1",

packages/runtime/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,11 @@
6666
"dependencies": {
6767
"@paralleldrive/cuid2": "^2.2.2",
6868
"decimal.js": "^10.4.3",
69-
"is-plain-object": "^5.0.0",
7069
"json-stable-stringify": "^1.3.0",
7170
"kysely": "catalog:",
7271
"nanoid": "^5.0.9",
73-
"tiny-invariant": "^1.3.3",
7472
"ts-pattern": "catalog:",
7573
"ulid": "^3.0.0",
76-
"utility-types": "^3.11.0",
7774
"uuid": "^11.0.5"
7875
},
7976
"peerDependencies": {
@@ -92,13 +89,11 @@
9289
"devDependencies": {
9390
"@types/better-sqlite3": "^7.0.0",
9491
"@types/pg": "^8.0.0",
95-
"@types/tmp": "^0.2.6",
92+
"@zenstackhq/eslint-config": "workspace:*",
9693
"@zenstackhq/language": "workspace:*",
9794
"@zenstackhq/sdk": "workspace:*",
9895
"@zenstackhq/testtools": "workspace:*",
9996
"@zenstackhq/typescript-config": "workspace:*",
100-
"@zenstackhq/eslint-config": "workspace:*",
101-
"tmp": "^0.2.3",
10297
"tsx": "^4.19.2"
10398
}
10499
}

packages/runtime/src/client/crud-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ExpressionBuilder, OperandExpression, SqlBool } from 'kysely';
2-
import type { Optional } from 'utility-types';
32
import type {
43
BuiltinType,
54
FieldDef,
@@ -29,6 +28,7 @@ import type {
2928
MapBaseType,
3029
NonEmptyArray,
3130
NullableIf,
31+
Optional,
3232
OrArray,
3333
ValueOfPotentialTuple,
3434
WrapType,

packages/runtime/src/client/crud/dialects/base.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
import { invariant, isPlainObject } from '@zenstackhq/sdk/local-helpers';
12
import type { Expression, ExpressionBuilder, ExpressionWrapper, SqlBool, ValueNode } from 'kysely';
23
import { sql, type SelectQueryBuilder } from 'kysely';
3-
import invariant from 'tiny-invariant';
44
import { match, P } from 'ts-pattern';
55
import type { BuiltinType, DataSourceProviderType, FieldDef, GetModels, SchemaDef } from '../../../schema';
66
import { enumerate } from '../../../utils/enumerate';
7-
// @ts-expect-error
8-
import { isPlainObject } from 'is-plain-object';
97
import type { OrArray } from '../../../utils/type-utils';
108
import type {
119
BooleanFilter,

packages/runtime/src/client/crud/dialects/postgresql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { invariant } from '@zenstackhq/sdk/local-helpers';
12
import {
23
sql,
34
type Expression,
@@ -6,7 +7,6 @@ import {
67
type RawBuilder,
78
type SelectQueryBuilder,
89
} from 'kysely';
9-
import invariant from 'tiny-invariant';
1010
import { match } from 'ts-pattern';
1111
import type { BuiltinType, FieldDef, GetModels, SchemaDef } from '../../../schema';
1212
import type { FindArgs } from '../../crud-types';

packages/runtime/src/client/crud/dialects/sqlite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { invariant } from '@zenstackhq/sdk/local-helpers';
12
import type Decimal from 'decimal.js';
23
import {
34
ExpressionWrapper,
@@ -7,7 +8,6 @@ import {
78
type RawBuilder,
89
type SelectQueryBuilder,
910
} from 'kysely';
10-
import invariant from 'tiny-invariant';
1111
import { match } from 'ts-pattern';
1212
import type { BuiltinType, GetModels, SchemaDef } from '../../../schema';
1313
import type { FindArgs } from '../../crud-types';

0 commit comments

Comments
 (0)