Files
skeleton/scripts/pre-build.js
Nik 99ea3cbe77 Feat/migrate to new package process (#1170)
* svelte-migrate + script updates

* tweaks

* First test done

* Stragglers

* Add Prettier config to post-build gen

* Added keywords for display on npmjs

* Back out the a11y fixes

* Git gud

* Updated package lock file

* Fix the NPM publish script path

* Resolve package script command

---------

Co-authored-by: endigo9740 <gundamx9740@gmail.com>
2023-04-03 12:42:43 -05:00

11 lines
246 B
JavaScript

#!/usr/bin/env node
import { rmSync } from 'fs';
try {
// We'll delete the .temp directory to force the regeneration of all of the TW Classes
rmSync('.temp', { recursive: true });
} catch {
// Directory doesn't exist, don't worry about it
}