Skip to content

Commit

Permalink
Add "npm run check" (#312)
Browse files Browse the repository at this point in the history
Adds a "check" script to the "web" package.

Run `npm run check` from root or from the web folder to do a
typecheck, without needing to do a full build.
  • Loading branch information
munshkr authored Dec 30, 2024
2 parents 9630cae + ef811c5 commit ad44b1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"url": "git+https://github.com/munshkr/flok.git"
},
"scripts": {
"build": "lerna run build"
"build": "lerna run build",
"check": "lerna run check"
},
"keywords": [
"codemirror",
Expand Down
3 changes: 2 additions & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"dev": "cross-env NODE_ENV=development node ./bin/flok-web.js",
"prebuild": "node script/prebuild.js",
"build": "npm run prebuild && tsc && vite build",
"start": "node ./bin/flok-web.js"
"start": "node ./bin/flok-web.js",
"check": "tsc --noEmit"
},
"dependencies": {
"@flok-editor/server-middleware": "^1.0.1",
Expand Down

0 comments on commit ad44b1b

Please sign in to comment.