Skip to content

Commit

Permalink
build: improve consistency (#5520)
Browse files Browse the repository at this point in the history
* build: improve consistency

This change is meant to fix the issue where dependencies may not be fully built when running `pnpm build` within a project.

We used to be able to rely entirely on `tsc --build` to build transitive dependencies. Because `tsconfig.build.json` files all referenced the build configuration for the projects they needed, `tsc --build` would traverse the graph and ensure everything was built. Once we added our first Rust code, this was no longer true. Building `apps/scan/backend` would re-build the TypeScript code in `libs/ballot-interpreter`, but not the Rust code. We've lived with this mostly because that code doesn't change very often. However, it's never been a very good setup and has led to build caches being out of date and people getting fed up and running `pnpm -w clean-all` to start over, which is time-consuming.

This change does the following:
- ensure all `libs` and `apps` have both a `build` and `clean` script
- make `build` and `clean` use `pnpm`'s recursive topologically-ordered script running to run `build:self` and `clean:self` for all dependencies, respectively
- moves what used to be `build` and `clean` into `build:self` and `clean:self`, respectively
- uses `tsc --build --clean` to remove `*.tsbuildinfo` files, but not to clear `build` (more on this below)
- updates `cargo clean` calls to clean only files related to the current project

Why remove `*.tsbuildinfo` files with `tsc --build --clean`? There are a couple reasons:
- we use `noEmit: true` with `tsconfig.json` files because we only use those files for type checking (and so they include test files), so under normal circumstances we shouldn't have any `tsconfig.tsbuildinfo` files
- the `tsconfig.build.tsbuildinfo` file associated with `tsconfig.build.json` is not necessarily adjacent to the file, for example if `rootDir` is set to `src/ts` and `outDir` is set to `build` then `tsconfig.build.tsbuildinfo` will actually be in the project's parent directory due to the way the path to the `*.tsbuildinfo` files are computed; using `tsc --build --clean` ensures the computed path matches that of `tsc --build`

Related to the above, we don't rely on `tsc --build --clean` to clear `build` because it only removes files that would be output by `tsc --build`. If you rename a `.ts` file, you'll be stuck with its built `.js` file until you clear the `build` directory by some other means.

There are further improvements I'd like to make, but this should at least ensure that running `pnpm build` in a project properly builds all of its dependencies, whether TypeScript or Rust.

* build(admin): only build the frontend explicitly

The backend will be built automatically.

* build(admin): fix incorrect build directive

* build: fix a couple remaining package scripts

Missed a couple spots.

* build: remove explicit `Makefile` dependency builds

We no longer need these now that `pnpm build` knows how to build dependencies properly.
  • Loading branch information
eventualbuddha authored Oct 23, 2024
1 parent 4ed2678 commit 0f4c8ae
Show file tree
Hide file tree
Showing 52 changed files with 192 additions and 110 deletions.
6 changes: 4 additions & 2 deletions apps/admin/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"schema.sql"
],
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
Expand Down
4 changes: 1 addition & 3 deletions apps/admin/frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ FORCE:
install:

build: FORCE
pnpm install && \
pnpm --dir ../backend build && \
pnpm build
pnpm install && pnpm build

bootstrap: install build

Expand Down
5 changes: 4 additions & 1 deletion apps/admin/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
"prodserver"
],
"scripts": {
"build": "pnpm type-check && vite build",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "pnpm type-check && vite build",
"build:stubs": "script/build-stubs fs:src/stubs/fs.ts glob:src/stubs/glob.ts os:src/stubs/os.ts jsdom:src/stubs/jsdom.ts",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint . && pnpm stylelint:run",
"lint:fix": "pnpm type-check && eslint . --fix && pnpm stylelint:run:fix",
Expand Down
11 changes: 3 additions & 8 deletions apps/admin/integration-testing/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
APP := ..
export ADMIN_WORKSPACE=/tmp/admin-integration-testing

build-frontend:
build:
# building the frontend builds the backend too
make -C $(APP)/frontend install; \
make -C $(APP)/frontend build; \

build-backend:
make -C $(APP)/backend install; \
make -C $(APP)/backend build; \

build: build-frontend build-backend
make -C $(APP)/frontend build

run:
rm -rf $(ADMIN_WORKSPACE)
Expand Down
6 changes: 4 additions & 2 deletions apps/central-scan/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
"schema.sql"
],
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
Expand Down
5 changes: 1 addition & 4 deletions apps/central-scan/frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ FORCE:
install:

build: FORCE
pnpm install && \
pnpm --dir ../../../libs/ballot-interpreter build && \
pnpm --dir ../backend build && \
pnpm build
pnpm install && pnpm build

bootstrap: install build

Expand Down
5 changes: 4 additions & 1 deletion apps/central-scan/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"prodserver"
],
"scripts": {
"build": "pnpm type-check && vite build",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "pnpm type-check && vite build",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint . && pnpm stylelint:run",
"lint:fix": "pnpm type-check && eslint . --fix && pnpm stylelint:run:fix",
Expand Down
6 changes: 4 additions & 2 deletions apps/design/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
"schema.sql"
],
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
Expand Down
5 changes: 4 additions & 1 deletion apps/design/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"prodserver"
],
"scripts": {
"build": "pnpm type-check && vite build",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "pnpm type-check && vite build",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint . && pnpm stylelint:run",
"lint:fix": "pnpm type-check && eslint . --fix && pnpm stylelint:run:fix",
Expand Down
6 changes: 4 additions & 2 deletions apps/mark-scan/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"build"
],
"scripts": {
"build": "tsc --build tsconfig.build.json && copyfiles -u 3 src/custom-paper-handler/diagnostic/*.json build/custom-paper-handler/diagnostic",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json && copyfiles -u 3 src/custom-paper-handler/diagnostic/*.json build/custom-paper-handler/diagnostic",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
Expand Down
5 changes: 1 addition & 4 deletions apps/mark-scan/frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ run-all:
(trap 'kill 0' SIGINT SIGHUP; make -C $(BACKEND) run & cd prodserver && node index.js)

build: FORCE
pnpm install && \
pnpm --dir ../../../libs/ballot-interpreter build && \
pnpm --dir ../backend build && \
pnpm build
pnpm install && pnpm build

bootstrap: install build

Expand Down
5 changes: 4 additions & 1 deletion apps/mark-scan/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"prodserver"
],
"scripts": {
"build": "pnpm type-check && vite build",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "pnpm type-check && vite build",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint . && pnpm stylelint:run",
"lint:fix": "pnpm type-check && eslint . --fix && pnpm stylelint:run:fix",
Expand Down
6 changes: 4 additions & 2 deletions apps/mark/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"build"
],
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
Expand Down
5 changes: 4 additions & 1 deletion apps/mark/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"prodserver"
],
"scripts": {
"build": "pnpm type-check && vite build",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "pnpm type-check && vite build",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint . && pnpm stylelint:run",
"lint:fix": "pnpm type-check && eslint . --fix && pnpm stylelint:run:fix",
Expand Down
6 changes: 4 additions & 2 deletions apps/scan/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
"schema.sql"
],
"scripts": {
"build": "tsc --build tsconfig.build.json && copyfiles -u 2 src/printing/test-print.pdf build/printing",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json && copyfiles -u 2 src/printing/test-print.pdf build/printing",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
Expand Down
6 changes: 1 addition & 5 deletions apps/scan/frontend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ FORCE:
install:

build: FORCE
pnpm install && \
pnpm --dir ../../../libs/ballot-interpreter build && \
pnpm --dir ../../../libs/pdi-scanner build && \
pnpm --dir ../backend build && \
pnpm build
pnpm install && pnpm build

bootstrap: install build

Expand Down
5 changes: 4 additions & 1 deletion apps/scan/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
"prodserver"
],
"scripts": {
"build": "pnpm type-check && vite build",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "pnpm type-check && vite build",
"build:stubs": "script/build-stubs fs:src/stubs/fs.ts os:src/stubs/os.ts",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build",
"format": "prettier '**/*.+(css|graphql|json|less|md|mdx|sass|scss|yaml|yml)' --write",
"lint": "pnpm type-check && eslint . && pnpm stylelint:run",
"lint:fix": "pnpm type-check && eslint . --fix && pnpm stylelint:run:fix",
Expand Down
6 changes: 4 additions & 2 deletions libs/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
"build"
],
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build *.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
6 changes: 4 additions & 2 deletions libs/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build *.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
6 changes: 4 additions & 2 deletions libs/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
"build"
],
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
6 changes: 4 additions & 2 deletions libs/ballot-encoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
],
"scripts": {
"type-check": "tsc --build",
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"test": "is-ci test:ci test:watch",
Expand Down
6 changes: 4 additions & 2 deletions libs/ballot-interpreter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
],
"scripts": {
"benchmark": "jest --runInBand --projects benchmarks",
"build": "pnpm install:rust-addon && pnpm build:rust-addon && pnpm build:ts",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "pnpm install:rust-addon && pnpm build:rust-addon && pnpm build:ts",
"build:rust-addon": "cargo-cp-artifact -nc build/hmpb-ts/rust_addon.node -- cargo build --message-format=json-render-diagnostics --release --offline",
"build:ts": "tsc --build tsconfig.build.json",
"clean": "cargo clean && rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "cargo clean --release --package ballot-interpreter && rm -rf build && tsc --build --clean tsconfig.build.json",
"install:rust-addon": "cargo fetch",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
Expand Down
6 changes: 4 additions & 2 deletions libs/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"main": "build/index.js",
"types": "build/index.d.js",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build *.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
6 changes: 4 additions & 2 deletions libs/bmd-ballot-fixtures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
],
"scripts": {
"type-check": "tsc --build",
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint . && pnpm stylelint:run",
"lint:fix": "pnpm type-check && eslint . --fix && pnpm stylelint:run:fix",
"stylelint:run": "stylelint 'src/**/*.{js,jsx,ts,tsx}'",
Expand Down
6 changes: 4 additions & 2 deletions libs/cdf-schema-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
"build"
],
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
6 changes: 4 additions & 2 deletions libs/custom-paper-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"author": "VotingWorks Eng <[email protected]>",
"main": "build/index.js",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
6 changes: 4 additions & 2 deletions libs/custom-scanner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"main": "build/index.js",
"scripts": {
"analyze-packets": "cd tools/analyze-packets && vite",
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
6 changes: 4 additions & 2 deletions libs/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"types": "build/index.d.ts",
"scripts": {
"type-check": "tsc --build",
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"test": "is-ci test:ci test:watch",
Expand Down
6 changes: 4 additions & 2 deletions libs/dev-dock/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"main": "build/index.js",
"types": "build/index.d.js",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build *.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
6 changes: 4 additions & 2 deletions libs/dev-dock/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"main": "build/index.js",
"types": "build/index.d.js",
"scripts": {
"build": "tsc --build tsconfig.build.json",
"clean": "rm -rf build *.tsbuildinfo",
"build": "pnpm --filter $npm_package_name... build:self",
"build:self": "tsc --build tsconfig.build.json",
"clean": "pnpm --filter $npm_package_name... clean:self",
"clean:self": "rm -rf build && tsc --build --clean tsconfig.build.json",
"lint": "pnpm type-check && eslint .",
"lint:fix": "pnpm type-check && eslint . --fix",
"pre-commit": "lint-staged",
Expand Down
Loading

0 comments on commit 0f4c8ae

Please sign in to comment.