-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.ts
86 lines (82 loc) · 2.25 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import { path } from "./node-types";
export const KYSELY_GIT_URL = "https://github.com/kysely-org/kysely.git";
export const GIT_SEPERATOR = "!@{#";
export const DIST_DIR = "dist";
export const INFO_JSON_PATH = path.join(DIST_DIR, "info.json");
export const DEV_DEPENDENCIES = ["typescript"];
export const BRANCHES = ["master"];
export const START_COMMIT = "501ea488807b0f6a0750d61a53f9bc4c3c965cac";
export const DIALECTS: Array<DialectDef> = [
{
since: "04f9a9e2dac00c70ba959c56d980ba7b87dbadf6",
dialects: ["postgres", "mysql", "mssql", "sqlite"],
},
{
dialects: ["postgres", "mysql", "sqlite"],
},
];
export const JSON_PATCHES: Record<string, Array<JsonPatch>> = {
"package.json": [
{
description: "remove test/site-only dependencies",
patch: {
devDependencies: {
"@types/better-sqlite3": undefined,
"@types/chai": undefined,
"@types/chai-as-promised": undefined,
"@types/chai-subset": undefined,
"@types/mocha": undefined,
"@types/pg": undefined,
"@types/pg-cursor": undefined,
"@types/sinon": undefined,
"@types/tedious": undefined,
"better-sqlite3": undefined,
chai: undefined,
"chai-as-promised": undefined,
"chai-subset": undefined,
esbuild: undefined,
mocha: undefined,
mysql2: undefined,
pg: undefined,
"pg-cursor": undefined,
playwright: undefined,
prettier: undefined,
sinon: undefined,
tarn: undefined,
tedious: undefined,
tsd: undefined,
typedoc: undefined,
},
},
},
{
description: "fix implicit dependency @types/node for old kysely",
until: "b5ffb793e611343c47b1e59e546d643d86e5e7ab",
patch: {
devDependencies: {
"@types/node": "*",
},
},
},
],
"tsconfig-base.json": [
{
description: "fix node version mismach type error",
patch: {
compilerOptions: {
skipLibCheck: true,
},
},
},
],
};
type JsonPatch = {
description: string;
since?: string;
until?: string;
patch: any;
};
type DialectDef = {
since?: string;
dialects: Array<string>;
};