knex/scripts/build.sh
Tim Griesser 12e6ada1a3 Fix for #805, warn for non-existent savepoints
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.
2015-05-01 11:26:29 -04:00

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