@se-studio/project-build 1.1.16 → 1.1.18

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @se-studio/project-build
2
2
 
3
+ ## 1.1.18
4
+
5
+ ### Patch Changes
6
+
7
+ - next dev drops the React debug channel that crashes Chrome on large directories.
8
+
9
+ ## 1.1.17
10
+
11
+ ### Patch Changes
12
+
13
+ - 74d5ee7: Dest dev runtimes copy each unnamed Flight debug entry once, and installs that already had the no-op are upgraded.
14
+
3
15
  ## 1.1.16
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -51,7 +51,7 @@ pnpm setailwind
51
51
 
52
52
  ### Dest Flight debug-info patch
53
53
 
54
- React dest Flight copies unnamed `_debugInfo` without dedup, which can OOM `next dest` on large CMS pages. Call this at the top of the app `next.config.ts`. Next loads that file for `pnpm dev`, `pnpm dev:dev`, and a raw `next dev` (local smoke and cloud agents) before dest starts. `predev` does not run for `dev:dev`.
54
+ React dest Flight copies unnamed `_debugInfo` without dedup, which can OOM `next dest` on large CMS pages. The rewrite dedupes the copy so each receiving chunk keeps each unnamed entry once. Call this at the top of the app `next.config.ts`. Next loads that file for `pnpm dev`, `pnpm dev:dev`, and a raw `next dev` (local smoke and cloud agents) before dest starts. `predev` does not run for `dev:dev`.
55
55
 
56
56
  ```ts
57
57
  import { ensureNextDevFlightPatch } from '@se-studio/project-build/patch-next-dev';
@@ -0,0 +1,160 @@
1
+ /**
2
+ * Dev-only drop of Next's React debug channel.
3
+ *
4
+ * Next 16.3.8 has no config switch for that channel. It replays the Flight
5
+ * debug graph into the browser over the HMR socket. A large page (a directory
6
+ * of cards) crashes the Chrome renderer. Production builds never open it.
7
+ *
8
+ * The client gets an empty stream that stays open. Closing it makes Flight
9
+ * throw "Connection closed" and the page fails to hydrate. The server drains
10
+ * the readable and does not send chunks to the tab. Turbopack HMR is separate.
11
+ *
12
+ * `pnpm install` restores Next. The next `next dev` start applies this again.
13
+ * Called from ensureNextDevFlightPatch so existing next.config.ts files pick
14
+ * it up. Idempotent.
15
+ */
16
+ const fs = require('node:fs');
17
+ const path = require('node:path');
18
+
19
+ const MARKER = 'se-lab-drop-browser-debug-channel';
20
+
21
+ const PRODUCTION_PHASES = new Set([
22
+ 'phase-production-build',
23
+ 'phase-production-server',
24
+ 'phase-export',
25
+ ]);
26
+
27
+ const CLIENT_FILES = ['dist/client/dev/debug-channel.js', 'dist/esm/client/dev/debug-channel.js'];
28
+
29
+ const SERVER_FILES = ['dist/server/dev/debug-channel.js', 'dist/esm/server/dev/debug-channel.js'];
30
+
31
+ function shouldPatch(env = process.env) {
32
+ if (env.NODE_ENV === 'production') {
33
+ return false;
34
+ }
35
+ const phase = env.NEXT_PHASE;
36
+ return !(phase && PRODUCTION_PHASES.has(phase));
37
+ }
38
+
39
+ function nextRoot(cwd) {
40
+ return path.join(cwd, 'node_modules', 'next');
41
+ }
42
+
43
+ function omittedChannelReturn() {
44
+ return ` // ${MARKER}\n return { readable: new ReadableStream() };\n`;
45
+ }
46
+
47
+ function droppingPairReturn() {
48
+ return ` // ${MARKER}\n return { readable: new ReadableStream({ start(controller) { controller.close(); } }), writer: { ready: Promise.resolve(), write() { return Promise.resolve(); }, close() { return Promise.resolve(); }, closed: Promise.resolve() } };\n`;
49
+ }
50
+
51
+ function patchClient(source) {
52
+ const closedReturn =
53
+ ' return { readable: new ReadableStream({ start(controller) { controller.close(); } }) };\n';
54
+ if (source.includes(MARKER)) {
55
+ const next = source
56
+ .replace(
57
+ `function createDebugChannel(requestHeaders) {\n // ${MARKER}\n${closedReturn}`,
58
+ `function createDebugChannel(requestHeaders) {\n${omittedChannelReturn()}`,
59
+ )
60
+ .replace(
61
+ `function createDebugChannel(requestHeaders) {\n // ${MARKER}\n return {};\n`,
62
+ `function createDebugChannel(requestHeaders) {\n${omittedChannelReturn()}`,
63
+ );
64
+ return { source: next, changed: next !== source };
65
+ }
66
+ let next = source.replace(
67
+ 'function createDebugChannel(requestHeaders) {\n',
68
+ `function createDebugChannel(requestHeaders) {\n${omittedChannelReturn()}`,
69
+ );
70
+ next = next.replace(
71
+ 'function getOrCreateDebugChannelReadableWriterPair(requestId) {\n',
72
+ `function getOrCreateDebugChannelReadableWriterPair(requestId) {\n${droppingPairReturn()}`,
73
+ );
74
+ if (next === source) {
75
+ return { source, changed: false, missing: true };
76
+ }
77
+ return { source: next, changed: true };
78
+ }
79
+
80
+ function drainFunction(exportKeyword) {
81
+ const prefix = exportKeyword ? 'export function' : 'function';
82
+ return `${prefix} connectReactDebugChannel(requestId, debugChannel, sendToClient) {
83
+ // ${MARKER}
84
+ const readable = debugChannel && debugChannel.readable;
85
+ if (readable instanceof ReadableStream) {
86
+ readable.pipeTo(new WritableStream()).catch(() => {});
87
+ } else if (readable && typeof readable.resume === 'function') {
88
+ readable.resume();
89
+ if (typeof readable.on === 'function') {
90
+ readable.on('error', () => {});
91
+ }
92
+ }
93
+ }
94
+ `;
95
+ }
96
+
97
+ function patchServer(source) {
98
+ if (source.includes(MARKER)) {
99
+ return { source, changed: false };
100
+ }
101
+ const exported = source.includes('export function connectReactDebugChannel');
102
+ const start = source.indexOf(
103
+ exported ? 'export function connectReactDebugChannel(' : 'function connectReactDebugChannel(',
104
+ );
105
+ const endToken = exported
106
+ ? '\nexport function connectReactDebugChannelForHtmlRequest'
107
+ : '\nfunction connectReactDebugChannelForHtmlRequest';
108
+ const end = source.indexOf(endToken);
109
+ if (start === -1 || end === -1 || end <= start) {
110
+ return { source, changed: false, missing: true };
111
+ }
112
+ const next = source.slice(0, start) + drainFunction(exported) + source.slice(end + 1);
113
+ return { source: next, changed: true };
114
+ }
115
+
116
+ function writeIfChanged(filePath, patch) {
117
+ if (!fs.existsSync(filePath)) {
118
+ console.warn(`[patch-next-dev-browser-debug] missing ${filePath}`);
119
+ return 'missing';
120
+ }
121
+ const source = fs.readFileSync(filePath, 'utf8');
122
+ const result = patch(source);
123
+ if (result.missing) {
124
+ console.warn(`[patch-next-dev-browser-debug] pattern missing in ${filePath}`);
125
+ return 'missing';
126
+ }
127
+ if (!result.changed) {
128
+ return 'already';
129
+ }
130
+ fs.writeFileSync(filePath, result.source);
131
+ return 'patched';
132
+ }
133
+
134
+ function ensureNextDevBrowserDebugPatch(cwd = process.cwd(), env = process.env) {
135
+ if (!shouldPatch(env)) {
136
+ return null;
137
+ }
138
+ const root = nextRoot(cwd);
139
+ const counts = { patched: 0, already: 0, missing: 0 };
140
+ for (const relativePath of CLIENT_FILES) {
141
+ const status = writeIfChanged(path.join(root, relativePath), patchClient);
142
+ counts[status] += 1;
143
+ }
144
+ for (const relativePath of SERVER_FILES) {
145
+ const status = writeIfChanged(path.join(root, relativePath), patchServer);
146
+ counts[status] += 1;
147
+ }
148
+ console.log(
149
+ `[patch-next-dev-browser-debug] done: ${counts.patched} patched, ${counts.already} already patched, ${counts.missing} pattern-missing`,
150
+ );
151
+ return counts;
152
+ }
153
+
154
+ module.exports = {
155
+ ensureNextDevBrowserDebugPatch,
156
+ };
157
+
158
+ if (require.main === module) {
159
+ ensureNextDevBrowserDebugPatch();
160
+ }
@@ -8,6 +8,7 @@
8
8
  */
9
9
  const { spawnSync } = require('node:child_process');
10
10
  const path = require('node:path');
11
+ const { ensureNextDevBrowserDebugPatch } = require('./patch-next-browser-debug.cjs');
11
12
 
12
13
  const PRODUCTION_PHASES = new Set([
13
14
  'phase-production-build',
@@ -40,10 +41,12 @@ function ensureNextDevFlightPatch(cwd = process.cwd(), env = process.env) {
40
41
  `patch-next-flight-debuginfo exited ${result.status ?? 'null'} (signal ${result.signal ?? 'none'})`,
41
42
  );
42
43
  }
44
+ ensureNextDevBrowserDebugPatch(cwd, env);
43
45
  return 0;
44
46
  }
45
47
 
46
48
  module.exports = {
47
49
  ensureNextDevFlightPatch,
50
+ ensureNextDevBrowserDebugPatch,
48
51
  shouldPatchNextDevFlight,
49
52
  };
@@ -2,3 +2,9 @@ export function shouldPatchNextDevFlight(env?: NodeJS.ProcessEnv): boolean;
2
2
 
3
3
  /** Returns null when skipped (production). Returns 0 after a successful patch. */
4
4
  export function ensureNextDevFlightPatch(cwd?: string, env?: NodeJS.ProcessEnv): number | null;
5
+
6
+ /** Drops the Next dev React debug channel. Returns null in production. */
7
+ export function ensureNextDevBrowserDebugPatch(
8
+ cwd?: string,
9
+ env?: NodeJS.ProcessEnv,
10
+ ): { patched: number; already: number; missing: number } | null;
@@ -5,23 +5,30 @@
5
5
  * In `next dest`, the SSR pass consumes the RSC payload with React's
6
6
  * development flight client. Its `transferReferencedDebugInfo` copies every
7
7
  * unnamed `_debugInfo` entry from a referenced (outlined) chunk into the
8
- * referencing chunk's array, with no deduplication. On pages with a large,
9
- * heavily cross-referenced RSC payload those arrays grow combinatorially and
10
- * the dest server dies at the V8 heap limit (~16GB). Both webpack and
11
- * Turbopack dest are affected. Production builds are unaffected.
8
+ * referencing chunk's array. Next 16.3.8 does that with no deduplication, so
9
+ * large cross-referenced pages grow those arrays until the dest server dies
10
+ * at the V8 heap limit (~16GB). React #37481 copies each entry once per
11
+ * receiving chunk; this rewrites the whole function to that rule, including
12
+ * runtimes previously no-op'd with `if (false)`. Both webpack and Turbopack
13
+ * dest are affected. Production builds are unaffected.
12
14
  *
13
15
  * Walk from cwd up looking for node_modules/next (app or monorepo root).
14
16
  * Write + rename, never in place: pnpm may hardlink files into its store.
15
17
  *
16
18
  * Idempotent. If a future Next version no longer contains the pattern, prints
17
- * a notice and exits 0 — then remove `ensureNextDevFlightPatch()` from next.config.
19
+ * a notice and exits 0 — then remove `ensureNextDevFlightPatch()` from next.config.ts
20
+ * after checking upstream.
18
21
  *
19
22
  * Usage (from an app with `next` installed):
20
23
  * patch-next-flight-debuginfo
21
24
  */
22
25
  /** biome-ignore-all lint/suspicious/noConsole: CLI status */
23
- export declare const NEEDLE = "function transferReferencedDebugInfo(parentChunk,referencedChunk){if(null!==parentChunk){";
24
- export declare const REPLACEMENT = "function transferReferencedDebugInfo(parentChunk,referencedChunk){if(false){";
26
+ /** Next 16.3.8 `transferReferencedDebugInfo`, matched in full. */
27
+ export declare const ORIGINAL_FUNCTION = "function transferReferencedDebugInfo(parentChunk,referencedChunk){if(null!==parentChunk){referencedChunk=referencedChunk._debugInfo,parentChunk=parentChunk._debugInfo;for(var i=0;i<referencedChunk.length;++i){var debugInfoEntry=referencedChunk[i];null==debugInfoEntry.name&&parentChunk.push(debugInfoEntry)}}}";
28
+ /** Same function after the previous `if(false)` no-op rewrite. */
29
+ export declare const NOOP_FUNCTION = "function transferReferencedDebugInfo(parentChunk,referencedChunk){if(false){referencedChunk=referencedChunk._debugInfo,parentChunk=parentChunk._debugInfo;for(var i=0;i<referencedChunk.length;++i){var debugInfoEntry=referencedChunk[i];null==debugInfoEntry.name&&parentChunk.push(debugInfoEntry)}}}";
30
+ /** Once-per-entry copy from React #37481, without constructor or fulfillReference edits. */
31
+ export declare const DEDUP_FUNCTION = "function transferReferencedDebugInfo(parentChunk,referencedChunk){if(null!==parentChunk){var referencedDebugInfo=referencedChunk._debugInfo,receivingDebugInfo=parentChunk._debugInfo,received=parentChunk._receivedDebugInfo;null==received&&(received=parentChunk._receivedDebugInfo=new Set);for(var i=0;i<referencedDebugInfo.length;++i){var debugInfoEntry=referencedDebugInfo[i];null==debugInfoEntry.name&&!received.has(debugInfoEntry)&&(received.add(debugInfoEntry),receivingDebugInfo.push(debugInfoEntry))}}}";
25
32
  export declare const RUNTIME_FILES: readonly ['app-page.runtime.dev.js', 'app-page-turbo.runtime.dev.js', 'app-page-experimental.runtime.dev.js', 'app-page-turbo-experimental.runtime.dev.js'];
26
33
  export interface PatchNextFlightDebugInfoResult {
27
34
  patched: number;
@@ -1 +1 @@
1
- {"version":3,"file":"patch-next-flight-debuginfo.d.ts","sourceRoot":"","sources":["../src/patch-next-flight-debuginfo.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,6DAA6D;AAM7D,eAAO,MAAM,MAAM,8FAC0E,CAAC;AAC9F,eAAO,MAAM,WAAW,iFACwD,CAAC;AAEjF,eAAO,MAAM,aAAa,YACxB,yBAAyB,EACzB,+BAA+B,EAC/B,sCAAsC,EACtC,4CAA4C,CACpC,CAAC;AAEX,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAazD;AAED,wBAAgB,wBAAwB,CACtC,GAAG,GAAE,MAAsB,GAC1B,8BAA8B,CAgChC;AAED,wBAAgB,IAAI,CAAC,GAAG,GAAE,MAAsB,GAAG,MAAM,CAYxD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAerF"}
1
+ {"version":3,"file":"patch-next-flight-debuginfo.d.ts","sourceRoot":"","sources":["../src/patch-next-flight-debuginfo.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,6DAA6D;AAM7D,kEAAkE;AAClE,eAAO,MAAM,iBAAiB,0TAC2R,CAAC;AAE1T,kEAAkE;AAClE,eAAO,MAAM,aAAa,6SACkR,CAAC;AAE7S,4FAA4F;AAC5F,eAAO,MAAM,cAAc,ggBACoe,CAAC;AAEhgB,eAAO,MAAM,aAAa,YACxB,yBAAyB,EACzB,+BAA+B,EAC/B,sCAAsC,EACtC,4CAA4C,CACpC,CAAC;AAEX,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAazD;AAED,wBAAgB,wBAAwB,CACtC,GAAG,GAAE,MAAsB,GAC1B,8BAA8B,CAqChC;AAED,wBAAgB,IAAI,CAAC,GAAG,GAAE,MAAsB,GAAG,MAAM,CAYxD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAerF"}
@@ -5,16 +5,19 @@
5
5
  * In `next dest`, the SSR pass consumes the RSC payload with React's
6
6
  * development flight client. Its `transferReferencedDebugInfo` copies every
7
7
  * unnamed `_debugInfo` entry from a referenced (outlined) chunk into the
8
- * referencing chunk's array, with no deduplication. On pages with a large,
9
- * heavily cross-referenced RSC payload those arrays grow combinatorially and
10
- * the dest server dies at the V8 heap limit (~16GB). Both webpack and
11
- * Turbopack dest are affected. Production builds are unaffected.
8
+ * referencing chunk's array. Next 16.3.8 does that with no deduplication, so
9
+ * large cross-referenced pages grow those arrays until the dest server dies
10
+ * at the V8 heap limit (~16GB). React #37481 copies each entry once per
11
+ * receiving chunk; this rewrites the whole function to that rule, including
12
+ * runtimes previously no-op'd with `if (false)`. Both webpack and Turbopack
13
+ * dest are affected. Production builds are unaffected.
12
14
  *
13
15
  * Walk from cwd up looking for node_modules/next (app or monorepo root).
14
16
  * Write + rename, never in place: pnpm may hardlink files into its store.
15
17
  *
16
18
  * Idempotent. If a future Next version no longer contains the pattern, prints
17
- * a notice and exits 0 — then remove `ensureNextDevFlightPatch()` from next.config.
19
+ * a notice and exits 0 — then remove `ensureNextDevFlightPatch()` from next.config.ts
20
+ * after checking upstream.
18
21
  *
19
22
  * Usage (from an app with `next` installed):
20
23
  * patch-next-flight-debuginfo
@@ -23,8 +26,12 @@
23
26
  import fs from 'node:fs';
24
27
  import path from 'node:path';
25
28
  import { fileURLToPath } from 'node:url';
26
- export const NEEDLE = 'function transferReferencedDebugInfo(parentChunk,referencedChunk){if(null!==parentChunk){';
27
- export const REPLACEMENT = 'function transferReferencedDebugInfo(parentChunk,referencedChunk){if(false){';
29
+ /** Next 16.3.8 `transferReferencedDebugInfo`, matched in full. */
30
+ export const ORIGINAL_FUNCTION = 'function transferReferencedDebugInfo(parentChunk,referencedChunk){if(null!==parentChunk){referencedChunk=referencedChunk._debugInfo,parentChunk=parentChunk._debugInfo;for(var i=0;i<referencedChunk.length;++i){var debugInfoEntry=referencedChunk[i];null==debugInfoEntry.name&&parentChunk.push(debugInfoEntry)}}}';
31
+ /** Same function after the previous `if(false)` no-op rewrite. */
32
+ export const NOOP_FUNCTION = 'function transferReferencedDebugInfo(parentChunk,referencedChunk){if(false){referencedChunk=referencedChunk._debugInfo,parentChunk=parentChunk._debugInfo;for(var i=0;i<referencedChunk.length;++i){var debugInfoEntry=referencedChunk[i];null==debugInfoEntry.name&&parentChunk.push(debugInfoEntry)}}}';
33
+ /** Once-per-entry copy from React #37481, without constructor or fulfillReference edits. */
34
+ export const DEDUP_FUNCTION = 'function transferReferencedDebugInfo(parentChunk,referencedChunk){if(null!==parentChunk){var referencedDebugInfo=referencedChunk._debugInfo,receivingDebugInfo=parentChunk._debugInfo,received=parentChunk._receivedDebugInfo;null==received&&(received=parentChunk._receivedDebugInfo=new Set);for(var i=0;i<referencedDebugInfo.length;++i){var debugInfoEntry=referencedDebugInfo[i];null==debugInfoEntry.name&&!received.has(debugInfoEntry)&&(received.add(debugInfoEntry),receivingDebugInfo.push(debugInfoEntry))}}}';
28
35
  export const RUNTIME_FILES = [
29
36
  'app-page.runtime.dev.js',
30
37
  'app-page-turbo.runtime.dev.js',
@@ -58,18 +65,23 @@ export function patchNextFlightDebugInfo(cwd = process.cwd()) {
58
65
  if (!fs.existsSync(file))
59
66
  continue;
60
67
  const src = fs.readFileSync(file, 'utf8');
61
- if (src.includes(REPLACEMENT)) {
68
+ if (src.includes(DEDUP_FUNCTION)) {
62
69
  already += 1;
63
70
  continue;
64
71
  }
65
- if (!src.includes(NEEDLE)) {
72
+ const from = src.includes(ORIGINAL_FUNCTION)
73
+ ? ORIGINAL_FUNCTION
74
+ : src.includes(NOOP_FUNCTION)
75
+ ? NOOP_FUNCTION
76
+ : null;
77
+ if (!from) {
66
78
  missing += 1;
67
79
  console.warn(`[patch-next-flight-debuginfo] pattern not found in ${file} — Next may have changed; check if the upstream React fix landed`);
68
80
  continue;
69
81
  }
70
82
  fs.writeFileSync(`${file}.orig`, src);
71
83
  const tmp = `${file}.patch-tmp`;
72
- fs.writeFileSync(tmp, src.replace(NEEDLE, REPLACEMENT));
84
+ fs.writeFileSync(tmp, src.replace(from, DEDUP_FUNCTION));
73
85
  fs.renameSync(tmp, file);
74
86
  patched += 1;
75
87
  console.log(`[patch-next-flight-debuginfo] patched ${file}`);
@@ -1 +1 @@
1
- {"version":3,"file":"patch-next-flight-debuginfo.js","sourceRoot":"","sources":["../src/patch-next-flight-debuginfo.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,6DAA6D;AAE7D,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GACjB,2FAA2F,CAAC;AAC9F,MAAM,CAAC,MAAM,WAAW,GACtB,8EAA8E,CAAC;AAEjF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,yBAAyB;IACzB,+BAA+B;IAC/B,sCAAsC;IACtC,4CAA4C;CACpC,CAAC;AASX,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,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,OAAO,kBAAkB,CACtI,CAAC;IACF,OAAO,CAAC,CAAC;AACX,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,KAAyB,EAAE,UAAkB;IAC1E,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,UAAkB,CAAC;IACvB,IAAI,CAAC;QACH,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IAC9E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC;AAED,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACrD,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;AACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/project-build",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "Build tools and management scripts for SE Studio projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -66,22 +66,22 @@
66
66
  "url": "https://github.com/Something-Else-Studio/se-core-product/issues"
67
67
  },
68
68
  "dependencies": {
69
- "@biomejs/biome": "^2.5.12",
69
+ "@biomejs/biome": "^2.5.15",
70
70
  "@biomejs/js-api": "^6.0.0",
71
- "@biomejs/wasm-nodejs": "^2.5.12",
71
+ "@biomejs/wasm-nodejs": "^2.5.15",
72
72
  "change-case": "^5.4.4",
73
73
  "chroma-js": "^3.2.0",
74
- "contentful-management": "^12.15.0",
75
- "dotenv": "^17.4.2"
74
+ "contentful-management": "^12.19.0",
75
+ "dotenv": "^18.0.5"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/chroma-js": "^3.1.2",
79
79
  "@types/node": "^24.13.3",
80
80
  "typescript": "^7.0.2",
81
- "vitest": "^4.1.11"
81
+ "vitest": "^5.0.3"
82
82
  },
83
83
  "scripts": {
84
- "build": "tsc --project tsconfig.build.json && cp src/patch-next-dev.cjs src/patch-next-dev.d.ts dist/",
84
+ "build": "tsc --project tsconfig.build.json && cp src/patch-next-dev.cjs src/patch-next-dev.d.ts src/patch-next-browser-debug.cjs dist/",
85
85
  "dev": "tsc --project tsconfig.build.json --watch",
86
86
  "type-check": "tsc --noEmit",
87
87
  "lint": "biome lint .",