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 372aed8 commit 1674debCopy full SHA for 1674deb
scripts/gpr-post-publish.js
@@ -1,8 +1,15 @@
1
+/**
2
+ * Since this package has been published already on NPM before the GPR was
3
+ * available, the package's json file will be altered before publishing to it.
4
+ */
5
const fileSystem = require("fs");
6
const pathUtility = require("path");
7
const packageFilePath = pathUtility.join(__dirname, "../package.json");
8
let packageJson = String(fileSystem.readFileSync(packageFilePath));
9
const package = JSON.parse(packageJson);
10
package.name = "@jeffreylanters/" + package.name;
11
+package.publishConfig = {
12
+ registry: "https://npm.pkg.github.com/jeffreylanters",
13
+};
14
packageJson = JSON.stringify(package);
15
fileSystem.writeFileSync(packageFilePath, packageJson);
0 commit comments