mirror of
https://github.com/andrei0x309/clear-wallet.git
synced 2024-11-18 23:41:10 +00:00
10 lines
519 B
TypeScript
10 lines
519 B
TypeScript
|
|
(async () => {
|
|
const CONTENT_BUILD_PATH = 'src/extension/content.js'
|
|
const fs = (await import('fs')).default
|
|
const pkg = JSON.parse(fs.readFileSync('dist/manifest.json').toString());
|
|
pkg.content_scripts[0].js[0] = CONTENT_BUILD_PATH
|
|
fs.writeFileSync('dist/manifest.json', JSON.stringify(pkg, null, 2))
|
|
// fs.writeFileSync('dist/rules.js', fs.readFileSync('rules.json').toString())
|
|
fs.writeFileSync('dist/'+ CONTENT_BUILD_PATH, fs.readFileSync('src/extension/content.js').toString())
|
|
})(); |