diff --git a/packages/styles/package.json b/packages/styles/package.json index a59dc05bce..ebb385d444 100644 --- a/packages/styles/package.json +++ b/packages/styles/package.json @@ -21,7 +21,7 @@ "start": "gulp watch", "build": "pnpm clean && gulp build", "unit": "gulp sass:tests", - "clean": "rimraf out-tsc dist", + "clean": "rimraf out-tsc dist src/tokens/temp", "format": "prettier src/**/*.scss --write", "lint": "stylelint src/**/*.scss", "lint:fix": "stylelint src/**/*.scss --fix" diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 0c1a081637..f9b9413fdf 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -15,7 +15,8 @@ }, "type": "module", "scripts": { - "build": "node ./build.js" + "build": "pnpm clean && node ./build.js", + "clean": "rimraf dist" }, "keywords": [ "tokens", @@ -32,6 +33,7 @@ }, "devDependencies": { "@tokens-studio/sd-transforms": "1.2.2", + "rimraf": "6.0.1", "style-dictionary": "4.0.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e6bcfb2493..ce3c1c57ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1223,6 +1223,9 @@ importers: '@tokens-studio/sd-transforms': specifier: 1.2.2 version: 1.2.2(style-dictionary@4.0.1) + rimraf: + specifier: 6.0.1 + version: 6.0.1 style-dictionary: specifier: 4.0.1 version: 4.0.1