mirror of
https://github.com/knex/knex.git
synced 2025-07-16 21:40:56 +00:00
17 lines
334 B
Bash
17 lines
334 B
Bash
![]() |
#!/bin/bash -e
|
||
|
|
||
|
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
|