diff --git a/lib/clientData.js b/lib/clientData.js index f9edd9c..b120782 100644 --- a/lib/clientData.js +++ b/lib/clientData.js @@ -1,3 +1,12 @@ +'use strict'; + +/* + * Loads and caches a client data file. Call loadClientItems(file) or + * createClientItems(obj) to parse and cache client items. Then call + * .clientItemsForStructure(structure) to get client items referenced in the + * structure. + */ + const _ = require('lodash'); const Promise = require('bluebird'); const fs = Promise.promisifyAll(require('fs')); @@ -19,7 +28,7 @@ const clientItemTypeMap = { anchors: 'anchors', pushBraces: 'braces', braces: 'braces', - sidewalkBrances: 'braces', + sidewalkBraces: 'braces', crossArms: 'crossArms', assemblies: 'assemblies' }; diff --git a/package.sh b/package.sh index da4497d..7a730f7 100755 --- a/package.sh +++ b/package.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=9.2.1 +NODE_VERSION=9.2.1 MY_PATH=${BASH_SOURCE%/*} npm install @@ -12,6 +12,13 @@ for os in linux macos win; do for arch in x64 x86; do echo Building $os-$arch mkdir -p target/$os/$arch 2> /dev/null - pkg -t node$VERSION-$os-$arch --out-path target/$os/$arch . + pkg -t node$NODE_VERSION-$os-$arch --out-path target/$os/$arch . + + if [ $os == 'win' ]; then + cp target/$os/$arch/cee-cli.exe target/$os/$arch/cee-cli-$arch.exe + else + cp target/$os/$arch/cee-cli target/$os/$arch/cee-cli-$os-$arch + fi + done done