Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to a hybrid (CJS + ESM) package #99

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
15 changes: 15 additions & 0 deletions fixup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

cat >dist/cjs/package.json <<!EOF
{
"type": "commonjs"
}
!EOF

cat >dist/esm/package.json <<!EOF
{
"type": "module"
}
!EOF

sed -i '' "s/import got from 'got';/import { gotSsrf as got } from 'got-ssrf';/g" dist/esm/index.js
Loading