mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 02:40:03 +00:00
Bump knex to v2.5.1
Change-type: patch
This commit is contained in:
parent
e87ac99feb
commit
06e258ecad
@ -5,9 +5,12 @@ module.exports = function (source) {
|
||||
return (
|
||||
source
|
||||
.toString()
|
||||
// IMPORTANT: this is known to work with knex v0.95.15. It will most likely break
|
||||
// IMPORTANT: this is known to work with knex v2.5.0. It will most likely break
|
||||
// if knex is upgraded. This is really a hack and should be replaced by a more sustainable
|
||||
// webpack configuration.
|
||||
.replace('importFile(_path)', "require('./migrations/'+migration.file)")
|
||||
.replace(
|
||||
'importFile(_path)',
|
||||
"require('./migrations/'+migrationsInfo.file)",
|
||||
)
|
||||
);
|
||||
};
|
||||
|
3709
package-lock.json
generated
3709
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -101,7 +101,7 @@
|
||||
"io-ts": "^2.2.10",
|
||||
"io-ts-reporters": "^1.2.2",
|
||||
"json-mask": "^0.3.9",
|
||||
"knex": "^0.95.15",
|
||||
"knex": "^2.5.1",
|
||||
"lint-staged": "^13.0.3",
|
||||
"livepush": "^3.5.1",
|
||||
"lodash": "^4.17.21",
|
||||
|
@ -19,6 +19,7 @@ var externalModules = [
|
||||
'oracledb',
|
||||
'pg-query-stream',
|
||||
'tedious',
|
||||
'better-sqlite3',
|
||||
/mssql\/.*/,
|
||||
'osx-temperature-sensor',
|
||||
'@balena/systemd',
|
||||
@ -104,8 +105,8 @@ module.exports = function (env) {
|
||||
include: [
|
||||
new RegExp(
|
||||
_.escapeRegExp(
|
||||
// this is the path as of knex@0.95.15
|
||||
path.join('knex', 'lib', 'migrations', 'migrate', 'sources'),
|
||||
// this is the path as of knex@2.5.1
|
||||
path.join('knex', 'lib', 'migrations', 'common'),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user