Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions etc/prepare-npm-package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,18 @@ function readPackageJson(packagePath) {
}

function collectAllInRepoDeps(packageName, workspaceIndex, visited = new Set()) {
const { workspacesInfo } = workspaceIndex
const info = workspacesInfo[packageName]
const { packageNames, nameToLocation } = workspaceIndex

if (!info) {
const packagePath = nameToLocation.get(packageName)
if (!packagePath) {
return visited
}

for (const depName of info.workspaceDependencies) {
if (!visited.has(depName)) {
const pkg = readPackageJson(packagePath)
const deps = Object.keys(pkg.dependencies || {})

for (const depName of deps) {
if (packageNames.has(depName) && !visited.has(depName)) {
visited.add(depName)
collectAllInRepoDeps(depName, workspaceIndex, visited)
}
Expand Down Expand Up @@ -165,7 +168,7 @@ async function bundleWithEsbuild(entryPoint, outputPath, externalDeps, options =
target: 'node20',
outfile: outputPath,
external: externalDeps,
sourcemap: false,
sourcemap: 'inline',
minify: false,
keepNames: true,
...(banner && { banner: { js: banner } }),
Expand Down
2 changes: 1 addition & 1 deletion modules/build-raptor-core/src/step-by-step-transmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class StepByStepTransmitter {
for (const p of this.stepByStepProcessors) {
this.promises.push(Promise.resolve(p(parsed)))
}
this.logger.print('transmitted')
this.logger.info('transmitted')
}

async close() {
Expand Down
Loading