11import assert from "node:assert/strict" ;
22import path from "node:path" ;
33import { EventEmitter } from "node:stream" ;
4- import fs from "node:fs" ;
54
65import {
76 Command ,
@@ -27,9 +26,8 @@ import {
2726import { command as vendorHermes } from "./hermes" ;
2827import { packageNameOption , pathSuffixOption } from "./options" ;
2928import { linkModules , pruneLinkedModules , ModuleLinker } from "./link-modules" ;
30- import { linkXcframework , restoreFrameworkLinks } from "./apple" ;
29+ import { linkXcframework } from "./apple" ;
3130import { linkAndroidDir } from "./android" ;
32- import { applePrebuildPath } from "weak-node-api" ;
3331
3432// We're attaching a lot of listeners when spawning in parallel
3533EventEmitter . defaultMaxListeners = 100 ;
@@ -171,34 +169,6 @@ program
171169 await pruneLinkedModules ( platform , modules ) ;
172170 }
173171 }
174-
175- if ( apple ) {
176- await oraPromise (
177- async ( ) => {
178- await Promise . all (
179- [
180- path . join ( applePrebuildPath , "macos-x86_64" ) ,
181- path . join ( applePrebuildPath , "macos-arm64" ) ,
182- path . join ( applePrebuildPath , "macos-arm64_x86_64" ) ,
183- ] . map ( async ( slicePath ) => {
184- const frameworkPath = path . join (
185- slicePath ,
186- "weak-node-api.framework" ,
187- ) ;
188- if ( fs . existsSync ( frameworkPath ) ) {
189- await restoreFrameworkLinks ( frameworkPath ) ;
190- }
191- } ) ,
192- ) ;
193- } ,
194- {
195- text : "Restoring weak-node-api symlinks" ,
196- successText : "Restored weak-node-api symlinks" ,
197- failText : ( error ) =>
198- `Failed to restore weak-node-api symlinks: ${ error . message } ` ,
199- } ,
200- ) ;
201- }
202172 } ,
203173 ) ,
204174 ) ;
0 commit comments