-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the library compatible with
react-native-reanimated
- Loading branch information
Showing
7 changed files
with
1,980 additions
and
346 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 |
---|---|---|
|
@@ -7,4 +7,5 @@ | |
/.nyc_output | ||
/perf/*.log | ||
/perf/*.cfg | ||
/perf/*.json | ||
/perf/*.json | ||
/tmp |
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,5 +1,12 @@ | ||
#!/bin/sh | ||
mkdir -p dist | ||
# commonjs build | ||
tsc --build tsconfig-commonjs.json | ||
# esm build | ||
tsc --build tsconfig-esm.json | ||
echo '{"type": "module"}' > dist/esm/package.json | ||
echo '{"type": "module"}' > dist/esm/package.json | ||
# react-native build | ||
mkdir -p tmp | ||
jscodeshift --transform=./react-native/build.ts --parser=ts --extensions=ts --print --dry --silent simplex-noise.ts > ./tmp/simplex-noise.ts | ||
tsc --build tsconfig-react-native.json | ||
rm -rf tmp |
Oops, something went wrong.