Open atomicrobokid opened 12 months ago
Maybe you could try deleteOutputPath
to true with following config.
in project.json
{
"targets": {
"build": {
"executor": "@nxkit/style-dictionary:build",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "libs/components/src/design-token",
"styleDictionaryConfig": "libs/design-token/style-dictionary.config.ts",
"tsConfig": "libs/design-token/tsconfig.json",
"deleteOutputPath": false
}
}
}
What type of documentation issue are you reporting?
Documentation improvement
Is there a specific documentation page you are reporting? Enter the URL here.
No response
Additional context
Hi,
I'm trying to work out how to delete a previous build as part of the usual build command but cannot work out how to go about it.
I can see from the code that it looks for
options.deleteOutputPath
however when I add the following the mystyle-dictionary.config.ts
it fails withThe "path" argument must be of type string. Received undefined
.This is on latest version.
Could you please document how to go about doing a clean before build? Does it belong in the project.json or the style dictionary config?
TIA!
Code of Conduct