Skip to content

Commit 146507e

Browse files
committed
Improve scripts, add TypeScript as dev dependency
1 parent c4556ef commit 146507e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

package-lock.json

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

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test:staged": "CI=true jest --findRelatedTests",
1919
"version": "auto-changelog -p --template keepachangelog && git add CHANGELOG.md",
2020
"prepublishOnly": "git push && git push --tags && gh-release",
21-
"prepare": "husky install"
21+
"prepare": "husky install && npm run build"
2222
},
2323
"keywords": [
2424
"netlify",
@@ -43,15 +43,18 @@
4343
"husky": "^7.0.0",
4444
"jest": "^27.3.1",
4545
"lint-staged": "^11.2.6",
46-
"prettier": "^2.4.1"
46+
"prettier": "^2.4.1",
47+
"typescript": "^4.4.4"
4748
},
4849
"repository": "https://github.com/netlify-labs/netlify-plugin-a11y",
4950
"bugs": {
5051
"url": "https://github.com/netlify-labs/netlify-plugin-a11y/issues"
5152
},
5253
"lint-staged": {
54+
"src/**/*.js": [
55+
"npm run test:staged"
56+
],
5357
"*.js": [
54-
"npm run test:staged",
5558
"eslint --cache --fix",
5659
"prettier --write"
5760
]

0 commit comments

Comments
 (0)