frosty 0.0.88 → 0.0.90

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": "frosty",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
4
4
  "main": "dist/index",
5
5
  "module": "dist/index",
6
6
  "types": "dist/index",
@@ -40,9 +40,6 @@
40
40
  "test": "jest",
41
41
  "start": "npx frosty run -d -w -s ./src tests/server/app.tsx"
42
42
  },
43
- "subPackages": [
44
- "packages/frosty-cli"
45
- ],
46
43
  "bin": {
47
44
  "frosty": "./packages/frosty-cli/bin/frosty.sh"
48
45
  },
@@ -54,7 +51,7 @@
54
51
  "csstype": "^3.1.3",
55
52
  "jsdom": "^26.0.0",
56
53
  "lodash": ">=4.17.21",
57
- "myers.js": "^0.0.19",
54
+ "myers.js": "^0.0.20",
58
55
  "nextick": "^0.0.2",
59
56
  "postcss": "^8.5.3",
60
57
  "postcss-js": "^4.0.1",
@@ -100,10 +100,6 @@ if [ "$NO_BUILD" != "true" ]; then
100
100
  rm -rf "$OUTPUT_DIR"
101
101
  fi
102
102
 
103
- if [ "$BUILD_ONLY" != "true" ] && [ "$WATCH_MODE" = "true" ]; then
104
- until [ -f "$OUTPUT_DIR/server.js" ]; do sleep 1; done && npx nodemon --watch "$OUTPUT_DIR" "$OUTPUT_DIR/server.js" $@ &
105
- fi
106
-
107
103
  if [ "$NO_BUILD" != "true" ]; then
108
104
  yarn install --cwd "$FROSTY_CLI_ROOT"
109
105
  BUILD_OPTS="-c "$FROSTY_CLI_ROOT/webpack.mjs" --env CONFIG_FILE="$CONFIG_FILE" --env OUTPUT_DIR="$OUTPUT_DIR""
@@ -122,8 +118,11 @@ if [ "$NO_BUILD" != "true" ]; then
122
118
  fi
123
119
  fi
124
120
 
125
- if [ "$WATCH_MODE" = "true" ]; then
126
- wait
127
- elif [ ! $BUILD_ONLY ]; then
128
- node "$OUTPUT_DIR/server.js" $@
121
+ if [ "$BUILD_ONLY" != "true" ]; then
122
+ if [ "$WATCH_MODE" = "true" ]; then
123
+ until [ -f "$OUTPUT_DIR/server.js" ]; do sleep 1; done
124
+ node --watch-path="$OUTPUT_DIR" "$OUTPUT_DIR/server.js" $@
125
+ else
126
+ node "$OUTPUT_DIR/server.js" $@
127
+ fi
129
128
  fi