mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Use renamed __options object in build script too.
This commit is contained in:
parent
3a10974612
commit
865c304411
1 changed files with 2 additions and 2 deletions
|
@ -30,10 +30,10 @@ DATE=$(git log -1 --pretty=format:%ad)
|
|||
VERSION=$(node -e "
|
||||
process.stdout.write(require('../package.json').version)
|
||||
")
|
||||
# Load and evaluate the options from options.js, and convert it an escaped json:
|
||||
# Load and evaluate the __options from options.js, and convert it escaped json:
|
||||
OPTIONS=$(printf '%q' $(node -e "
|
||||
eval(require('fs').readFileSync('../src/options.js', 'utf8'));
|
||||
process.stdout.write(JSON.stringify(options));
|
||||
process.stdout.write(JSON.stringify(__options));
|
||||
"))
|
||||
# Build the prepo.js command out of it, passing on version and date as defines:
|
||||
COMMAND="../node_modules/.bin/prepro -o $OPTIONS -o '{ \"version\": \"$VERSION\", \"date\": \"$DATE\", \"stats\": false }' $3 $2"
|
||||
|
|
Loading…
Reference in a new issue