true-pg 0.2.0 → 0.2.1

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 (2) hide show
  1. package/lib/bin.js +2 -2
  2. package/package.json +1 -1
package/lib/bin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import mri from "mri";
3
- import { existsSync } from "fs";
3
+ import { existsSync, readFileSync } from "fs";
4
4
  import { generate, adapters } from "./index.js";
5
5
  const args = process.argv.slice(2);
6
6
  const opts = mri(args, {
@@ -49,7 +49,7 @@ if (!configfile) {
49
49
  }
50
50
  }
51
51
  }
52
- const config = configfile ? await Bun.file(configfile).json() : {};
52
+ const config = configfile ? JSON.parse(readFileSync(configfile, "utf-8")) : {};
53
53
  if (opts["all-adapters"]) {
54
54
  opts.adapter = Object.keys(adapters);
55
55
  console.log("Enabling all built-in adapters:", opts.adapter);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "true-pg",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "module": "lib/index.js",
6
6
  "main": "lib/index.js",