nxkit icon indicating copy to clipboard operation
nxkit copied to clipboard

How to delete previous output before new build

Open atomicrobokid opened this issue 1 year ago • 1 comments

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 my style-dictionary.config.ts it fails with The "path" argument must be of type string. Received undefined.

platforms: {
    options: {
      deleteOutputPath: true
    },
}

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

  • [X] I agree to follow this project's Code of Conduct

atomicrobokid avatar Sep 19 '23 16:09 atomicrobokid