@squadbase/vite-server 0.0.1-build-6 → 0.0.1-build-7

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/dist/cli/index.js CHANGED
@@ -186,7 +186,7 @@ function createConnectorRegistry() {
186
186
  let connectionsCache = null;
187
187
  const clientCache = /* @__PURE__ */ new Map();
188
188
  function getConnectionsFilePath() {
189
- return process.env.CONNECTIONS_PATH ?? path.join(process.cwd(), "../../.squadbase/connections.json");
189
+ return process.env.CONNECTIONS_PATH ?? path.join(process.cwd(), ".squadbase/connections.json");
190
190
  }
191
191
  function loadConnections() {
192
192
  if (connectionsCache !== null) return connectionsCache;
@@ -251,7 +251,7 @@ function createConnectorRegistry() {
251
251
  }
252
252
  function watchConnectionsFile2() {
253
253
  const filePath = getConnectionsFilePath();
254
- const envPath = path.join(process.cwd(), "..", "..", ".env");
254
+ const envPath = path.join(process.cwd(), ".env");
255
255
  try {
256
256
  fsWatch(filePath, { persistent: false }, () => {
257
257
  console.log("[connector-client] connections.json changed, clearing cache");
package/dist/index.js CHANGED
@@ -110,7 +110,7 @@ function createConnectorRegistry() {
110
110
  let connectionsCache = null;
111
111
  const clientCache = /* @__PURE__ */ new Map();
112
112
  function getConnectionsFilePath() {
113
- return process.env.CONNECTIONS_PATH ?? path.join(process.cwd(), "../../.squadbase/connections.json");
113
+ return process.env.CONNECTIONS_PATH ?? path.join(process.cwd(), ".squadbase/connections.json");
114
114
  }
115
115
  function loadConnections() {
116
116
  if (connectionsCache !== null) return connectionsCache;
@@ -175,7 +175,7 @@ function createConnectorRegistry() {
175
175
  }
176
176
  function watchConnectionsFile2() {
177
177
  const filePath = getConnectionsFilePath();
178
- const envPath = path.join(process.cwd(), "..", "..", ".env");
178
+ const envPath = path.join(process.cwd(), ".env");
179
179
  try {
180
180
  fsWatch(filePath, { persistent: false }, () => {
181
181
  console.log("[connector-client] connections.json changed, clearing cache");
@@ -726,7 +726,7 @@ apiApp.route("/data-source", data_source_default);
726
726
  apiApp.route("/data-source-meta", data_source_meta_default);
727
727
  apiApp.route("/cache", cache_default);
728
728
  apiApp.route("/", pages_default);
729
- reloadEnvFile(path4.join(process.cwd(), "..", "..", ".env"));
729
+ reloadEnvFile(path4.join(process.cwd(), ".env"));
730
730
  await initialize();
731
731
  startWatching();
732
732
  watchConnectionsFile();
package/dist/main.js CHANGED
@@ -110,7 +110,7 @@ function createConnectorRegistry() {
110
110
  let connectionsCache = null;
111
111
  const clientCache = /* @__PURE__ */ new Map();
112
112
  function getConnectionsFilePath() {
113
- return process.env.CONNECTIONS_PATH ?? path.join(process.cwd(), "../../.squadbase/connections.json");
113
+ return process.env.CONNECTIONS_PATH ?? path.join(process.cwd(), ".squadbase/connections.json");
114
114
  }
115
115
  function loadConnections() {
116
116
  if (connectionsCache !== null) return connectionsCache;
@@ -175,7 +175,7 @@ function createConnectorRegistry() {
175
175
  }
176
176
  function watchConnectionsFile2() {
177
177
  const filePath = getConnectionsFilePath();
178
- const envPath = path.join(process.cwd(), "..", "..", ".env");
178
+ const envPath = path.join(process.cwd(), ".env");
179
179
  try {
180
180
  fsWatch(filePath, { persistent: false }, () => {
181
181
  console.log("[connector-client] connections.json changed, clearing cache");
@@ -726,7 +726,7 @@ apiApp.route("/data-source", data_source_default);
726
726
  apiApp.route("/data-source-meta", data_source_meta_default);
727
727
  apiApp.route("/cache", cache_default);
728
728
  apiApp.route("/", pages_default);
729
- reloadEnvFile(path4.join(process.cwd(), "..", "..", ".env"));
729
+ reloadEnvFile(path4.join(process.cwd(), ".env"));
730
730
  await initialize();
731
731
  startWatching();
732
732
  watchConnectionsFile();
@@ -110,7 +110,7 @@ function createConnectorRegistry() {
110
110
  let connectionsCache = null;
111
111
  const clientCache = /* @__PURE__ */ new Map();
112
112
  function getConnectionsFilePath() {
113
- return process.env.CONNECTIONS_PATH ?? path.join(process.cwd(), "../../.squadbase/connections.json");
113
+ return process.env.CONNECTIONS_PATH ?? path.join(process.cwd(), ".squadbase/connections.json");
114
114
  }
115
115
  function loadConnections() {
116
116
  if (connectionsCache !== null) return connectionsCache;
@@ -175,7 +175,7 @@ function createConnectorRegistry() {
175
175
  }
176
176
  function watchConnectionsFile2() {
177
177
  const filePath = getConnectionsFilePath();
178
- const envPath = path.join(process.cwd(), "..", "..", ".env");
178
+ const envPath = path.join(process.cwd(), ".env");
179
179
  try {
180
180
  fsWatch(filePath, { persistent: false }, () => {
181
181
  console.log("[connector-client] connections.json changed, clearing cache");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squadbase/vite-server",
3
- "version": "0.0.1-build-6",
3
+ "version": "0.0.1-build-7",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {