mirror of https://github.com/sveltejs/svelte
site: fix binary template files in REPL zips (#2812)
parent
2255aadf36
commit
7265fd4e83
@ -1,11 +0,0 @@
|
||||
const fs = require('fs');
|
||||
|
||||
const files = [];
|
||||
|
||||
for (const path of process.argv.slice(2)) {
|
||||
if (!path.includes('/.')) {
|
||||
files.push({ path: path.slice(19), data: fs.readFileSync(path).toString() });
|
||||
}
|
||||
}
|
||||
|
||||
fs.writeFileSync('static/svelte-app.json', JSON.stringify(files));
|
Loading…
Reference in new issue