@shopify/shop-minis-cli 0.0.79 → 0.0.80
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.
|
@@ -5,15 +5,6 @@ import { SemVer } from 'semver';
|
|
|
5
5
|
* Diff: https://github.com/Shopify/shop-minis-cli/compare/v0.0.78...v0.0.79
|
|
6
6
|
*/
|
|
7
7
|
async function applyUpgrade() {
|
|
8
|
-
const manifestJsonPath = path.join(process.cwd(), 'src/manifest.json');
|
|
9
|
-
const manifestJsonString = fs.readFileSync(manifestJsonPath, {
|
|
10
|
-
encoding: 'utf-8',
|
|
11
|
-
});
|
|
12
|
-
const manifestJson = JSON.parse(manifestJsonString) || {};
|
|
13
|
-
delete manifestJson.handle;
|
|
14
|
-
fs.writeFileSync(manifestJsonPath, `${JSON.stringify(manifestJson, null, 2)}\n`, {
|
|
15
|
-
encoding: 'utf-8',
|
|
16
|
-
});
|
|
17
8
|
const metroConfigPath = path.join(process.cwd(), 'metro.config.js');
|
|
18
9
|
const metroConfigString = fs.readFileSync(metroConfigPath, {
|
|
19
10
|
encoding: 'utf-8',
|
|
@@ -23,10 +14,7 @@ async function applyUpgrade() {
|
|
|
23
14
|
encoding: 'utf-8',
|
|
24
15
|
});
|
|
25
16
|
}
|
|
26
|
-
const releaseNotes = [
|
|
27
|
-
'Removes mini handle from manifest.json',
|
|
28
|
-
'Updates metro-config.js',
|
|
29
|
-
];
|
|
17
|
+
const releaseNotes = ['Updates metro-config.js'];
|
|
30
18
|
const exports = {
|
|
31
19
|
releaseNotes,
|
|
32
20
|
applyUpgrade,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v0-0-79.js","sourceRoot":"","sources":["../../../../src/commands/codemod/releases/v0-0-79.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,MAAM,SAAS,CAAA;AAExB,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAA;AAI7B;;GAEG;AACH,KAAK,UAAU,YAAY;IACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"v0-0-79.js","sourceRoot":"","sources":["../../../../src/commands/codemod/releases/v0-0-79.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,MAAM,SAAS,CAAA;AAExB,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAA;AAI7B;;GAEG;AACH,KAAK,UAAU,YAAY;IACzB,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,iBAAiB,CAAC,CAAA;IACnE,MAAM,iBAAiB,GAAG,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE;QACzD,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAA;IACF,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,OAAO,CACxD,uBAAuB,EACvB,gCAAgC,CACjC,CAAA;IACD,EAAE,CAAC,aAAa,CAAC,eAAe,EAAE,wBAAwB,EAAE;QAC1D,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,yBAAyB,CAAC,CAAA;AAEhD,MAAM,OAAO,GAA8B;IACzC,YAAY;IACZ,YAAY;IACZ,OAAO,EAAE,IAAI,MAAM,CAAC,QAAQ,CAAC;CAC9B,CAAA;AAED,eAAe,OAAO,CAAA"}
|