include node_modules so release .zip is deployable

This commit is contained in:
2023-11-24 17:44:25 -05:00
parent 6c86cfe5d2
commit 8b11c41267
8963 changed files with 874175 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
// reset.js
import {
existsSync,
unlinkSync
} from 'fs'
import { execSync } from 'child_process'
const dirs = [
'dist',
'docs',
'.nyc_output',
'coverage',
'node_modules',
'.nuxt',
]
const files = [
'yarn.lock',
'pnpm-lock.yaml',
'package-lock.json',
'coverage.lcov',
]
dirs.forEach((d) => {
execSync(`rm -rf ${d}`)
})
files.forEach((f) => {
if (existsSync(f)) {
unlinkSync(f)
}
})