mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Fix some packaging and dependency issues
This commit is contained in:
parent
3f93b93d9e
commit
b3ce300d32
1
package-lock.json
generated
1
package-lock.json
generated
@ -9,6 +9,7 @@
|
|||||||
"version": "2.13.3",
|
"version": "2.13.3",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@rushstack/terminal": "^0.14.0",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"cookie-parser": "^1.4.6",
|
"cookie-parser": "^1.4.6",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
|
@ -22,11 +22,13 @@
|
|||||||
"pkg": {
|
"pkg": {
|
||||||
"assets": [
|
"assets": [
|
||||||
"client/dist/**/*",
|
"client/dist/**/*",
|
||||||
"node_modules/sqlite3/lib/binding/**/*.node"
|
"node_modules/sqlite3/lib/binding/**/*.node",
|
||||||
|
"node_modules/string-argv/commonjs/package.json"
|
||||||
],
|
],
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"prod.js",
|
"prod.js",
|
||||||
"server/**/*.js"
|
"server/**/*.js",
|
||||||
|
"node_modules/string-argv/commonjs/*.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mocha": {
|
"mocha": {
|
||||||
@ -35,6 +37,7 @@
|
|||||||
"author": "advplyr",
|
"author": "advplyr",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@rushstack/terminal": "^0.14.0",
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
"cookie-parser": "^1.4.6",
|
"cookie-parser": "^1.4.6",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
|
@ -92,13 +92,13 @@ class MigrationManager {
|
|||||||
try {
|
try {
|
||||||
await this.copyMigrationsToConfigDir()
|
await this.copyMigrationsToConfigDir()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error('Failed to copy migrations to the config directory.', error)
|
throw new Error('Failed to copy migrations to the config directory.', { cause: error })
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.updateMaxVersion(serverVersion)
|
await this.updateMaxVersion(serverVersion)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error('Failed to update max version in the database.', error)
|
throw new Error('Failed to update max version in the database.', { cause: error })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -156,6 +156,8 @@ class MigrationManager {
|
|||||||
|
|
||||||
await fs.ensureDir(this.migrationsDir) // Ensure the target directory exists
|
await fs.ensureDir(this.migrationsDir) // Ensure the target directory exists
|
||||||
|
|
||||||
|
if (!(await fs.pathExists(migrationsSourceDir))) return
|
||||||
|
|
||||||
const files = await fs.readdir(migrationsSourceDir)
|
const files = await fs.readdir(migrationsSourceDir)
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
files
|
files
|
||||||
|
Loading…
Reference in New Issue
Block a user