Skip to content

Commit

Permalink
Adds build-types to watch script (#83)
Browse files Browse the repository at this point in the history
This PR adds the `build-types` script to the `watch` script, since
`tasks/clean` is currently deleting the types files without
re-generating them.

It also moves the `build-types` script to come before
`tasks/buildsources` in the `build` script, purely for consistency with
the `watch` script.
  • Loading branch information
mhassan1 authored Nov 18, 2024
1 parent 442dba2 commit d42b580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"lint": "eslint polyfills lib tasks test && tsc --noEmit",
"lint-config": "node tasks/lint-config/index.js",
"clean": "node tasks/clean",
"build": "npm run clean && node tasks/updatesources && node tasks/buildsources/buildsources && npm run build-types",
"build": "npm run clean && node tasks/updatesources && npm run build-types && node tasks/buildsources/buildsources",
"build-types": "tsc lib/*.js --declaration --allowJs --emitDeclarationOnly --outDir lib",
"watch": "npm run clean && node tasks/updatesources && node tasks/buildsources/watchsource",
"watch": "npm run clean && node tasks/updatesources && npm run build-types && node tasks/buildsources/watchsource",
"fmt": "eslint . --fix",
"test-end-to-end": "node --test 'test/end-to-end/**/*.test.js'",
"test-node": "node --test 'test/node/**/*.test.js'",
Expand Down

0 comments on commit d42b580

Please sign in to comment.