av6-core 1.8.2 → 1.8.3

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/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference path="./prisma-client.d.ts" />
2
1
  import { JsonValue, Decimal, DecimalJsLike, InputJsonValue } from '@prisma/client/runtime/library';
3
2
  import { AsyncLocalStorage } from 'async_hooks';
4
3
  import { AxiosResponse } from 'axios';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference path="./prisma-client.d.ts" />
2
1
  import { JsonValue, Decimal, DecimalJsLike, InputJsonValue } from '@prisma/client/runtime/library';
3
2
  import { AsyncLocalStorage } from 'async_hooks';
4
3
  import { AxiosResponse } from 'axios';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "av6-core",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "author": "Aniket Sarkar",
9
9
  "license": "ISC",
10
10
  "scripts": {
11
- "build": "npm run format && tsup && node scripts/prepare-prisma-types.mjs",
11
+ "build": "npm run format && tsup",
12
12
  "p:gen": "prisma generate",
13
13
  "format": "prettier --write **/*.ts"
14
14
  },
@@ -1,28 +0,0 @@
1
- declare module "@prisma/client" {
2
- export class PrismaClient {
3
- [key: string]: any;
4
- }
5
-
6
- export namespace Prisma {
7
- export type TransactionClient = any;
8
- export type JsonValue = any;
9
- export type JsonObject = any;
10
- export type JsonArray = any;
11
-
12
- export interface Sql {
13
- readonly values: unknown[];
14
- readonly strings: string[];
15
- readonly sql: string;
16
- }
17
-
18
- export const empty: Sql;
19
- export function sql(strings: readonly string[], ...values: unknown[]): Sql;
20
- export function join(
21
- values: readonly unknown[],
22
- separator?: string,
23
- prefix?: string,
24
- suffix?: string
25
- ): Sql;
26
- export function raw(value: string): Sql;
27
- }
28
- }
@@ -1,28 +0,0 @@
1
- declare module "@prisma/client" {
2
- export class PrismaClient {
3
- [key: string]: any;
4
- }
5
-
6
- export namespace Prisma {
7
- export type TransactionClient = any;
8
- export type JsonValue = any;
9
- export type JsonObject = any;
10
- export type JsonArray = any;
11
-
12
- export interface Sql {
13
- readonly values: unknown[];
14
- readonly strings: string[];
15
- readonly sql: string;
16
- }
17
-
18
- export const empty: Sql;
19
- export function sql(strings: readonly string[], ...values: unknown[]): Sql;
20
- export function join(
21
- values: readonly unknown[],
22
- separator?: string,
23
- prefix?: string,
24
- suffix?: string
25
- ): Sql;
26
- export function raw(value: string): Sql;
27
- }
28
- }
@@ -1,26 +0,0 @@
1
- import { copyFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
2
- import { dirname, join } from "node:path";
3
- import { fileURLToPath } from "node:url";
4
-
5
- const rootDir = dirname(fileURLToPath(new URL("../package.json", import.meta.url)));
6
- const distDir = join(rootDir, "dist");
7
- const sourceShim = join(rootDir, "prisma-client.d.ts");
8
- const distShim = join(distDir, "prisma-client.d.ts");
9
- const reference = '/// <reference path="./prisma-client.d.ts" />\n';
10
-
11
- mkdirSync(distDir, { recursive: true });
12
- copyFileSync(sourceShim, distShim);
13
-
14
- for (const fileName of ["index.d.ts", "index.d.mts"]) {
15
- const declarationPath = join(distDir, fileName);
16
-
17
- if (!existsSync(declarationPath)) {
18
- continue;
19
- }
20
-
21
- const declaration = readFileSync(declarationPath, "utf8");
22
-
23
- if (!declaration.startsWith(reference)) {
24
- writeFileSync(declarationPath, `${reference}${declaration}`);
25
- }
26
- }