Skip to content

Commit

Permalink
Make the library compatible with react-native-reanimated
Browse files Browse the repository at this point in the history
  • Loading branch information
xseignard committed Feb 13, 2024
1 parent 0c81072 commit e1fbe90
Show file tree
Hide file tree
Showing 7 changed files with 1,980 additions and 346 deletions.
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

0 comments on commit e1fbe90

Please sign in to comment.