File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1414# each build output folder cjs and esm needs a package.json with
1515# at least the correct type attribute set. We additionally set
1616# name and version because the SDK logic uses those for analytics.
17- CJS_PACKAGE_JSON=$( jq -n \
18- --arg name " $NAME " \
19- --arg version " $VERSION " \
20- --arg type " commonjs" \
21- ' { name: $name, version: $version, type: $type } ' )
22- ESM_PACKAGE_JSON=$( jq -n \
23- --arg name " $NAME " \
24- --arg version " $VERSION " \
25- --arg type " module" \
26- ' { name: $name, version: $version, type: $type } ' )
17+ CJS_PACKAGE_JSON=" {
18+ \" name\" : \ "$NAME \" ,
19+ \" version\" : \ "$VERSION \" ,
20+ \" type\" : \ " commonjs\"
21+ } "
22+ ESM_PACKAGE_JSON=" {
23+ \" name\" : \ "$NAME \" ,
24+ \" version\" : \ "$VERSION \" ,
25+ \" type\" : \ " module\"
26+ } "
2727
2828tsc --module commonjs --outDir dist/cjs/
2929echo " $CJS_PACKAGE_JSON " > dist/cjs/package.json
You can’t perform that action at this time.
0 commit comments