drizzle-kit 0.17.1-df20589 → 0.17.1-f8bb071

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +3 -5
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type Config = {
1
+ export type CliConfig = {
2
2
  out?: string | undefined;
3
3
  breakpoints?: boolean | undefined;
4
4
  tablesFilter?: string | string[] | undefined;
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` or `host, port, etc.` params be provided in config file"
45466
+ "Either `connectionString` of `host, port, etc.` params be provided in config file"
45467
45467
  );
45468
45468
  }
45469
45469
  await client.connect();
@@ -50760,6 +50760,7 @@ var configCommonSchema = objectType({
50760
50760
  tablesFilter: unionType([stringType(), stringType().array()]).optional()
50761
50761
  });
50762
50762
  var mysqlConnectionSchema = unionType([
50763
+ objectType({}),
50763
50764
  objectType({
50764
50765
  host: stringType(),
50765
50766
  port: coerce.number().optional(),
@@ -50769,8 +50770,7 @@ var mysqlConnectionSchema = unionType([
50769
50770
  }),
50770
50771
  objectType({
50771
50772
  connectionString: stringType()
50772
- }),
50773
- objectType({})
50773
+ })
50774
50774
  ]);
50775
50775
  var mySqlCliConfigSchema = intersectionType(
50776
50776
  configCommonSchema,
@@ -50793,14 +50793,12 @@ var drizzleConfigFromFile = (configPath) => {
50793
50793
  const required = require(path3);
50794
50794
  const content = (_a = required.default) != null ? _a : required;
50795
50795
  unregister();
50796
- console.log(content);
50797
50796
  const res = mySqlCliConfigSchema.safeParse(content);
50798
50797
  if (!res.success) {
50799
50798
  console.error(res.error);
50800
50799
  console.log("Missing required params");
50801
50800
  process.exit(1);
50802
50801
  }
50803
- console.log(res);
50804
50802
  return res.data;
50805
50803
  };
50806
50804
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.17.1-df20589",
3
+ "version": "0.17.1-f8bb071",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",