Japan was practically given a lot of American Technology right after WWII under Robert Demings. In fact, Toyota is partially the way it is today, thanks to the Ford Assembly Line, but they still paved there own means of success.
Germany arguably the same as well, around the same time frame. Can't recall the exact history of what US gave to Germany though, but it was most likely part of the Marshall Plan.
US is copying a lot of methodologies and philosophies from Japan. Any deriative of the Toyota way is in many management philosophies, from scrum, agile development, etc. Germany, much technology is still being shared between both our countries today. Japan is copying a lot of software innovations from America, and vice versa.
Textile mills at the time were the modern day equivalent of semiconductor foundries. I dare you to try something like that today and see what happens to you.
And semiconductor technology is generally considered a national secret.
Of course, once you become a manufacturing leader, you want to pull the ladder up from under you, in the form of strong IP laws.