Skip to content

Commit

Permalink
Merge pull request #2 from inaiat/feat/hybrid_package
Browse files Browse the repository at this point in the history
Feat/hybrid package
  • Loading branch information
inaiat authored May 12, 2023
2 parents a8400af + b149f38 commit d45fa80
Show file tree
Hide file tree
Showing 13 changed files with 10,344 additions and 6,134 deletions.
2 changes: 1 addition & 1 deletion BUILD_SHA
Original file line number Diff line number Diff line change
@@ -1 +1 @@
HEAD
a8400af6e8d516b45b67c8a1ff344a119154fa6a
19 changes: 19 additions & 0 deletions fixup
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
#
# Add package.json files to cjs/mjs subtrees
#

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

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

find src -name '*.d.ts' -exec cp {} dist/mjs \;
find src -name '*.d.ts' -exec cp {} dist/cjs \;
Loading

0 comments on commit d45fa80

Please sign in to comment.