drizzle-kit 0.20.14-5df59eb → 0.20.14-730d763
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +20588 -20023
- package/cli/commands/migrate.d.ts +114 -90
- package/cli/commands/mysqlIntrospect.d.ts +8 -14
- package/cli/commands/pgIntrospect.d.ts +17 -10
- package/cli/commands/sqliteIntrospect.d.ts +9 -9
- package/cli/commands/utils.d.ts +8 -261
- package/cli/validations/cli.d.ts +107 -0
- package/cli/validations/common.d.ts +205 -7
- package/cli/validations/mysql.d.ts +6 -1
- package/cli/validations/pg.d.ts +6 -1
- package/cli/validations/sqlite.d.ts +165 -3
- package/cli/views.d.ts +6 -4
- package/global.d.ts +3 -1
- package/index.d.mts +8 -6
- package/index.d.ts +8 -6
- package/index.js +1 -0
- package/introspect-mysql.d.ts +1 -1
- package/introspect-pg.d.ts +5 -2
- package/introspect-sqlite.d.ts +1 -1
- package/jsonDiffer.d.ts +14 -29
- package/jsonStatements.d.ts +38 -11
- package/package.json +18 -50
- package/payload.js +8130 -8617
- package/payload.mjs +8252 -8745
- package/schemaValidator.d.ts +72 -69
- package/serializer/mysqlImports.d.ts +3 -7
- package/serializer/mysqlSchema.d.ts +1624 -493
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/pgImports.d.ts +2 -2
- package/serializer/pgSchema.d.ts +1260 -801
- package/serializer/sqliteImports.d.ts +2 -4
- package/serializer/sqliteSchema.d.ts +144 -570
- package/serializer/sqliteSerializer.d.ts +1 -1
- package/snapshotsDiffer.d.ts +1908 -1050
- package/utils/words.d.ts +1 -1
- package/utils-studio.js +4144 -85
- package/utils-studio.mjs +4144 -85
- package/utils.d.ts +6 -140
- package/utils.js +3906 -7081
- package/utils.mjs +3983 -7158
- package/cli/commands/check.d.ts +0 -2
- package/cli/commands/drop.d.ts +0 -4
- package/cli/commands/mysqlUp.d.ts +0 -4
- package/cli/commands/pgUp.d.ts +0 -4
- package/cli/commands/push.d.ts +0 -6
- package/cli/commands/sqliteUp.d.ts +0 -2
- package/cli/commands/sqliteUtils.d.ts +0 -162
- package/cli/commands/upFolders.d.ts +0 -27
- package/cli/index.d.ts +0 -71
- package/cli/utils.d.ts +0 -12
- package/cli/validations/studio.d.ts +0 -593
- package/orm-extenstions/d1-driver/driver.d.ts +0 -8
- package/orm-extenstions/d1-driver/session.d.ts +0 -51
- package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
- package/serializer/studioUtils.d.ts +0 -65
- package/utils/certs.d.ts +0 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.20.14-
|
3
|
+
"version": "0.20.14-730d763",
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
5
5
|
"author": "Drizzle Team",
|
6
6
|
"license": "MIT",
|
@@ -8,56 +8,21 @@
|
|
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
|
-
"try1": "tsx ./src/t.ts",
|
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",
|
13
|
+
"cli": "tsx ./src/cli/index.ts",
|
14
|
+
"test": "vitest",
|
39
15
|
"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",
|
16
|
+
"build": "rm -rf ./dist && tsc -p tsconfig.cli-types.json && pnpm mts && tsx build.ts",
|
40
17
|
"build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
|
41
18
|
"packit": "pnpm build && cp package.json dist/ && cd dist && pnpm pack",
|
42
19
|
"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
|
-
]
|
20
|
+
"pub": "cp package.json readme.md dist/ && cd dist && npm publish"
|
57
21
|
},
|
58
22
|
"dependencies": {
|
59
23
|
"@drizzle-team/studio": "^0.0.39",
|
60
24
|
"@esbuild-kit/esm-loader": "^2.5.5",
|
25
|
+
"@types/json-diff": "^1.0.3",
|
61
26
|
"camelcase": "^7.0.1",
|
62
27
|
"chalk": "^5.2.0",
|
63
28
|
"commander": "^9.4.1",
|
@@ -68,39 +33,42 @@
|
|
68
33
|
"hanji": "^0.0.5",
|
69
34
|
"json-diff": "0.9.0",
|
70
35
|
"minimatch": "^7.4.3",
|
36
|
+
"pluralize": "^8.0.0",
|
71
37
|
"semver": "^7.5.4",
|
72
38
|
"zod": "^3.20.2"
|
73
39
|
},
|
74
40
|
"devDependencies": {
|
75
41
|
"@cloudflare/workers-types": "^4.20230518.0",
|
76
42
|
"@libsql/client": "^0.4.2",
|
43
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
77
44
|
"@types/better-sqlite3": "^7.6.4",
|
78
45
|
"@types/dockerode": "^3.3.14",
|
79
46
|
"@types/glob": "^8.1.0",
|
80
47
|
"@types/minimatch": "^5.1.2",
|
81
48
|
"@types/node": "^18.11.15",
|
82
49
|
"@types/pg": "^8.10.7",
|
50
|
+
"@types/pluralize": "^0.0.33",
|
83
51
|
"@types/semver": "^7.5.5",
|
84
|
-
"@typescript-eslint/eslint-plugin": "^
|
85
|
-
"@typescript-eslint/parser": "^
|
86
|
-
"ava": "^5.1.0",
|
52
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
53
|
+
"@typescript-eslint/parser": "^7.2.0",
|
87
54
|
"better-sqlite3": "^8.4.0",
|
88
55
|
"dockerode": "^3.3.4",
|
89
56
|
"dotenv": "^16.0.3",
|
90
57
|
"drizzle-kit": "0.19.13",
|
91
|
-
"drizzle-orm": "0.
|
58
|
+
"drizzle-orm": "0.30.5-ab9feb7",
|
92
59
|
"esbuild-node-externals": "^1.9.0",
|
93
|
-
"eslint": "^8.
|
94
|
-
"eslint-config-prettier": "^
|
95
|
-
"eslint-plugin-prettier": "^
|
60
|
+
"eslint": "^8.57.0",
|
61
|
+
"eslint-config-prettier": "^9.1.0",
|
62
|
+
"eslint-plugin-prettier": "^5.1.3",
|
96
63
|
"get-port": "^6.1.2",
|
97
64
|
"mysql2": "2.3.3",
|
98
65
|
"pg": "^8.11.3",
|
99
66
|
"postgres": "^3.3.5",
|
100
67
|
"prettier": "^2.8.1",
|
101
68
|
"tsx": "^3.12.1",
|
102
|
-
"typescript": "^4.
|
103
|
-
"
|
69
|
+
"typescript": "^5.4.3",
|
70
|
+
"vite-tsconfig-paths": "^4.3.2",
|
71
|
+
"vitest": "^1.4.0",
|
104
72
|
"wrangler": "^3.22.1",
|
105
73
|
"zx": "^7.2.2"
|
106
74
|
},
|