MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / processPackageJsonFile

Function processPackageJsonFile

tools/scripts/generate-tns-compat.ts:35–51  ·  view source on GitHub ↗
(entry: EntryInfo)

Source from the content-addressed store, hash-verified

33}
34
35function processPackageJsonFile(entry: EntryInfo) {
36 const dirPath = path.dirname(entry.path);
37 const outputFilePath = path.join(outputFolder, entry.path);
38
39 ensureDirectoryExistence(outputFilePath);
40
41 const json = require(entry.fullPath);
42 if (json.main) {
43 (<any>fs).copyFileSync(entry.fullPath, outputFilePath);
44 logFileCreated(outputFilePath);
45 addTestImport(dirPath);
46
47 const mainFile = path.join(dirPath, json.main);
48 createReExportFile(mainFile, '.ts');
49 addTestImport(mainFile);
50 }
51}
52
53function processDefinitionFile(entry: EntryInfo) {
54 if (dtsBlacklist.includes(entry.path)) {

Callers

nothing calls this directly

Calls 5

ensureDirectoryExistenceFunction · 0.85
logFileCreatedFunction · 0.85
addTestImportFunction · 0.85
createReExportFileFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected