Skip to content

Commit 07f7114

Browse files
committed
fix: TLS & add publishConfig to libraries only
1 parent 4279805 commit 07f7114

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.suite-cli/cli/scripts/assets/genericPackageJsonContent.asset.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ module.exports = ({ answers, suffix, isMicroservice, description, os, addDeps })
3434
]
3535
},
3636
}),
37-
publishConfig: {
38-
access: "public",
39-
registry: "http://registry.npmjs.org"
40-
},
37+
// add publishConfig if is library
38+
...(!(isMicroservice || addDeps) ? {
39+
publishConfig: {
40+
access: "public",
41+
registry: "https://registry.npmjs.org"
42+
},
43+
} : {}),
4144
scripts: {
4245
release: "npx bumpp-version@latest && npm publish",
4346
...(isMicroservice && {

0 commit comments

Comments
 (0)