Skip to content

Commit 6a2ce65

Browse files
authored
chore: Remove build dependency on jq. (#877)
1 parent 3eeecf6 commit 6a2ce65

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

scripts/build-package.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ pwd
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

2828
tsc --module commonjs --outDir dist/cjs/
2929
echo "$CJS_PACKAGE_JSON" > dist/cjs/package.json

0 commit comments

Comments
 (0)