@shopify/shop-minis-cli 0.0.52 → 0.0.53
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
import { handler as handleError } from '@shopify/cli-kit/node/error';
|
|
3
|
+
import { outputDebug } from '@shopify/cli-kit/node/output';
|
|
3
4
|
import { getMiniManifest } from '../utils/minis-manifest.js';
|
|
4
5
|
import { hardResetDependencies } from '../utils/package-manager.js';
|
|
5
6
|
import { wrapWithLoadingIndicator } from '../utils/wrap-with-loading-indicator.js';
|
|
@@ -15,6 +16,10 @@ export const command = new Command()
|
|
|
15
16
|
.action(async (args) => {
|
|
16
17
|
const miniHandle = getMiniManifest().handle;
|
|
17
18
|
const { toVersion, yes: skipPrompts, fromVersion } = args;
|
|
19
|
+
if (toVersion === fromVersion) {
|
|
20
|
+
outputDebug(`--from-version and --to-version are the same, no changes will be applied by codemod (versions are ${fromVersion})`);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
18
23
|
try {
|
|
19
24
|
validateUpgradeBetweenVersions(fromVersion, toVersion);
|
|
20
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/codemod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AACjC,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/codemod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AACjC,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAA;AAExD,OAAO,EAAC,eAAe,EAAC,MAAM,4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