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 14
14
# each build output folder cjs and esm needs a package.json with
15
15
# at least the correct type attribute set. We additionally set
16
16
# 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
+ } "
27
27
28
28
tsc --module commonjs --outDir dist/cjs/
29
29
echo " $CJS_PACKAGE_JSON " > dist/cjs/package.json
You can’t perform that action at this time.
0 commit comments