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

Make the library compatible with react-native-reanimated #68

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
/.nyc_output
/perf/*.log
/perf/*.cfg
/perf/*.json
/perf/*.json
/tmp
9 changes: 8 additions & 1 deletion build.sh
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
Loading
Loading