mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 18:37:30 -07:00
19596a91e4
Reasons: 1. `pnpm` is now an industry standard, being faster and less buggy than `yarn`. 2. Faster build time as builds are concurrent: 63 seconds down to 35 seconds!! 3. Resolves #9412 Co-authored-by: ThatOneCalculator <kainoa@t1c.dev> Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9461
21 lines
858 B
JavaScript
21 lines
858 B
JavaScript
const fs = require('fs');
|
|
const execa = require('execa');
|
|
|
|
(async () => {
|
|
fs.rmSync(__dirname + '/../packages/backend/built', { recursive: true, force: true });
|
|
fs.rmSync(__dirname + '/../packages/backend/node_modules', { recursive: true, force: true });
|
|
|
|
fs.rmSync(__dirname + '/../packages/client/built', { recursive: true, force: true });
|
|
fs.rmSync(__dirname + '/../packages/client/node_modules', { recursive: true, force: true });
|
|
|
|
fs.rmSync(__dirname + '/../packages/sw/built', { recursive: true, force: true });
|
|
fs.rmSync(__dirname + '/../packages/sw/node_modules', { recursive: true, force: true });
|
|
|
|
fs.rmSync(__dirname + '/../built', { recursive: true, force: true });
|
|
fs.rmSync(__dirname + '/../node_modules', { recursive: true, force: true });
|
|
|
|
execa('pnpm', ['store', 'prune'], {
|
|
cwd: __dirname + '/../',
|
|
stdio: 'inherit'
|
|
});
|
|
})();
|