mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
21 lines
387 B
JavaScript
21 lines
387 B
JavaScript
/**
|
|
* This file cleans up the build artifacts generated by createDirect.js.
|
|
*/
|
|
|
|
const directFiles = [
|
|
'filesystem',
|
|
'strings',
|
|
'print',
|
|
'system',
|
|
'semver',
|
|
'http',
|
|
'patching',
|
|
'prompt',
|
|
'package-manager',
|
|
]
|
|
const fs = require('fs')
|
|
directFiles.forEach(f => {
|
|
const filename = __dirname + '/../' + f + '.js'
|
|
if (fs.existsSync(filename)) fs.unlinkSync(filename)
|
|
})
|