Skip to content

Commit 1135824

Browse files
committed
Bump husky to v5
1 parent 0fd01e0 commit 1135824

5 files changed

Lines changed: 15 additions & 10 deletions

File tree

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"pretest": "npm run lint",
2929
"start": "webpack-dev-server --config ./webpack.config.js --mode development --open",
3030
"test": "rollup -c ./rollup.test.config.js | tape-run --render='tap-spec'",
31-
"watch": "rollup -cw"
31+
"watch": "rollup -cw",
32+
"prepare": "husky install"
3233
},
3334
"dependencies": {
3435
"@flekschas/utils": "^0.27.0",

src/spline-curve.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import workerFn from './spline-curve-worker';
44
const createSplineCurve = (
55
points,
66
options = { tolerance: 0.002, maxIntPointsPerSegment: 100 }
7-
) => {
8-
return new Promise((resolve, reject) => {
7+
) =>
8+
new Promise((resolve, reject) => {
99
const worker = createWorker(workerFn);
1010

1111
worker.onmessage = (e) => {
@@ -16,6 +16,5 @@ const createSplineCurve = (
1616

1717
worker.postMessage({ points, options });
1818
});
19-
};
2019

2120
export default createSplineCurve;

0 commit comments

Comments
 (0)