Skip to content

Commit 1d43f97

Browse files
committed
fix: infra
1 parent 8a7cb54 commit 1d43f97

File tree

4 files changed

+4442
-5731
lines changed

4 files changed

+4442
-5731
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
2+
.idea
33
node_modules
44
temp
55
dist
66
# todo - get story book only when releasing.
77
storybook-static
8-
.parcel-cache
8+
.parcel-cache
9+
yarn.lock

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"format": "npm-run-all format:*",
2727
"format:eslint": "yarn lint --fix",
2828
"format:prettier": "prettier --write \"src/**.{js,ts}\"",
29-
"lint": "eslint \"src/**.{js,ts}\""
29+
"lint": "eslint \"src/**.{js,ts}\"",
30+
"phoenix": "rm -rf ./node_modules && rm -f yarn.lock && yarn install --prefer-online"
3031
},
3132
"peerDependencies": {
3233
"@types/sortablejs": "^1.10.0",
@@ -41,6 +42,8 @@
4142
"devDependencies": {
4243
"@commitlint/cli": "^11.0.0",
4344
"@commitlint/config-conventional": "^11.0.0",
45+
"@parcel/packager-ts": "^2.2.0",
46+
"@parcel/transformer-typescript-types": "^2.2.0",
4447
"@semantic-release/changelog": "^5.0.1",
4548
"@semantic-release/git": "^9.0.0",
4649
"@types/classnames": "^2.2.10",

src/react-sortable.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,18 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
6666
`
6767
);
6868
}
69+
6970
componentDidMount(): void {
7071
if (this.ref.current === null) return;
7172
const newOptions = this.makeOptions();
7273
Sortable.create(this.ref.current, newOptions);
7374
}
75+
7476
componentDidUpdate(prevProps: ReactSortableProps<T>): void {
7577
if (prevProps.disabled !== this.props.disabled && this.sortable) {
7678
this.sortable.option("disabled", this.props.disabled);
7779
}
78-
};
80+
}
7981

8082
render(): JSX.Element {
8183
const { tag, style, className, id } = this.props;

0 commit comments

Comments
 (0)