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.
2 parents 391a2f9 + 0c3287e commit d7de630Copy full SHA for d7de630
packages/type-scripts/scripts/build.js
@@ -32,9 +32,17 @@ const inputOptions = {
32
],
33
}
34
35
+function snakeToCamel(s) {
36
+ s[0].toUpperCase()
37
+ return s.replace(/(\-\w)/g, function(m) {
38
+ return m[1].toUpperCase()
39
+ })
40
+}
41
+let packageNameParts = package.name.split(".")
42
const outputOptions = {
43
file: package.main,
- format: "cjs",
44
+ name: snakeToCamel(packageNameParts[packageNameParts.length - 1]),
45
+ format: "umd",
46
47
48
async function build() {
0 commit comments