MCPcopy Create free account
hub / github.com/tensorflow/tfjs / updateAddonName

Function updateAddonName

tfjs-node/scripts/install.js:69–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69function updateAddonName() {
70 if (customAddon !== undefined) {
71 Object.assign(packageJsonFile['binary'], customAddon);
72 } else {
73 packageJsonFile['binary']['package_name'] = addonName;
74 }
75 const stringFile = JSON.stringify(packageJsonFile, null, 2);
76 fs.writeFileSync((`${__dirname}/../package.json`), stringFile);
77}
78
79function revertAddonName(orig) {
80 packageJsonFile['binary'] = orig;

Callers 1

buildFunction · 0.85

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…