@coze-arch/cli 0.1.4-alpha.0e7259 → 0.1.4-alpha.3f9b02

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.
@@ -19,6 +19,8 @@ esac
19
19
  NM_ROOT="/tmp/nm"
20
20
  PROJECT_ID="$(basename "$PROJECT_ROOT")-$(printf '%s' "$PROJECT_ROOT" | cksum | awk '{print $1}')"
21
21
  NEXT_DIR="$NM_ROOT/$PROJECT_ID/.next"
22
+ NEXT_LAYOUT_FILE="$NEXT_DIR/.coze-layout"
23
+ NEXT_LAYOUT_VERSION="real-source-v1"
22
24
  LEGACY_NEXT_DIR="$NM_ROOT/next/$PROJECT_ID"
23
25
 
24
26
  if [ -L "$NEXT_DIR" ]; then
@@ -35,6 +37,14 @@ elif [ -e "$NEXT_DIR" ] && [ ! -d "$NEXT_DIR" ]; then
35
37
  fi
36
38
  mkdir -p "$NEXT_DIR"
37
39
 
40
+ # The previous shadow-project layout compiled routes from a different source
41
+ # root. Drop that local output once, then retain the real-source cache.
42
+ if ! grep -qxF "$NEXT_LAYOUT_VERSION" "$NEXT_LAYOUT_FILE" 2>/dev/null; then
43
+ rm -rf "$NEXT_DIR"
44
+ mkdir -p "$NEXT_DIR"
45
+ printf '%s\n' "$NEXT_LAYOUT_VERSION" > "$NEXT_LAYOUT_FILE"
46
+ fi
47
+
38
48
  if [ -L "$PROJECT_ROOT/.next" ]; then
39
49
  current="$(readlink "$PROJECT_ROOT/.next")"
40
50
  if [ "$current" = "$NEXT_DIR" ]; then
package/lib/cli.js CHANGED
@@ -2114,7 +2114,7 @@ const EventBuilder = {
2114
2114
  };
2115
2115
 
2116
2116
  var name = "@coze-arch/cli";
2117
- var version = "0.1.4-alpha.0e7259";
2117
+ var version = "0.1.4-alpha.3f9b02";
2118
2118
  var description = "coze coding devtools cli";
2119
2119
  var license = "MIT";
2120
2120
  var author = "fanwenjie.fe@bytedance.com";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coze-arch/cli",
3
- "version": "0.1.4-alpha.0e7259",
3
+ "version": "0.1.4-alpha.3f9b02",
4
4
  "private": false,
5
5
  "description": "coze coding devtools cli",
6
6
  "license": "MIT",