drizzle-kit 0.17.1-d0991a3 → 0.17.1-df20589
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/index.d.ts +14 -0
- package/index.js +5 -2
- package/package.json +3 -2
package/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Config = {
|
|
2
|
+
out?: string | undefined;
|
|
3
|
+
breakpoints?: boolean | undefined;
|
|
4
|
+
tablesFilter?: string | string[] | undefined;
|
|
5
|
+
schema: string | string[];
|
|
6
|
+
} & ({
|
|
7
|
+
port?: number | undefined;
|
|
8
|
+
password?: string | undefined;
|
|
9
|
+
host: string;
|
|
10
|
+
user: string;
|
|
11
|
+
database: string;
|
|
12
|
+
} | {
|
|
13
|
+
connectionString: string;
|
|
14
|
+
} | {});
|
package/index.js
CHANGED
|
@@ -45463,7 +45463,7 @@ var init_mysqlIntrospect = __esm({
|
|
|
45463
45463
|
databaseName = config.database;
|
|
45464
45464
|
} else {
|
|
45465
45465
|
throw Error(
|
|
45466
|
-
"Either `connectionString`
|
|
45466
|
+
"Either `connectionString` or `host, port, etc.` params be provided in config file"
|
|
45467
45467
|
);
|
|
45468
45468
|
}
|
|
45469
45469
|
await client.connect();
|
|
@@ -50564,9 +50564,10 @@ var package_default = {
|
|
|
50564
50564
|
sim: "node -r esbuild-register ./dev/simulate.ts",
|
|
50565
50565
|
"sim:sqlite": "node -r esbuild-register ./dev/sqlite/index.ts",
|
|
50566
50566
|
test: "ava test --timeout=60s",
|
|
50567
|
-
build: "pnpm build:cli && pnpm build:utils",
|
|
50567
|
+
build: "pnpm build:cli && pnpm build:utils && pnpm build:cli-types",
|
|
50568
50568
|
"build:cli": "esbuild ./src/cli/index.ts --bundle --platform=node --target=node10.4 --outfile=./dist/index.js --external:esbuild --external:drizzle-orm-pg --external:drizzle-orm-sqlite --external:drizzle-orm-mysql --external:drizzle-orm --external:pg-native",
|
|
50569
50569
|
"build:utils": "esbuild ./src/utils.ts --bundle --platform=node --target=node10.4 --outfile=./dist/utils.js",
|
|
50570
|
+
"build:cli-types": "tsc -p tsconfig.cli-types.json",
|
|
50570
50571
|
pack: "build && package",
|
|
50571
50572
|
tsc: "tsc -p tsconfig.build.json",
|
|
50572
50573
|
pub: "cp package.json readme.md dist/ && cd dist && npm publish"
|
|
@@ -50792,12 +50793,14 @@ var drizzleConfigFromFile = (configPath) => {
|
|
|
50792
50793
|
const required = require(path3);
|
|
50793
50794
|
const content = (_a = required.default) != null ? _a : required;
|
|
50794
50795
|
unregister();
|
|
50796
|
+
console.log(content);
|
|
50795
50797
|
const res = mySqlCliConfigSchema.safeParse(content);
|
|
50796
50798
|
if (!res.success) {
|
|
50797
50799
|
console.error(res.error);
|
|
50798
50800
|
console.log("Missing required params");
|
|
50799
50801
|
process.exit(1);
|
|
50800
50802
|
}
|
|
50803
|
+
console.log(res);
|
|
50801
50804
|
return res.data;
|
|
50802
50805
|
};
|
|
50803
50806
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drizzle-kit",
|
|
3
|
-
"version": "0.17.1-
|
|
3
|
+
"version": "0.17.1-df20589",
|
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
|
5
5
|
"author": "Drizzle Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,9 +29,10 @@
|
|
|
29
29
|
"sim": "node -r esbuild-register ./dev/simulate.ts",
|
|
30
30
|
"sim:sqlite": "node -r esbuild-register ./dev/sqlite/index.ts",
|
|
31
31
|
"test": "ava test --timeout=60s",
|
|
32
|
-
"build": "pnpm build:cli && pnpm build:utils",
|
|
32
|
+
"build": "pnpm build:cli && pnpm build:utils && pnpm build:cli-types",
|
|
33
33
|
"build:cli": "esbuild ./src/cli/index.ts --bundle --platform=node --target=node10.4 --outfile=./dist/index.js --external:esbuild --external:drizzle-orm-pg --external:drizzle-orm-sqlite --external:drizzle-orm-mysql --external:drizzle-orm --external:pg-native",
|
|
34
34
|
"build:utils": "esbuild ./src/utils.ts --bundle --platform=node --target=node10.4 --outfile=./dist/utils.js",
|
|
35
|
+
"build:cli-types": "tsc -p tsconfig.cli-types.json",
|
|
35
36
|
"pack": "build && package",
|
|
36
37
|
"tsc": "tsc -p tsconfig.build.json",
|
|
37
38
|
"pub": "cp package.json readme.md dist/ && cd dist && npm publish"
|