@deessejs/collections 0.0.31 → 0.0.33

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/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- export * from "./config";
2
1
  export * from "./collections";
2
+ export * from "./config";
3
+ export * from "./drizzle";
4
+ export * from "./dsl";
3
5
  export * from "./fields";
4
- export * from "./providers";
6
+ export * from "./next";
5
7
  export * from "./plugins";
6
- export * from "./dsl";
7
- export * from "./drizzle";
8
+ export * from "./providers";
package/dist/index.js CHANGED
@@ -14,10 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./config"), exports);
18
17
  __exportStar(require("./collections"), exports);
18
+ __exportStar(require("./config"), exports);
19
+ __exportStar(require("./drizzle"), exports);
20
+ __exportStar(require("./dsl"), exports);
19
21
  __exportStar(require("./fields"), exports);
20
- __exportStar(require("./providers"), exports);
22
+ __exportStar(require("./next"), exports);
21
23
  __exportStar(require("./plugins"), exports);
22
- __exportStar(require("./dsl"), exports);
23
- __exportStar(require("./drizzle"), exports);
24
+ __exportStar(require("./providers"), exports);
@@ -2,4 +2,4 @@ import type { NextConfig } from "next";
2
2
  declare global {
3
3
  var __collections_worker_started: boolean | undefined;
4
4
  }
5
- export declare function withCollections(phase: string, config: NextConfig): NextConfig;
5
+ export declare const withCollections: (phase: string, config: NextConfig) => NextConfig;
@@ -3,15 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.withCollections = withCollections;
6
+ exports.withCollections = void 0;
7
7
  const child_process_1 = require("child_process");
8
8
  const constants_1 = require("next/constants");
9
9
  const path_1 = __importDefault(require("path"));
10
- function withCollections(phase, config) {
10
+ const withCollections = (phase, config) => {
11
11
  const isDev = phase === constants_1.PHASE_DEVELOPMENT_SERVER;
12
12
  if (isDev && !global.__collections_worker_started) {
13
13
  global.__collections_worker_started = true;
14
- const workerPath = path_1.default.join(__dirname, "/worker/index.js");
14
+ const workerPath = path_1.default.join(__dirname, "../worker/index.js");
15
15
  console.log("[withCollections] Spawning background worker:", workerPath);
16
16
  (0, child_process_1.spawn)("node", [workerPath], {
17
17
  stdio: "inherit",
@@ -20,4 +20,5 @@ function withCollections(phase, config) {
20
20
  return {
21
21
  ...config,
22
22
  };
23
- }
23
+ };
24
+ exports.withCollections = withCollections;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deessejs/collections",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",