We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e83bdc commit e217513Copy full SHA for e217513
scripts/demos-inject-local.ts
@@ -22,12 +22,12 @@ workspacePackages.forEach((pkg) => {
22
const PNPMFILE_CJS = `const fs = require("fs");
23
const path = require("path");
24
25
+const localPaths = ${JSON.stringify(packagePaths)};
26
+const getLocalPath = (name) => localPaths[name];
27
+
28
module.exports = {
29
hooks: {
30
readPackage(pkg) {
- const localPaths = ${JSON.stringify(packagePaths)};
- const getLocalPath = (name) => localPaths[name];
-
31
const injectPeers = (manifestPath) => {
32
try {
33
const content = fs.readFileSync(manifestPath, "utf-8");
0 commit comments