drizzle-kit 0.20.18 → 0.21.0-178d0dc
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +104692 -56730
- package/index.d.mts +232 -68
- package/index.d.ts +232 -68
- package/index.js +1 -0
- package/package.json +44 -72
- package/payload.d.mts +1052 -18
- package/payload.d.ts +1052 -18
- package/payload.js +22129 -34534
- package/payload.mjs +22174 -34562
- package/utils-studio.js +4580 -805
- package/utils-studio.mjs +4556 -784
- package/utils.js +4410 -6940
- package/utils.mjs +4852 -7382
- package/@types/utils.d.ts +0 -12
- package/cli/commands/migrate.d.ts +0 -270
- package/cli/commands/mysqlIntrospect.d.ts +0 -119
- package/cli/commands/mysqlPushUtils.d.ts +0 -18
- package/cli/commands/mysqlUp.d.ts +0 -4
- package/cli/commands/pgConnect.d.ts +0 -5
- package/cli/commands/pgIntrospect.d.ts +0 -123
- package/cli/commands/pgPushUtils.d.ts +0 -14
- package/cli/commands/pgUp.d.ts +0 -4
- package/cli/commands/sqliteIntrospect.d.ts +0 -107
- package/cli/commands/sqlitePushUtils.d.ts +0 -21
- package/cli/commands/sqliteUtils.d.ts +0 -162
- package/cli/commands/upFolders.d.ts +0 -27
- package/cli/commands/utils.d.ts +0 -274
- package/cli/selector-ui.d.ts +0 -13
- package/cli/validations/common.d.ts +0 -13
- package/cli/validations/mysql.d.ts +0 -365
- package/cli/validations/outputs.d.ts +0 -40
- package/cli/validations/pg.d.ts +0 -438
- package/cli/views.d.ts +0 -61
- package/drivers/index.d.ts +0 -39
- package/global.d.ts +0 -4
- package/introspect-mysql.d.ts +0 -9
- package/introspect-pg.d.ts +0 -12
- package/introspect-sqlite.d.ts +0 -10
- package/jsonDiffer.d.ts +0 -76
- package/jsonStatements.d.ts +0 -349
- package/migrationPreparator.d.ts +0 -35
- package/schemaValidator.d.ts +0 -1313
- package/serializer/index.d.ts +0 -9
- package/serializer/mysqlImports.d.ts +0 -11
- package/serializer/mysqlSchema.d.ts +0 -3833
- package/serializer/mysqlSerializer.d.ts +0 -7
- package/serializer/pgImports.d.ts +0 -11
- package/serializer/pgSchema.d.ts +0 -4333
- package/serializer/pgSerializer.d.ts +0 -7
- package/serializer/schemaToDrizzle.d.ts +0 -7
- package/serializer/sqliteImports.d.ts +0 -9
- package/serializer/sqliteSchema.d.ts +0 -3227
- package/serializer/sqliteSerializer.d.ts +0 -6
- package/snapshotsDiffer.d.ts +0 -2660
- package/sqlgenerator.d.ts +0 -33
- package/utils/words.d.ts +0 -7
- package/utils-studio.d.mts +0 -5
- package/utils-studio.d.ts +0 -5
- package/utils.d.ts +0 -199
package/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.21.0-178d0dc",
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
5
5
|
"author": "Drizzle Team",
|
6
6
|
"license": "MIT",
|
@@ -8,103 +8,82 @@
|
|
8
8
|
"drizzle-kit": "./bin.cjs"
|
9
9
|
},
|
10
10
|
"scripts": {
|
11
|
-
"test:pg:push": "drizzle-kit push:pg",
|
12
11
|
"payload": "tsx ./dev/payload.ts",
|
13
12
|
"migrate:old": "drizzle-kit generate:mysql",
|
14
|
-
"
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"migrate:old:mysql": "drizzle-kit generate:mysql --out ./dev/migrations-mysql --schema ./dev/migrations-mysql/schema.ts",
|
18
|
-
"start:pg": "node -r esbuild-register ./src/cli/index.ts generate:pg",
|
19
|
-
"start:sqlite": "node -r esbuild-register ./src/cli/index.ts generate:sqlite",
|
20
|
-
"start:mysql": "node -r esbuild-register ./src/cli/index.ts generate:mysql",
|
21
|
-
"check:pg": "node -r esbuild-register ./src/cli/index.ts check --out ./dev/migrations --dialect pg",
|
22
|
-
"introspect:mysql": "node -r esbuild-register ./src/cli/index.ts introspect:mysql --config drizzle.config2.ts",
|
23
|
-
"introspect:sqlite": "node -r esbuild-register ./src/cli/index.ts introspect:sqlite --driver=sqlite",
|
24
|
-
"introspect:pg": "node -r esbuild-register ./src/cli/index.ts introspect:pg --out ./dev/introspect-pg --connectionString=postgresql://postgres@localhost:5432/introspect",
|
25
|
-
"drop": "node -r esbuild-register ./src/cli/index.ts drop",
|
26
|
-
"up:pg": "node -r esbuild-register ./src/cli/index.ts up:pg --out ./dev/migrations-pg",
|
27
|
-
"up:mysql": "node -r esbuild-register ./src/cli/index.ts up:mysql --out ./dev/migrations-mysql",
|
28
|
-
"check:equedi": "node -r esbuild-register ./src/cli/index.ts check --out ./dev/equedi --dialect pg",
|
29
|
-
"run": "node -r esbuild-register index.ts",
|
30
|
-
"watch": "esbuild ./src/clie/index.ts --bundle --platform=node --target=node10.4 --outfile=./dist/index.js --external:esbuild --external:pg-native --sourcemap --watch",
|
31
|
-
"diff": "esbuild ./src/clie/index.ts ./dev/diff.ts",
|
32
|
-
"prepare:mysql": "node -r esbuild-register dev/mysql/index.ts",
|
33
|
-
"prepare:pg": "node -r esbuild-register dev/index.ts",
|
34
|
-
"prepare-snapshot": "node -r esbuild-register ./dev/prepare-snapshot prepare ./dev/data",
|
35
|
-
"sim": "node -r esbuild-register ./dev/simulate.ts",
|
36
|
-
"sim:sqlite": "node -r esbuild-register ./dev/sqlite/index.ts",
|
37
|
-
"test": "ava test --timeout=60s",
|
38
|
-
"build": "rm -rf ./dist && tsc -p tsconfig.cli-types.json && pnpm mts && tsx build.ts",
|
39
|
-
"mts": "cp dist/index.d.ts dist/index.d.mts && cp dist/utils-studio.d.ts dist/utils-studio.d.mts && cp dist/payload.d.ts dist/payload.d.mts",
|
13
|
+
"cli": "tsx ./src/cli/index.ts",
|
14
|
+
"test": "vitest",
|
15
|
+
"build": "rm -rf ./dist && tsx build.ts && cp package.json dist/ && attw --pack dist",
|
40
16
|
"build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
|
41
17
|
"packit": "pnpm build && cp package.json dist/ && cd dist && pnpm pack",
|
42
18
|
"tsc": "tsc -p tsconfig.build.json",
|
43
|
-
"pub": "cp package.json readme.md dist/ && cd dist && npm publish"
|
44
|
-
"studio": "tsx ./src/cli/index.ts studio --verbose --port=3000",
|
45
|
-
"studio:dev": "tsx ./src/cli/index.ts studio --verbose"
|
46
|
-
},
|
47
|
-
"ava": {
|
48
|
-
"files": [
|
49
|
-
"test/**/*.ts"
|
50
|
-
],
|
51
|
-
"extensions": {
|
52
|
-
"ts": "module"
|
53
|
-
},
|
54
|
-
"nodeArguments": [
|
55
|
-
"--loader=tsx"
|
56
|
-
]
|
19
|
+
"pub": "cp package.json readme.md dist/ && cd dist && npm publish"
|
57
20
|
},
|
58
21
|
"dependencies": {
|
59
22
|
"@esbuild-kit/esm-loader": "^2.5.5",
|
60
|
-
"@hono/node-server": "^1.9.0",
|
61
|
-
"@hono/zod-validator": "^0.2.0",
|
62
|
-
"camelcase": "^7.0.1",
|
63
|
-
"chalk": "^5.2.0",
|
64
23
|
"commander": "^9.4.1",
|
65
24
|
"env-paths": "^3.0.0",
|
66
25
|
"esbuild": "^0.19.7",
|
67
26
|
"esbuild-register": "^3.5.0",
|
68
27
|
"glob": "^8.1.0",
|
69
28
|
"hanji": "^0.0.5",
|
70
|
-
"hono": "^4.1.4",
|
71
29
|
"json-diff": "0.9.0",
|
72
|
-
"minimatch": "^7.4.3",
|
73
|
-
"semver": "^7.5.4",
|
74
|
-
"superjson": "^2.2.1",
|
75
30
|
"zod": "^3.20.2"
|
76
31
|
},
|
77
32
|
"devDependencies": {
|
33
|
+
"@arethetypeswrong/cli": "^0.15.3",
|
34
|
+
"@aws-sdk/client-rds-data": "^3.556.0",
|
78
35
|
"@cloudflare/workers-types": "^4.20230518.0",
|
36
|
+
"@electric-sql/pglite": "^0.1.3",
|
37
|
+
"@hono/node-server": "^1.9.0",
|
38
|
+
"@hono/zod-validator": "^0.2.1",
|
79
39
|
"@libsql/client": "^0.4.2",
|
40
|
+
"@neondatabase/serverless": "^0.9.1",
|
41
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
42
|
+
"@planetscale/database": "^1.16.0",
|
80
43
|
"@types/better-sqlite3": "^7.6.4",
|
81
|
-
"@types/dockerode": "^3.3.
|
44
|
+
"@types/dockerode": "^3.3.28",
|
82
45
|
"@types/glob": "^8.1.0",
|
46
|
+
"@types/json-diff": "^1.0.3",
|
83
47
|
"@types/minimatch": "^5.1.2",
|
84
48
|
"@types/node": "^18.11.15",
|
85
49
|
"@types/pg": "^8.10.7",
|
50
|
+
"@types/pluralize": "^0.0.33",
|
86
51
|
"@types/semver": "^7.5.5",
|
87
|
-
"@
|
88
|
-
"@
|
52
|
+
"@types/uuid": "^9.0.8",
|
53
|
+
"@types/ws": "^8.5.10",
|
54
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
55
|
+
"@typescript-eslint/parser": "^7.2.0",
|
56
|
+
"@vercel/postgres": "^0.8.0",
|
89
57
|
"ava": "^5.1.0",
|
90
58
|
"better-sqlite3": "^9.4.3",
|
59
|
+
"camelcase": "^7.0.1",
|
60
|
+
"chalk": "^5.2.0",
|
91
61
|
"dockerode": "^3.3.4",
|
92
62
|
"dotenv": "^16.0.3",
|
93
63
|
"drizzle-kit": "0.20.14",
|
94
|
-
"drizzle-orm": "0.30.
|
64
|
+
"drizzle-orm": "0.30.9-f9be0ab",
|
95
65
|
"esbuild-node-externals": "^1.9.0",
|
96
|
-
"eslint": "^8.
|
97
|
-
"eslint-config-prettier": "^
|
98
|
-
"eslint-plugin-prettier": "^
|
66
|
+
"eslint": "^8.57.0",
|
67
|
+
"eslint-config-prettier": "^9.1.0",
|
68
|
+
"eslint-plugin-prettier": "^5.1.3",
|
99
69
|
"get-port": "^6.1.2",
|
70
|
+
"hono": "^4.1.5",
|
71
|
+
"minimatch": "^7.4.3",
|
100
72
|
"mysql2": "2.3.3",
|
101
73
|
"pg": "^8.11.3",
|
102
|
-
"
|
74
|
+
"pluralize": "^8.0.0",
|
75
|
+
"postgres": "^3.4.4",
|
103
76
|
"prettier": "^2.8.1",
|
77
|
+
"semver": "^7.5.4",
|
78
|
+
"superjson": "^2.2.1",
|
79
|
+
"tsup": "^8.0.2",
|
104
80
|
"tsx": "^3.12.1",
|
105
|
-
"typescript": "^4.
|
106
|
-
"
|
81
|
+
"typescript": "^5.4.3",
|
82
|
+
"uuid": "^9.0.1",
|
83
|
+
"vite-tsconfig-paths": "^4.3.2",
|
84
|
+
"vitest": "^1.4.0",
|
107
85
|
"wrangler": "^3.22.1",
|
86
|
+
"ws": "^8.16.0",
|
108
87
|
"zx": "^7.2.2"
|
109
88
|
},
|
110
89
|
"exports": {
|
@@ -120,18 +99,6 @@
|
|
120
99
|
"types": "./index.d.mts",
|
121
100
|
"default": "./index.mjs"
|
122
101
|
},
|
123
|
-
"./utils-studio": {
|
124
|
-
"import": {
|
125
|
-
"types": "./utils-studio.d.mts",
|
126
|
-
"default": "./utils-studio.mjs"
|
127
|
-
},
|
128
|
-
"require": {
|
129
|
-
"types": "./utils-studio.d.ts",
|
130
|
-
"default": "./utils-studio.js"
|
131
|
-
},
|
132
|
-
"types": "./utils-studio.d.mts",
|
133
|
-
"default": "./utils-studio.mjs"
|
134
|
-
},
|
135
102
|
"./payload": {
|
136
103
|
"import": {
|
137
104
|
"types": "./payload.d.mts",
|
@@ -144,5 +111,10 @@
|
|
144
111
|
"types": "./payload.d.mts",
|
145
112
|
"default": "./payload.mjs"
|
146
113
|
}
|
114
|
+
},
|
115
|
+
"pnpm": {
|
116
|
+
"patchedDependencies": {
|
117
|
+
"difflib@0.2.4": "patches/difflib@0.2.4.patch"
|
118
|
+
}
|
147
119
|
}
|
148
120
|
}
|