@uniformdev/cli 19.145.0 → 19.146.2
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.mjs +18 -9
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -352,7 +352,8 @@ var getEntityOption = ({
|
|
|
352
352
|
var getDirectoryOrFilename = ({
|
|
353
353
|
config: config2,
|
|
354
354
|
entityType,
|
|
355
|
-
operation
|
|
355
|
+
operation,
|
|
356
|
+
defaultEntityFolderName = entityType
|
|
356
357
|
}) => {
|
|
357
358
|
var _a, _b, _c, _d, _e, _f;
|
|
358
359
|
if ((_b = (_a = config2.entitiesConfig[entityType]) == null ? void 0 : _a[operation]) == null ? void 0 : _b.directory) {
|
|
@@ -365,7 +366,7 @@ var getDirectoryOrFilename = ({
|
|
|
365
366
|
if (isPackage) {
|
|
366
367
|
return config2.directory;
|
|
367
368
|
}
|
|
368
|
-
return `${config2.directory}/${
|
|
369
|
+
return `${config2.directory}/${defaultEntityFolderName}`;
|
|
369
370
|
};
|
|
370
371
|
|
|
371
372
|
// src/sync/fileSyncEngineDataSource.ts
|
|
@@ -6873,7 +6874,7 @@ import { PostHog } from "posthog-node";
|
|
|
6873
6874
|
// package.json
|
|
6874
6875
|
var package_default = {
|
|
6875
6876
|
name: "@uniformdev/cli",
|
|
6876
|
-
version: "19.
|
|
6877
|
+
version: "19.146.2",
|
|
6877
6878
|
description: "Uniform command line interface tool",
|
|
6878
6879
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
6879
6880
|
main: "./cli.js",
|
|
@@ -9009,7 +9010,9 @@ var SyncPullModule = {
|
|
|
9009
9010
|
handler: async ({ serialization, ...otherParams }) => {
|
|
9010
9011
|
var _a, _b;
|
|
9011
9012
|
const config2 = serialization;
|
|
9013
|
+
let isUsingDeprecatedPatternConfig = false;
|
|
9012
9014
|
if (config2.entitiesConfig.pattern) {
|
|
9015
|
+
isUsingDeprecatedPatternConfig = true;
|
|
9013
9016
|
(_a = config2.entitiesConfig).componentPattern ?? (_a.componentPattern = config2.entitiesConfig.pattern);
|
|
9014
9017
|
}
|
|
9015
9018
|
const enabledEntities = Object.entries({
|
|
@@ -9056,7 +9059,7 @@ var SyncPullModule = {
|
|
|
9056
9059
|
onlyCompositions: entityType === "composition" ? true : void 0,
|
|
9057
9060
|
onlyPatterns: entityType === "componentPattern" ? true : void 0,
|
|
9058
9061
|
mode: getPullMode(entityType, config2),
|
|
9059
|
-
directory: getPullFilename(entityType, config2),
|
|
9062
|
+
directory: getPullFilename(entityType, config2, { isUsingDeprecatedPatternConfig }),
|
|
9060
9063
|
allowEmptySource: config2.allowEmptySource
|
|
9061
9064
|
});
|
|
9062
9065
|
spinner.succeed();
|
|
@@ -9075,11 +9078,13 @@ var getPullMode = (entityType, config2) => {
|
|
|
9075
9078
|
entityType
|
|
9076
9079
|
});
|
|
9077
9080
|
};
|
|
9078
|
-
var getPullFilename = (entityType, config2) => {
|
|
9081
|
+
var getPullFilename = (entityType, config2, { isUsingDeprecatedPatternConfig }) => {
|
|
9079
9082
|
return getDirectoryOrFilename({
|
|
9080
9083
|
operation: "pull",
|
|
9081
9084
|
config: config2,
|
|
9082
|
-
entityType
|
|
9085
|
+
entityType,
|
|
9086
|
+
// This fallback can be removed when publishing a major release
|
|
9087
|
+
defaultEntityFolderName: isUsingDeprecatedPatternConfig && entityType === "componentPattern" ? "pattern" : void 0
|
|
9083
9088
|
});
|
|
9084
9089
|
};
|
|
9085
9090
|
var getFormat = (entityType, config2) => {
|
|
@@ -9112,7 +9117,9 @@ var SyncPushModule = {
|
|
|
9112
9117
|
handler: async ({ serialization, ...otherParams }) => {
|
|
9113
9118
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
9114
9119
|
const config2 = serialization;
|
|
9120
|
+
let isUsingDeprecatedPatternConfig = false;
|
|
9115
9121
|
if (config2.entitiesConfig.pattern) {
|
|
9122
|
+
isUsingDeprecatedPatternConfig = true;
|
|
9116
9123
|
(_a = config2.entitiesConfig).componentPattern ?? (_a.componentPattern = config2.entitiesConfig.pattern);
|
|
9117
9124
|
}
|
|
9118
9125
|
const enabledEntities = Object.entries({
|
|
@@ -9155,7 +9162,7 @@ var SyncPushModule = {
|
|
|
9155
9162
|
onlyCompositions: entityType === "composition" ? true : void 0,
|
|
9156
9163
|
onlyPatterns: entityType === "componentPattern" ? true : void 0,
|
|
9157
9164
|
mode: getPushMode(entityType, config2),
|
|
9158
|
-
directory: getPushFilename(entityType, config2),
|
|
9165
|
+
directory: getPushFilename(entityType, config2, { isUsingDeprecatedPatternConfig }),
|
|
9159
9166
|
allowEmptySource: config2.allowEmptySource
|
|
9160
9167
|
});
|
|
9161
9168
|
spinner.succeed();
|
|
@@ -9186,11 +9193,13 @@ var getPushMode = (entityType, config2) => {
|
|
|
9186
9193
|
entityType
|
|
9187
9194
|
});
|
|
9188
9195
|
};
|
|
9189
|
-
var getPushFilename = (entityType, config2) => {
|
|
9196
|
+
var getPushFilename = (entityType, config2, { isUsingDeprecatedPatternConfig }) => {
|
|
9190
9197
|
return getDirectoryOrFilename({
|
|
9191
9198
|
operation: "push",
|
|
9192
9199
|
config: config2,
|
|
9193
|
-
entityType
|
|
9200
|
+
entityType,
|
|
9201
|
+
// This fallback can be removed when publishing a major release
|
|
9202
|
+
defaultEntityFolderName: isUsingDeprecatedPatternConfig && entityType === "componentPattern" ? "pattern" : void 0
|
|
9194
9203
|
});
|
|
9195
9204
|
};
|
|
9196
9205
|
var getFormat2 = (entityType, config2) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.146.2",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@thi.ng/mime": "^2.2.23",
|
|
20
|
-
"@uniformdev/assets": "19.
|
|
21
|
-
"@uniformdev/canvas": "19.
|
|
22
|
-
"@uniformdev/context": "19.
|
|
23
|
-
"@uniformdev/files": "19.
|
|
24
|
-
"@uniformdev/project-map": "19.
|
|
25
|
-
"@uniformdev/redirect": "19.
|
|
20
|
+
"@uniformdev/assets": "19.146.2",
|
|
21
|
+
"@uniformdev/canvas": "19.146.2",
|
|
22
|
+
"@uniformdev/context": "19.146.2",
|
|
23
|
+
"@uniformdev/files": "19.146.2",
|
|
24
|
+
"@uniformdev/project-map": "19.146.2",
|
|
25
|
+
"@uniformdev/redirect": "19.146.2",
|
|
26
26
|
"call-bind": "^1.0.2",
|
|
27
27
|
"colorette": "2.0.20",
|
|
28
28
|
"cosmiconfig": "8.3.6",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "b50ddfe5e2c16293966e69c78dd1daa70222c52e"
|
|
72
72
|
}
|