mirror of
https://github.com/knex/knex.git
synced 2025-08-11 18:20:57 +00:00

In MySQL if a savepoint is missing, it means something else (most likely DDL) triggered an implicit commit. In this case rather than erroring, let's give a warning message so it's possible to use the same codepath as a DB where this actually works.
19 lines
362 B
Bash
Executable File
19 lines
362 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
npm install webpack@1.8.11
|
|
|
|
webpack=node_modules/.bin/webpack
|
|
|
|
rm -rf tmp
|
|
mkdir tmp
|
|
rm -rf build
|
|
mkdir build
|
|
|
|
cp -r lib tmp/lib
|
|
cp knex.js tmp
|
|
|
|
node -p 'p=require("./package");p.main="lib";p.scripts=p.devDependencies=undefined;JSON.stringify(p,null,2)' > tmp/package.json
|
|
|
|
$webpack --config scripts/webpack.config.js tmp build/knex.js
|
|
|
|
rm -rf tmp |