@explorable-viz/fluid 0.7.102 → 0.7.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.102",
3
+ "version": "0.7.104",
4
4
  "description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -16,11 +16,12 @@ fi
16
16
 
17
17
  if [[ "${BASH_SOURCE[0]}" == *"/node_modules/"* ]]; then
18
18
  PREFIX="node_modules/@explorable-viz/fluid/"
19
+ else
20
+ PREFIX=""
19
21
  fi
20
22
 
21
- PREFIX_=${PREFIX:+$PREFIX/}
22
23
  echo "Cleaning dist/$WEBSITE"
23
- . "${PREFIX_}script/util/clean.sh" $WEBSITE
24
+ . "${PREFIX}script/util/clean.sh" $WEBSITE
24
25
 
25
26
  shopt -s nullglob
26
27
 
@@ -28,7 +29,7 @@ echo "Processing other static files:"
28
29
  set +xu # try to remove +u
29
30
  TO_COPY=()
30
31
  shopt -s dotglob extglob
31
- for CHILD in ${PREFIX_}website/$WEBSITE/!(.|..); do
32
+ for CHILD in ${PREFIX}website/$WEBSITE/!(.|..); do
32
33
  BASENAME="$(basename "$CHILD")"
33
34
  if [[ "$BASENAME" =~ ^[a-z.] ]]; then
34
35
  TO_COPY+=("$CHILD")
@@ -42,10 +43,10 @@ for CHILD in "${TO_COPY[@]}"; do
42
43
  done
43
44
 
44
45
  echo "Processing Fluid source files:"
45
- cp -r "${PREFIX_}dist/fluid/fluid" dist/$WEBSITE
46
+ cp -r "${PREFIX}dist/fluid/fluid" dist/$WEBSITE
46
47
  [ -d "website/$WEBSITE/fluid" ] && cp -r "website/$WEBSITE/fluid" dist/$WEBSITE
47
48
 
48
49
  echo "Processing shared JavaScript files:"
49
- cp -r "${PREFIX_}dist/fluid/shared" dist/$WEBSITE
50
+ cp -r "${PREFIX}dist/fluid/shared" dist/$WEBSITE
50
51
 
51
52
  echo "Bundled website $WEBSITE"