@prisma/composer 0.10.0-dev.3 → 0.10.0-dev.4
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/node-control.mjs +18 -6
- package/dist/node-control.mjs.map +1 -1
- package/package.json +10 -10
package/dist/node-control.mjs
CHANGED
|
@@ -21825,19 +21825,31 @@ function stagingRootFor(moduleDir, dirPath, tracedPaths) {
|
|
|
21825
21825
|
* The trace itself runs from the filesystem root so nothing it finds is dropped
|
|
21826
21826
|
* for sitting outside a narrower base — a pnpm virtual store at the workspace
|
|
21827
21827
|
* root is outside the app directory, and dropping it would silently ship a
|
|
21828
|
-
* bundle missing its dependencies.
|
|
21828
|
+
* bundle missing its dependencies.
|
|
21829
|
+
*
|
|
21830
|
+
* The graph is traced under both the default (node) conditions and the "bun"
|
|
21831
|
+
* condition, and the union is staged: Compute boots the bundle with Bun, which
|
|
21832
|
+
* resolves a package's "bun"-conditional exports to files a node-conditions
|
|
21833
|
+
* trace never visits, while nft's `conditions` option replaces the default
|
|
21834
|
+
* set rather than extending it. */
|
|
21829
21835
|
async function stageRuntimeDependencies(options) {
|
|
21830
21836
|
const [moduleDir, entryPath, dirPath] = await Promise.all([
|
|
21831
21837
|
fs$1.promises.realpath(options.moduleDir),
|
|
21832
21838
|
fs$1.promises.realpath(options.entryPath),
|
|
21833
21839
|
fs$1.promises.realpath(options.dirPath)
|
|
21834
21840
|
]);
|
|
21835
|
-
const
|
|
21836
|
-
|
|
21841
|
+
const base = path$1.parse(moduleDir).root;
|
|
21842
|
+
const [nodeTrace, bunTrace] = await Promise.all([(0, import_out.nodeFileTrace)([entryPath], {
|
|
21843
|
+
base,
|
|
21837
21844
|
processCwd: moduleDir
|
|
21838
|
-
})
|
|
21839
|
-
|
|
21840
|
-
|
|
21845
|
+
}), (0, import_out.nodeFileTrace)([entryPath], {
|
|
21846
|
+
base,
|
|
21847
|
+
processCwd: moduleDir,
|
|
21848
|
+
conditions: ["bun"]
|
|
21849
|
+
})]);
|
|
21850
|
+
const fileList = /* @__PURE__ */ new Set([...nodeTrace.fileList, ...bunTrace.fileList]);
|
|
21851
|
+
const tracedEntries = await Promise.all([...fileList].sort().map(async (relative) => {
|
|
21852
|
+
const source = path$1.resolve(base, relative);
|
|
21841
21853
|
return {
|
|
21842
21854
|
source,
|
|
21843
21855
|
origin: await realPathOrSelf(source)
|