getTarOptions() — react Function Reference
Architecture documentation for the getTarOptions() function in packaging.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD bcf5b089_7957_6ac7_9df4_1f67f7399eae["getTarOptions()"] fef369e3_6dfd_944a_16c1_5addc35f485d["packaging.js"] bcf5b089_7957_6ac7_9df4_1f67f7399eae -->|defined in| fef369e3_6dfd_944a_16c1_5addc35f485d 7c67dee2_eb13_96b1_25ba_6fce3f0ea220["prepareNpmPackage()"] 7c67dee2_eb13_96b1_25ba_6fce3f0ea220 -->|calls| bcf5b089_7957_6ac7_9df4_1f67f7399eae style bcf5b089_7957_6ac7_9df4_1f67f7399eae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/rollup/packaging.js lines 139–156
function getTarOptions(tgzName, packageName) {
// Files inside the `npm pack`ed archive start
// with "package/" in their paths. We'll undo
// this during extraction.
const CONTENTS_FOLDER = 'package';
return {
src: tgzName,
dest: `build/node_modules/${packageName}`,
tar: {
entries: [CONTENTS_FOLDER],
map(header) {
if (header.name.indexOf(CONTENTS_FOLDER + '/') === 0) {
header.name = header.name.slice(CONTENTS_FOLDER.length + 1);
}
},
},
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getTarOptions() do?
getTarOptions() is a function in the react codebase, defined in scripts/rollup/packaging.js.
Where is getTarOptions() defined?
getTarOptions() is defined in scripts/rollup/packaging.js at line 139.
What calls getTarOptions()?
getTarOptions() is called by 1 function(s): prepareNpmPackage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free