-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from inaiat/feat/hybrid_package
Feat/hybrid package
- Loading branch information
Showing
13 changed files
with
10,344 additions
and
6,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
HEAD | ||
a8400af6e8d516b45b67c8a1ff344a119154fa6a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \; |
Oops, something went wrong.