Skip to content

Commit

Permalink
format and organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Feb 2, 2024
1 parent dfe6eea commit d382d3c
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "all",
"plugins": ["prettier-plugin-organize-imports"]
}
2 changes: 1 addition & 1 deletion lib/custom/custom-prisma.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DynamicModule, Module, Provider, Logger } from '@nestjs/common';
import { DynamicModule, Logger, Module, Provider } from '@nestjs/common';
import {
CustomPrismaClientFactory,
CustomPrismaModuleAsyncOptions,
Expand Down
2 changes: 1 addition & 1 deletion lib/custom/custom-prisma.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PrismaClientLike } from './custom-prisma-options';
import { Inject, Injectable } from '@nestjs/common';
import { PrismaClientLike } from './custom-prisma-options';
import { CUSTOM_PRISMA_CLIENT } from './custom-prisma.constants';

@Injectable()
Expand Down
6 changes: 3 additions & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from './custom';

export * from './prisma.module';
export * from './prisma.service';
export * from './interfaces';
export * from './logging.middleware';
export * from './prisma-client-exception.filter';
export * from './interfaces';
export * from './prisma.constants';
export * from './prisma.module';
export * from './prisma.service';
42 changes: 35 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"eslint-config-prettier": "9.0.0",
"eslint-plugin-prettier": "5.0.1",
"jasmine": "^3.6.3",
"prettier": "3.0.3",
"prettier": "3.2.3",
"prettier-plugin-organize-imports": "^3.2.4",
"prisma": "^5.5.2",
"reflect-metadata": "0.1.13",
"rxjs": "^7.8.1",
Expand Down
18 changes: 9 additions & 9 deletions schematics/nestjs-prisma/index.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import { npmScripts } from './npm-scripts';
import { Schema } from './schema';
import { strings } from '@angular-devkit/core';
import {
Rule,
SchematicContext,
Tree,
chain,
SchematicsException,
url,
Tree,
apply,
template,
chain,
mergeWith,
template,
url,
} from '@angular-devkit/schematics';
import {
NodePackageInstallTask,
RunSchematicTask,
} from '@angular-devkit/schematics/tasks';
import {
addPackageJsonDependency,
NodeDependency,
addPackageJsonDependency,
} from '@schematics/angular/utility/dependencies';
import { strings } from '@angular-devkit/core';
import { Dependency, dependencies } from './dependencies';
import { npmScripts } from './npm-scripts';
import { Schema } from './schema';
import { getLatestDependencyVersion } from './utils/get-latest-dependency-version';
import { dependencies, Dependency } from './dependencies';

// You don't have to export the function as default. You can also have more than one rule factory
// per file.
Expand Down
2 changes: 1 addition & 1 deletion schematics/prisma-init/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DatasourceProvider } from './../nestjs-prisma/schema';
import { SchematicContext, Tree } from '@angular-devkit/schematics';
import { exec } from 'child_process';
import { Observable } from 'rxjs';
import { DatasourceProvider } from './../nestjs-prisma/schema';

interface InitOptions {
datasource: DatasourceProvider;
Expand Down

0 comments on commit d382d3c

Please sign in to comment.