@plasmicapp/cli 0.1.305 → 0.1.306
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/dist/index.js +6 -0
- package/dist/lib.js +6 -0
- package/package.json +2 -2
- package/src/utils/file-utils.ts +8 -0
package/dist/index.js
CHANGED
|
@@ -735751,6 +735751,12 @@ function eqPagePath(a, b) {
|
|
|
735751
735751
|
if (a === b) {
|
|
735752
735752
|
return true;
|
|
735753
735753
|
}
|
|
735754
|
+
const normPagePathBrackets = (p) => {
|
|
735755
|
+
return p.replace("[[", "[").replace("]]", "]");
|
|
735756
|
+
};
|
|
735757
|
+
if (normPagePathBrackets(a) === normPagePathBrackets(b)) {
|
|
735758
|
+
return true;
|
|
735759
|
+
}
|
|
735754
735760
|
if (!a.endsWith("/index") && `${a}/index` === b) {
|
|
735755
735761
|
return true;
|
|
735756
735762
|
}
|
package/dist/lib.js
CHANGED
|
@@ -731091,6 +731091,12 @@ function eqPagePath(a, b) {
|
|
|
731091
731091
|
if (a === b) {
|
|
731092
731092
|
return true;
|
|
731093
731093
|
}
|
|
731094
|
+
const normPagePathBrackets = (p) => {
|
|
731095
|
+
return p.replace("[[", "[").replace("]]", "]");
|
|
731096
|
+
};
|
|
731097
|
+
if (normPagePathBrackets(a) === normPagePathBrackets(b)) {
|
|
731098
|
+
return true;
|
|
731099
|
+
}
|
|
731094
731100
|
if (!a.endsWith("/index") && `${a}/index` === b) {
|
|
731095
731101
|
return true;
|
|
731096
731102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.306",
|
|
4
4
|
"description": "plasmic cli for syncing local code with Plasmic designs",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=12"
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"wrap-ansi": "^7.0.0",
|
|
79
79
|
"yargs": "^15.4.1"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "cd709d627ae388ad77010119787ecef6d555362b"
|
|
82
82
|
}
|
package/src/utils/file-utils.ts
CHANGED
|
@@ -135,6 +135,14 @@ export function eqPagePath(a: string, b: string) {
|
|
|
135
135
|
return true;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
// We also let users rename [...page].js to [[...page]].js
|
|
139
|
+
const normPagePathBrackets = (p: string) => {
|
|
140
|
+
return p.replace("[[", "[").replace("]]", "]");
|
|
141
|
+
};
|
|
142
|
+
if (normPagePathBrackets(a) === normPagePathBrackets(b)) {
|
|
143
|
+
return true;
|
|
144
|
+
}
|
|
145
|
+
|
|
138
146
|
// pages/about.* and pages/about/index.* resolve to the same URI, but
|
|
139
147
|
// pages/index.* and pages/index/index.* do not.
|
|
140
148
|
if (!a.endsWith("/index") && `${a}/index` === b) {
|