Browse Source

add build hooks

main
parent
commit
59e2fbeebb
4 changed files with 13 additions and 1 deletions
  1. +1
    -0
      .gitattributes
  2. +4
    -0
      .husky/pre-commit
  3. +3
    -1
      package.json
  4. +5
    -0
      yarn.lock

+ 1
- 0
.gitattributes View File

@ -0,0 +1 @@
lib/* linguist-vendored

+ 4
- 0
.husky/pre-commit View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn build

+ 3
- 1
package.json View File

@ -8,7 +8,8 @@
"license": "MIT",
"scripts": {
"ts": "ts-node -O '{\"noImplicitAny\":false}'",
"build": "tsc -p src/tsconfig.json"
"build": "tsc -p src/tsconfig.json",
"prepare": "husky install"
},
"dependencies": {
"axios": "^0.22.0",
@ -16,6 +17,7 @@
},
"devDependencies": {
"@types/node": "^16.9.6",
"husky": "^7.0.2",
"import-sort-parser-typescript": "^6.0.0",
"ts-node": "^10.2.1",
"typescript": "^4.4.3"

+ 5
- 0
yarn.lock View File

@ -81,6 +81,11 @@ follow-redirects@^1.14.4:
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.4.tgz#838fdf48a8bbdd79e52ee51fb1c94e3ed98b9379"
integrity sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g==
husky@^7.0.2:
version "7.0.2"
resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.2.tgz#21900da0f30199acca43a46c043c4ad84ae88dff"
integrity sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==
import-sort-parser-typescript@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/import-sort-parser-typescript/-/import-sort-parser-typescript-6.0.0.tgz#98e73cef9e077d073e798722ed59e215b51c17e2"

Loading…
Cancel
Save