mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 10:01:55 +00:00
Fix webpack loader for knex migrations so it works with knex 0.15.2
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
parent
7854c48f5a
commit
35e11de69d
@ -4,6 +4,6 @@
|
||||
module.exports = function (source) {
|
||||
return source
|
||||
.toString()
|
||||
.replace(/require\(_path2\.default\.join\(_?this\._absoluteConfigDir\(\), name\)\);/g, "require('./migrations/' + name);")
|
||||
.replace("require(directory + '/' + name);", "require('./migrations/' + name);")
|
||||
.replace("require(_path2.default.join(this._absoluteConfigDir(), name));", "require('./migrations/' + name);")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user