diff --git a/javascript/just.config.js b/javascript/just.config.js index 06b17d3c..e5eed568 100644 --- a/javascript/just.config.js +++ b/javascript/just.config.js @@ -9,6 +9,7 @@ const { argv, + cleanTask, copyTask, eslintTask, logger, @@ -27,6 +28,8 @@ const node = process.execPath; option("fix"); +task("clean", cleanTask({paths: ['build', 'dist']})); + task( "prepare-for-build", parallel( diff --git a/javascript/package.json b/javascript/package.json index 201542f2..11c2f932 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -28,6 +28,7 @@ "scripts": { "benchmark": "just benchmark", "build": "just build", + "clean": "just clean", "lint": "just lint", "lint:fix": "just lint --fix", "test": "just test",