Skip to content

Commit 7eea598

Browse files
committed
fix: lint fix
1 parent 68ee9d2 commit 7eea598

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

packages/cli/src/actions/db.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import { config } from '@dotenvx/dotenvx';
22
import { ZModelCodeGenerator } from '@zenstackhq/language';
3-
import { type DataField, DataModel, Enum, type Model } from '@zenstackhq/language/ast';
3+
import { DataModel, Enum, type Model } from '@zenstackhq/language/ast';
44
import fs from 'node:fs';
55
import path from 'node:path';
66
import { execPrisma } from '../utils/exec-utils';
7-
import { generateTempPrismaSchema, getSchemaFile, handleSubProcessError, requireDataSourceUrl, loadSchemaDocumentWithServices } from './action-utils';
7+
import {
8+
generateTempPrismaSchema,
9+
getSchemaFile,
10+
handleSubProcessError,
11+
requireDataSourceUrl,
12+
loadSchemaDocument,
13+
} from './action-utils';
814
import { syncEnums, syncRelation, syncTable, type Relation } from './pull';
915
import { providers } from './pull/provider';
1016
import { getDatasource, getDbName, getRelationFkName } from './pull/utils';

packages/cli/src/actions/pull/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import type { ZModelServices } from '@zenstackhq/language';
22
import {
33
isEnum,
44
type Attribute,
5+
type BuiltinType,
56
type DataField,
67
type DataModel,
78
type Enum,
89
type Model,
9-
type BuiltinType,
1010
} from '@zenstackhq/language/ast';
1111
import {
1212
DataFieldAttributeFactory,
@@ -15,7 +15,7 @@ import {
1515
EnumFactory,
1616
} from '@zenstackhq/language/factory';
1717
import type { PullOptions } from '../db';
18-
import { type Cascade, type IntrospectedEnum, type IntrospectedTable, type IntrospectionProvider } from './provider';
18+
import type { Cascade, IntrospectedEnum, IntrospectedTable, IntrospectionProvider } from './provider';
1919
import { getAttributeRef, getDbName, getEnumRef } from './utils';
2020

2121
export function syncEnums({
@@ -156,7 +156,6 @@ export function syncTable({
156156
services,
157157
options,
158158
defaultSchema,
159-
oldModel,
160159
}: {
161160
table: IntrospectedTable;
162161
model: Model;

packages/cli/src/actions/pull/provider/sqlite.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import type { BuiltinType } from '@zenstackhq/language/ast';
2-
import type { IntrospectedEnum, IntrospectedSchema, IntrospectedTable, IntrospectionProvider } from './provider';
31
import { DataFieldAttributeFactory } from '@zenstackhq/language/factory';
42
import { getAttributeRef, getDbName, getFunctionRef } from '../utils';
3+
import type { IntrospectedEnum, IntrospectedSchema, IntrospectedTable, IntrospectionProvider } from './provider';
54

65
// Note: We dynamically import better-sqlite3 inside the async function to avoid
76
// requiring it at module load time for environments that don't use SQLite.

0 commit comments

Comments
 (0)