mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 08:03:09 +02:00
6e2d7e9792
* Use pnpm for package manager * Fix * Change github workflow * use pnpm in workflow * fix * Fix test (e2e/jest) * Update Dockerfile for pnpm * Exclude node_modules from file search on VSCode * Update pnpm-lock.yaml * Update pnpm-lock.yaml * Move typescript from devDependencies to dependencies * Fix Dockerfile Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
21 lines
873 B
JavaScript
21 lines
873 B
JavaScript
const { execSync } = require('child_process');
|
|
const fs = require('fs');
|
|
|
|
(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/frontend/built', { recursive: true, force: true });
|
|
fs.rmSync(__dirname + '/../packages/frontend/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 });
|
|
|
|
execSync('pnpm store prune', {
|
|
cwd: __dirname + '/../',
|
|
stdio: 'inherit',
|
|
});
|
|
})();
|