@@ -50,7 +50,6 @@ export async function handleDependencies(options: HandleDependenciesOptions) {
50
50
tempDir,
51
51
} = options ;
52
52
53
- // COPIED FROM compileProject()
54
53
logger . debug ( "Getting the imports for the worker and entryPoint builds" , {
55
54
workerImports : metaOutput . imports ,
56
55
entryPointImports : entryPointMetaOutput . imports ,
@@ -59,7 +58,6 @@ export async function handleDependencies(options: HandleDependenciesOptions) {
59
58
// Get all the required dependencies from the metaOutputs and save them to /tmp/dir/package.json
60
59
const allImports = [ ...metaOutput . imports , ...entryPointMetaOutput . imports ] ;
61
60
62
- // const javascriptProject = new JavascriptProject(config.projectDir);
63
61
const javascriptProject = new JavascriptProjectLocal ( config . projectDir , packageManager ) ;
64
62
65
63
const dependencies = await resolveRequiredDependencies ( allImports , config , javascriptProject ) ;
@@ -75,18 +73,11 @@ export async function handleDependencies(options: HandleDependenciesOptions) {
75
73
...javascriptProject . scripts ,
76
74
} ,
77
75
} ;
78
-
79
- // span.setAttributes({
80
- // ...flattenAttributes(packageJsonContents, "packageJson.contents"),
81
- // });
82
-
83
76
await writeJSONFile ( join ( tempDir , "package.json" ) , packageJsonContents ) ;
84
77
85
78
const copyResult = await copyAdditionalFiles ( config , tempDir ) ;
86
79
87
80
if ( ! copyResult . ok ) {
88
- // compileSpinner.stop("Project built with warnings");
89
-
90
81
log . warn (
91
82
`No additionalFiles matches for:\n\n${ copyResult . noMatches
92
83
. map ( ( glob ) => `- "${ glob } "` )
@@ -96,9 +87,6 @@ export async function handleDependencies(options: HandleDependenciesOptions) {
96
87
) } are valid.`
97
88
) ;
98
89
}
99
- // } else {
100
- // compileSpinner.stop("Project built successfully");
101
- // }
102
90
103
91
const resolvingDependenciesResult = await resolveDependencies (
104
92
tempDir ,
0 commit comments