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 3af14ce commit 46556e4Copy full SHA for 46556e4
saofile.js
@@ -53,7 +53,7 @@ module.exports = {
53
files: ["lib"],
54
publishConfig: { access: "public" },
55
keywords: [],
56
- author: "",
+ author: undefined,
57
contributors: [],
58
repository: "",
59
license: "ISC",
@@ -89,6 +89,16 @@ module.exports = {
89
peerDependencies: [{ react: "*" }, { "react-dom": "*" }]
90
};
91
92
+ const authorObject = [];
93
+ if (author) {
94
+ authorObject.push(author);
95
+ if (email) authorObject.push(`<${email}>`);
96
+ }
97
+ if (authorObject.length) {
98
+ package.author = authorObject.join(" ");
99
+ package.contributors.push(authorObject.join(" "));
100
101
+
102
const rollupConfig = {
103
input: "./src/index.tsx",
104
output: [],
0 commit comments