From c02e3f3a7c21348a8804e33b8e3d439649f8100f Mon Sep 17 00:00:00 2001 From: Cristiano Rastelli Date: Tue, 17 Dec 2024 13:46:19 +0000 Subject: [PATCH] added `build:watch` command to scripts for `components` package --- packages/components/package.json | 4 +++- yarn.lock | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/components/package.json b/packages/components/package.json index 462e7c519ad..8ec751a57d9 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -17,9 +17,10 @@ "license": "MPL-2.0", "author": "HashiCorp Design Systems ", "scripts": { - "build": "concurrently 'npm:build:*'", + "build": "concurrently 'npm:build:js' 'npm:build:types'", "build:js": "rollup --config", "build:types": "glint --declaration", + "build:watch": "nodemon --watch '../tokens/dist/*' --ext 'css' --exec 'yarn build'", "prepublishOnly": "yarn build && test -f 'dist/styles/@hashicorp/design-system-components.css' || (echo 'The pre-compiled CSS file was not found' && exit 1)", "start": "concurrently 'yarn:start:*'", "start:js": "rollup --config --watch --environment development", @@ -97,6 +98,7 @@ "eslint-plugin-n": "^17.7.0", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-qunit": "^8.1.1", + "nodemon": "^3.1.7", "postcss": "^8.4.47", "prettier": "^3.3.2", "rollup": "^4.22.4", diff --git a/yarn.lock b/yarn.lock index a6340829c52..deeb248d9e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4498,6 +4498,7 @@ __metadata: eslint-plugin-n: "npm:^17.7.0" eslint-plugin-prettier: "npm:^5.1.3" eslint-plugin-qunit: "npm:^8.1.1" + nodemon: "npm:^3.1.7" postcss: "npm:^8.4.47" prettier: "npm:^3.3.2" prismjs: "npm:^1.29.0"